:root {
  --bg: #0f1117;
  --panel: #171a23;
  --card: #1e222e;
  --border: #2c3244;
  --text: #eef1f7;
  --muted: #98a2b8;
  --accent: #ffd400;
  --primary: #4f7cff;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 13px;
}
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hidden { display: none !important; }
code { background: #10131a; padding: 1px 5px; border-radius: 4px; color: #cbd5e1; font-size: 12px; }

.topbar {
  min-height: 52px;
  height: auto;
  flex-shrink: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 6px;
  padding: 8px 14px;
  gap: 8px;
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topbar .btn, .topbar .seg-btn { white-space: nowrap; }
@media (max-width: 1380px) {
  #engineBadge { display: none !important; }
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.brand-badge {
  background: var(--accent);
  color: #111;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.pill-info { background: #1c2742; color: #93c5fd; border-color: #2f4374; }
.pill-muted { background: #2d2412; color: #fcd34d; border-color: #6b4e16; }

.btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 7px;
  padding: 6px 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.btn:hover:not(:disabled) { border-color: #4b5575; background: #262b3a; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #3b69f2; }
.btn-secondary { background: #262c3d; }
.btn-ghost { background: transparent; }
.btn-danger { background: #991b1b; border-color: #ef4444; color: #fff; }
.btn-warn { background: #78350f; border-color: #f59e0b; color: #fde68a; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.file-btn { display: inline-flex; align-items: center; }

select, input[type="text"], input[type="number"], input[type="search"], textarea {
  background: #11141c;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
}
.select-sm { padding: 4px 8px; }
.select-xs { padding: 3px 6px; font-size: 11px; }

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 310px minmax(360px, 1fr) 390px;
  gap: 8px;
  padding: 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.panel-header {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h2, .panel-subhead h3, .card-head h3 { margin: 0; font-size: 13px; }
.panel-subhead {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.audio-ruler {
  padding: 8px 12px;
  background: #141822;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.ruler-row { display: flex; justify-content: space-between; }
.ruler-warning {
  margin-top: 6px;
  padding: 6px 8px;
  background: #3b230f;
  border: 1px solid #b45309;
  border-radius: 6px;
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}

.cuts-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cut-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 7px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
}
.cut-item:hover { border-color: #4f5b7d; }
.cut-item.active { border-color: var(--primary); background: #1e2740; }
.cut-item.multi-selected { outline: 2px solid var(--accent); }
.cut-item.has-error { border-color: var(--danger); background: #2c161b; }

.cut-thumb {
  width: 44px;
  height: 76px;
  object-fit: cover;
  border-radius: 5px;
  background: #0d0f14;
}
.cut-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cut-title-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cut-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-changed { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.cut-sub { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.cut-actions { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.err-tag { color: #fca5a5; font-size: 11px; font-weight: 600; }

.sfx-add-row { display: flex; gap: 4px; }
.sfx-list { max-height: 150px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.sfx-row {
  display: grid;
  grid-template-columns: 1fr 68px 62px auto;
  gap: 5px;
  align-items: center;
  background: var(--card);
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 11px;
}

/* Center preview */
.panel-center { padding: 8px; gap: 8px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.toggle-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); cursor: pointer; }
.toggle-strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); cursor: pointer; }

.stage-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0c10;
  border-radius: 8px;
  padding: 8px;
}
.stage {
  position: relative;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2b3143;
  user-select: none;
}
.stage-media, .stage-precision {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.stage-precision { z-index: 2; }

.safe-area { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.safe-top {
  position: absolute; top: 0; left: 0; right: 0; height: 12%;
  background: rgba(239, 68, 68, 0.16);
  border-bottom: 1px dashed rgba(248, 113, 113, 0.55);
  font-size: 10px; color: #fecaca; padding: 4px 8px;
}
.safe-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 18%;
  background: rgba(239, 68, 68, 0.16);
  border-top: 1px dashed rgba(248, 113, 113, 0.55);
  font-size: 10px; color: #fecaca; padding: 4px 8px;
}

.snap-line { position: absolute; background: #38bdf8; z-index: 6; pointer-events: none; }
.snap-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.snap-h { left: 0; right: 0; height: 1px; }

.text-layer {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  cursor: grab;
  white-space: pre-wrap;
  max-width: 90%;
  line-height: 1.25;
  padding: 2px 6px;
  touch-action: none;
}
.text-layer:active { cursor: grabbing; }
.text-layer.selected-layer { outline: 1px dashed rgba(56, 189, 248, 0.85); }
.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.stage.precision-active .stage-scrim { display: none; }
.stage.precision-active .text-layer {
  color: transparent !important;
  background: transparent !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0px transparent !important;
}
.stage.precision-active .text-layer .kw-hl { color: transparent !important; }
.kw-hl { font-weight: 800; }
.mode-switch .seg-btn { padding: 4px 9px; font-weight: 700; }

.quick-preset-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.quick-preset-strip .btn { flex-shrink: 0; }

.cut-sub-input {
  width: 100%;
  margin-top: 4px;
  padding: 4px 7px;
  font-size: 11px;
  background: #10131c;
  border: 1px solid #2b3246;
  border-radius: 5px;
  color: #f1f5f9;
}
.cut-sub-input:focus { border-color: var(--accent); outline: none; }

.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tpl-card {
  text-align: left;
  background: #141824;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--text);
}
.tpl-card strong { display: block; font-size: 13px; margin-bottom: 3px; }
.tpl-card span { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.tpl-card.active { border-color: var(--accent); background: #232533; }
.quick-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
}
.quick-thumb {
  width: 48px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.transport { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.transport-buttons { display: flex; align-items: center; gap: 8px; }
.timecode { font-variant-numeric: tabular-nums; font-size: 12px; color: #cbd5e1; margin-left: auto; }
.scrubber { width: 100%; accent-color: var(--primary); }

/* Right panel */
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: #13161e; color: var(--muted); border: 0; padding: 10px;
  cursor: pointer; font-weight: 700; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--text); background: var(--panel); border-bottom-color: var(--primary); }
.tab-content { display: none; flex: 1; overflow-y: auto; padding: 10px; gap: 10px; flex-direction: column; }
.tab-content.active { display: flex; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.font-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.font-grid label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.font-grid select { width: 65%; }
.license-note { margin: 0; font-size: 11px; color: var(--muted); }

.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset-btn { text-align: left; }
.preset-btn.active { border-color: var(--accent); color: var(--accent); }

.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg-btn { border: 0; background: #141720; color: var(--muted); padding: 4px 10px; cursor: pointer; font-size: 11px; }
.seg-btn.active { background: var(--primary); color: #fff; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.form-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.val-tag { font-size: 10px; color: #cbd5e1; }
.sub-details { border-top: 1px solid var(--border); padding-top: 6px; }
.sub-details summary { cursor: pointer; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.inline-check { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

.subtitles-list, .ranges-list { display: flex; flex-direction: column; gap: 8px; }
.sub-item, .range-card {
  background: #141720;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sub-item.active, .range-card.active { border-color: var(--primary); }
.sub-item textarea { width: 100%; resize: vertical; min-height: 44px; }
.overflow-warn { color: #fca5a5; font-size: 11px; }

.row-gap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mb-6 { margin-bottom: 6px; }
.muted { color: var(--muted); }
.muted-xs { color: var(--muted); font-size: 11px; margin: 0; }

/* Modals */
dialog.modal {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  width: min(560px, 94vw);
  max-height: 90vh;
}
dialog.modal-wide { width: min(1080px, 96vw); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.72); }
.modal-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 14px 16px; overflow-y: auto; max-height: 70vh; }
.modal-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.replace-body { display: grid; grid-template-columns: 1.05fr 1fr; height: 74vh; min-height: 460px; }
.replace-left { border-right: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.replace-right { padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.library-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filter-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pill-btn {
  border: 1px solid var(--border); background: #141720; color: var(--muted);
  border-radius: 999px; padding: 3px 9px; font-size: 11px; cursor: pointer;
}
.pill-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.clip-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
  align-content: start;
}
.clip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.clip-card:hover { border-color: #64748b; }
.clip-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.clip-card-media { position: relative; aspect-ratio: 9 / 12; background: #090b0f; }
.clip-card-media img, .clip-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-use {
  position: absolute; top: 5px; left: 5px;
  background: rgba(34, 197, 94, 0.9); color: #052e16;
  font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px;
}
.badge-dur {
  position: absolute; bottom: 5px; right: 5px;
  background: rgba(0, 0, 0, 0.78); color: #fff;
  font-size: 10px; padding: 1px 5px; border-radius: 4px;
}
.clip-card-info { padding: 5px 7px; font-size: 11px; }
.clip-card-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.clip-card-res { color: var(--muted); font-size: 10px; }

.replace-toggle-bar { display: flex; align-items: center; justify-content: space-between; }
.replace-preview-wrap { flex: 1; min-height: 220px; display: flex; justify-content: center; align-items: center; background: #090b10; border-radius: 8px; padding: 6px; }
.replace-stage { position: relative; height: 280px; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; overflow: hidden; }

.filmstrip-box { display: flex; flex-direction: column; gap: 6px; }
.filmstrip-track {
  position: relative;
  height: 46px;
  background: #10131b;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}
.filmstrip-oob { position: absolute; top: 0; bottom: 0; right: 0; background: rgba(100, 116, 139, 0.35); pointer-events: none; }
.filmstrip-selection {
  position: absolute;
  top: 2px;
  bottom: 2px;
  background: rgba(255, 212, 0, 0.28);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: grab;
  touch-action: none;
}
.handle {
  position: absolute; top: 0; bottom: 0; width: 12px; background: var(--accent); cursor: ew-resize; touch-action: none;
}
.handle-left { left: 0; }
.handle-right { right: 0; }
.filmstrip-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; }
.filmstrip-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }

.warn-banner {
  background: #3b230f; border: 1px solid #d97706; color: #fde68a;
  padding: 6px 10px; border-radius: 6px; font-size: 11px;
}
.error-box {
  background: #351317; border: 1px solid #ef4444; color: #fecaca;
  padding: 10px; border-radius: 8px; font-family: monospace; font-size: 11px; white-space: pre-wrap; max-height: 220px; overflow-y: auto;
}
.checklist-box { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.check-item { padding: 7px 10px; border-radius: 6px; font-size: 12px; }
.check-block { background: #381519; border: 1px solid #ef4444; color: #fecaca; }
.check-warn { background: #33220d; border: 1px solid #f59e0b; color: #fde68a; }
.check-ok { background: #102a1b; border: 1px solid #22c55e; color: #bbf7d0; }

.progress-bar { width: 100%; height: 12px; background: #11141c; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0%; background: var(--primary); transition: width 0.25s ease; }
.result-video { width: 100%; max-height: 360px; background: #000; border-radius: 8px; }

.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.compare-img { width: 100%; border-radius: 6px; border: 1px solid var(--border); display: block; }
.compare-stack { position: relative; }
.compare-top { position: absolute; inset: 0; opacity: 0.5; }

.suggestions-box { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.empty-box { padding: 16px; text-align: center; background: #141720; border: 1px dashed var(--border); border-radius: 8px; margin: 10px; }
.help-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #f8fafc; border: 1px solid #475569;
  padding: 9px 16px; border-radius: 8px; z-index: 9999; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mobile-only { display: none; }
.menu-stack { display: flex; flex-direction: column; gap: 8px; }
.history-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; background: #131722; border: 1px solid var(--border); border-radius: 6px; margin-top: 6px;
  font-size: 12px;
}

@media (max-width: 1023px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex; }
  .brand-title { display: none; }

  .topbar {
    min-height: 48px;
    height: auto;
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  }
  .workspace {
    flex: 1;
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 6px 6px calc(62px + env(safe-area-inset-bottom)) 6px;
  }

  .panel { display: none; }
  body[data-mobile-tab="preview"] .panel-center { display: flex; }
  body[data-mobile-tab="cuts"] .panel-left { display: flex; }
  body[data-mobile-tab="style"] .panel-right,
  body[data-mobile-tab="ranges"] .panel-right { display: flex; }

  .btn { min-height: 36px; }
  .btn-xs { min-height: 30px; padding: 4px 9px; }

  .mobile-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--panel);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 100;
  }
  .mnav-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .mnav-btn.active {
    color: var(--accent);
    background: #1d2230;
    border-top: 2px solid var(--accent);
  }

  .replace-body {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 82dvh;
    overflow-y: auto;
  }
  .replace-left { border-right: 0; border-bottom: 1px solid var(--border); max-height: 36dvh; }
  .clip-grid { grid-template-columns: repeat(2, 1fr); }
  .replace-stage { height: 210px; }
  .handle { width: 16px; }
  .compare-grid { grid-template-columns: 1fr; }
  .toast { bottom: 72px; max-width: 90vw; text-align: center; }
}

/* Travel Shorts Collector & Affiliate Modal */
.travel-modal-body {
  max-height: 82vh;
  overflow-y: auto;
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  align-items: start;
}

.travel-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.travel-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.travel-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.travel-dropzone {
  border: 1.5px dashed #3b4661;
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
  background: #10141f;
  transition: border-color 0.15s, background 0.15s;
}

.travel-dropzone.drag-over {
  border-color: #4f7cff;
  background: rgba(79, 124, 255, 0.12);
}

.travel-dropzone p {
  margin: 0;
  font-size: 12px;
  color: #98a2b8;
}

.travel-guide-box {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #10131c;
  border: 1px solid #262c3d;
}

.travel-guide-box p {
  margin: 3px 0;
}

.travel-readonly {
  flex: 1;
  font-size: 11px;
  color: #cbd5e1;
}

.travel-sheet-wrap {
  border-top: 1px solid #262c3d;
  padding-top: 10px;
}

.travel-sheet-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
  background: #0b0d12;
  border: 1px solid #262c3d;
}

.travel-copy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.travel-copy-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.travel-copy-item input,
.travel-copy-item textarea {
  width: 100%;
  font-size: 12px;
  background: #10131c;
  color: #e2e8f0;
}

@media (max-width: 960px) {
  .travel-grid,
  .travel-form-grid {
    grid-template-columns: 1fr;
  }
}

/* 여행 쇼츠: 배경음악 선택 */
.travel-bgm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.travel-bgm label { display: flex; flex-direction: column; gap: 4px; }
.travel-bgm-upload { display: flex; gap: 6px; align-items: center; }
.travel-bgm-upload input[type="file"] { min-width: 0; flex: 1; }
.travel-bgm #trBgmCurrent { grid-column: 1 / -1; }
@media (max-width: 640px) { .travel-bgm { grid-template-columns: 1fr; } }
.travel-build-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.travel-result { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.travel-result video { width: 180px; border-radius: 8px; background: #000; }
.tr-usps-label { display: flex !important; flex-direction: column; align-items: stretch; gap: 4px; }
.tr-usps-label textarea { width: 100%; box-sizing: border-box; }

/* Hybrid Pages / Standalone Banner & Engine Button */
.pill-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font: inherit;
  transition: filter 0.15s;
}
.pill-btn:hover { filter: brightness(1.12); }

.standalone-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.18), rgba(250, 204, 21, 0.12));
  border-bottom: 1px solid #2c354c;
  font-size: 12.5px;
}
.standalone-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.standalone-banner-text span { color: #cbd5e1; }

.sp-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.sp-preset-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #10131c;
  border: 1px solid #262c3d;
  font-size: 12px;
}
