:root {
  --bg: #08111f;
  --panel: #101827;
  --panel2: #182235;
  --line: #2b3a55;
  --text: #e8eefc;
  --muted: #99a7c2;
  --button: #075f6c;
  --button-hover: #0a7f8f;
  --accent: #22c55e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top left, #1c2b44 0, var(--bg) 42%, #040914 100%);
  color: var(--text);
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(153, 167, 194, .16);
  background: rgba(8, 17, 31, .92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
h1 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
h2 { margin: 0 0 10px; font-size: 15px; }
h3 { margin: 18px 0 8px; font-size: 13px; color: var(--text); }
p { margin: 0; }
.topbar p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.server-pill {
  padding: 8px 11px;
  border: 1px solid rgba(153, 167, 194, .2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(16, 24, 39, .75);
}
.server-pill.ok { color: #bbf7d0; border-color: rgba(34, 197, 94, .45); }
.server-pill.bad { color: #fecaca; border-color: rgba(239, 68, 68, .45); }
.layout {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}
.panel {
  background: rgba(16, 24, 39, .94);
  border: 1px solid rgba(153, 167, 194, .16);
  border-radius: 18px;
  box-shadow: 0 22px 80px rgba(0,0,0,.28);
}
.controls { padding: 14px; max-height: calc(100vh - 92px); overflow: auto; }
.tool-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(153, 167, 194, .14);
  margin-bottom: 14px;
}
.tool-btn {
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  font-size: 11px;
  line-height: 1.15;
}
.tool-btn .tool-icon {
  width: 28px;
  height: 28px;
  display: block;
  color: #ffffff;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.18));
}
.icon-video { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6.5A2.5 2.5 0 0 1 6.5 4h8A2.5 2.5 0 0 1 17 6.5v.75l2.82-1.64A.8.8 0 0 1 21 6.3v11.4a.8.8 0 0 1-1.18.69L17 16.75v.75a2.5 2.5 0 0 1-2.5 2.5h-8A2.5 2.5 0 0 1 4 17.5v-11Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6.5A2.5 2.5 0 0 1 6.5 4h8A2.5 2.5 0 0 1 17 6.5v.75l2.82-1.64A.8.8 0 0 1 21 6.3v11.4a.8.8 0 0 1-1.18.69L17 16.75v.75a2.5 2.5 0 0 1-2.5 2.5h-8A2.5 2.5 0 0 1 4 17.5v-11Z'/%3E%3C/svg%3E"); }
.icon-lot { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.1 3.2 18.9 6l2.2 9.4-8.2 5.4-10-5.2L4.4 6l2.7-2.8Zm.7 2.5-1.4 1.5-1 6.9 7.3 3.8 5.8-3.8-1.5-6.2-9.2-2.2Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.1 3.2 18.9 6l2.2 9.4-8.2 5.4-10-5.2L4.4 6l2.7-2.8Zm.7 2.5-1.4 1.5-1 6.9 7.3 3.8 5.8-3.8-1.5-6.2-9.2-2.2Z'/%3E%3C/svg%3E"); }
.icon-card { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 18.5v-13Zm3 2V10h10V7.5H7Zm0 5V15h6v-2.5H7Zm0 4V18h10v-1.5H7Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v13a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 4 18.5v-13Zm3 2V10h10V7.5H7Zm0 5V15h6v-2.5H7Zm0 4V18h10v-1.5H7Z'/%3E%3C/svg%3E"); }
.icon-image { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5.5 4h13A2.5 2.5 0 0 1 21 6.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5v-11A2.5 2.5 0 0 1 5.5 4Zm0 2.5v8.8l3.1-3.1a1.5 1.5 0 0 1 2.1 0l1.7 1.7 3.2-3.9a1.5 1.5 0 0 1 2.4.1l.5.8V6.5h-13Zm3.2 2.9A1.9 1.9 0 1 0 8.7 5.6a1.9 1.9 0 0 0 0 3.8Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5.5 4h13A2.5 2.5 0 0 1 21 6.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 17.5v-11A2.5 2.5 0 0 1 5.5 4Zm0 2.5v8.8l3.1-3.1a1.5 1.5 0 0 1 2.1 0l1.7 1.7 3.2-3.9a1.5 1.5 0 0 1 2.4.1l.5.8V6.5h-13Zm3.2 2.9A1.9 1.9 0 1 0 8.7 5.6a1.9 1.9 0 0 0 0 3.8Z'/%3E%3C/svg%3E"); }
.icon-export { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 4h2v8.2l3-3 1.4 1.4L12 16l-5.4-5.4L8 9.2l3 3V4ZM5 18h14v2H5v-2Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 4h2v8.2l3-3 1.4 1.4L12 16l-5.4-5.4L8 9.2l3 3V4ZM5 18h14v2H5v-2Z'/%3E%3C/svg%3E"); }
.icon-plus { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6V5Z'/%3E%3C/svg%3E"); }
.tool-btn.active {
  outline: 2px solid rgba(255,255,255,.78);
  box-shadow: 0 0 0 4px rgba(7,95,108,.35), 0 0 22px rgba(10,127,143,.38);
}
.tool-btn.empty {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.2);
}
.tool-panels { min-height: 340px; }
.block {
  padding: 0;
}
.tool-panel { display: none; }
.tool-panel.active { display: block; }
label { display: block; margin: 10px 0 6px; color: var(--muted); font-size: 12px; }
input[type="text"], input[type="file"], textarea, select {
  width: 100%;
  color: var(--text);
  background: rgba(7, 14, 26, .86);
  border: 1px solid rgba(153, 167, 194, .2);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
}
textarea { min-height: 74px; resize: vertical; }
input[type="color"] {
  width: 54px;
  height: 38px;
  padding: 2px;
  border: 1px solid rgba(153, 167, 194, .2);
  background: rgba(7, 14, 26, .86);
  border-radius: 10px;
}
input[type="range"] { width: 100%; accent-color: var(--button-hover); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button-grid { display: grid; gap: 8px; margin-top: 8px; }
.button-grid.one { grid-template-columns: 1fr; }
.button-grid.two { grid-template-columns: 1fr 1fr; }
.button-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.button-grid.compact button { padding: 8px 9px; font-size: 12px; }
button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--button), #043f4a);
  font-weight: 750;
  cursor: pointer;
  font-size: 13px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.check-row { display: flex; gap: 8px; align-items: center; }
.help, .inline-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span {
  border: 1px solid rgba(153, 167, 194, .16);
  background: rgba(7, 14, 26, .66);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}
.keyframe-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 220px; overflow: auto; }
.keyframe-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(153, 167, 194, .15);
  background: rgba(7, 14, 26, .62);
  border-radius: 12px;
}
.keyframe-item.active { border-color: rgba(112, 107, 255, .72); box-shadow: 0 0 0 1px rgba(112, 107, 255, .25) inset; }
.keyframe-meta { color: var(--muted); font-size: 12px; }
.keyframe-meta strong { color: var(--text); display: block; font-size: 13px; }
.download-link { display: none; margin-top: 10px; color: #c9c4ff; font-size: 13px; word-break: break-word; }
.workspace { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: calc(100vh - 110px); }
.status {
  padding: 10px 12px;
  border: 1px solid rgba(153, 167, 194, .15);
  background: rgba(7, 14, 26, .62);
  color: var(--muted);
  border-radius: 12px;
  font-size: 12px;
}
.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid rgba(153, 167, 194, .16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0,0,0,.32);
}
video, #overlayCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
video { object-fit: cover; background: #020617; }
#overlayCanvas { cursor: crosshair; }
#overlayCanvas.curve-dragging { cursor: ns-resize; }
.empty-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); pointer-events: none; padding: 24px; }
.empty-state strong { display: block; color: var(--text); margin-bottom: 6px; }
.empty-state span { display: block; font-size: 13px; }
.timeline-panel {
  border: 1px solid rgba(153, 167, 194, .14);
  background: rgba(7, 14, 26, .46);
  border-radius: 16px;
  padding: 12px;
}
.timeline-panel h2 { font-size: 14px; margin-bottom: 12px; }
.lane {
  display: grid;
  grid-template-columns: 135px 46px 58px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.lane-label { color: var(--muted); font-size: 12px; grid-column: 1; }
.lane-track {
  grid-column: 4;
  position: relative;
  height: 28px;
  background: rgba(153, 167, 194, .12);
  border: 1px solid rgba(153, 167, 194, .16);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
}
.video-lane .timeline-play { grid-column: 2; }
.video-lane .time-left { grid-column: 3; }
.video-lane .main-video-track { grid-column: 4; height: 28px; display: flex; align-items: center; padding: 0; }
.video-lane .time-right { grid-column: 5; }
.video-lane span { color: var(--muted); font-size: 12px; text-align: center; }
.timeline-play {
  min-width: 42px;
  width: 42px;
  height: 36px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.main-video-track input { margin: 0; position: relative; z-index: 4; }
#seekBar {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#seekBar::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
  border-radius: 0;
}
#seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4px;
  height: 28px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 12px rgba(255,255,255,.85), 0 0 24px rgba(56,189,248,.55);
}
#seekBar::-moz-range-track {
  height: 28px;
  background: transparent;
  border-radius: 0;
}
#seekBar::-moz-range-thumb {
  width: 4px;
  height: 28px;
  background: #ffffff;
  border: 0;
  border-radius: 0;
}

.lane-segment {
  position: absolute;
  top: 5px;
  height: 16px;
  border-radius: 0;
  left: 0%;
  width: 100%;
  opacity: .95;
  box-shadow: 0 0 16px rgba(255,255,255,.2);
  cursor: grab;
}
.lane-segment:active { cursor: grabbing; }
.card-segment { background: linear-gradient(90deg, #8b5cf6, #38bdf8); }
.image-segment { background: linear-gradient(90deg, #22c55e, #eab308); }
.lane-markers { position: absolute; inset: 0; pointer-events: none; }
.marker {
  position: absolute;
  top: 2px;
  width: 4px;
  height: 22px;
  border-radius: 0;
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, .75);
  transform: translateX(-50%);
}
.lane-playhead, .video-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255,255,255,.85), 0 0 24px rgba(56,189,248,.55);
  left: 0%;
  z-index: 4;
  pointer-events: none;
  transform: translateX(-50%);
}
.lane-handle {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 24px;
  background: rgba(255,255,255,.92);
  border: 2px solid rgba(7,95,108,.9);
  border-radius: 0;
  z-index: 5;
  cursor: ew-resize;
  box-shadow: 0 0 10px rgba(0,0,0,.35);
}
.lane-handle.start { left: -6px; }
.lane-handle.end { right: -6px; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tips div { padding: 12px; border-radius: 14px; border: 1px solid rgba(153, 167, 194, .14); background: rgba(7, 14, 26, .58); color: var(--muted); font-size: 12px; line-height: 1.45; }
.tips strong { color: var(--text); font-size: 13px; }
#renderCanvas { display: none; }
@media (max-width: 1050px) {
  .layout { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .controls { max-height: none; }
}
@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .layout { padding: 10px; }
  .tool-menu { grid-template-columns: repeat(3, 1fr); }
  .field-row, .button-grid.two, .button-grid.three { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 1fr; gap: 6px; align-items: stretch; }
  .lane-label, .lane-track, .video-lane .timeline-play, .video-lane .time-left, .video-lane .main-video-track, .video-lane .time-right { grid-column: 1; }
  .video-lane { grid-template-columns: 1fr; }
}

/* v0.8: lineas de tiempo rectas y alineadas */
.lane-track, .lane-segment, .marker, .lane-playhead, .video-playhead, .lane-handle { border-radius: 0 !important; }

.video-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255,255,255,.85), 0 0 24px rgba(56,189,248,.55);
  left: 0%;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}
#seekBar::-webkit-slider-thumb { background: transparent; box-shadow: none; }
#seekBar::-moz-range-thumb { background: transparent; box-shadow: none; }
.timeline-play.playing .play-icon { display: none; }
.timeline-play:not(.playing) .pause-icon { display: none; }
.timeline-play svg { width: 18px; height: 18px; display: block; fill: #ffffff; }

.trim-segment { background: rgba(56, 189, 248, .28); box-shadow: inset 0 0 0 1px rgba(56,189,248,.35), 0 0 18px rgba(56,189,248,.16); pointer-events: none; }
.freeze-segment { background: linear-gradient(90deg, #f59e0b, #fde68a); opacity: .9; pointer-events: none; }
.video-shell.vertical-preview { max-height: 74vh; width: min(100%, 560px); margin: 0 auto; }

/* v1.5 SkyMov: nuevos iconos y paneles */
.tool-btn small {
  display: block;
  margin-top: -3px;
  font-size: 9px;
  line-height: 1;
  color: rgba(255,255,255,.62);
  font-weight: 650;
}
.icon-route { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm12 8a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 13h5.2c1.2 0 1.8-.6 1.8-1.4 0-.9-.6-1.5-1.8-1.5H9.6V8h2.6c2.6 0 4.2 1.4 4.2 3.6 0 2.1-1.6 3.5-4.2 3.5H7V13Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 4a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm12 8a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0 2a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 13h5.2c1.2 0 1.8-.6 1.8-1.4 0-.9-.6-1.5-1.8-1.5H9.6V8h2.6c2.6 0 4.2 1.4 4.2 3.6 0 2.1-1.6 3.5-4.2 3.5H7V13Z'/%3E%3C/svg%3E"); }
.icon-config { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3h2l.5 2.4c.5.2 1 .4 1.5.7l2.1-1.3 1.4 1.4-1.3 2.1c.3.5.5 1 .7 1.5l2.4.5v2l-2.4.5c-.2.5-.4 1-.7 1.5l1.3 2.1-1.4 1.4-2.1-1.3c-.5.3-1 .5-1.5.7L13 21h-2l-.5-2.4c-.5-.2-1-.4-1.5-.7l-2.1 1.3-1.4-1.4 1.3-2.1c-.3-.5-.5-1-.7-1.5L3.7 13v-2l2.4-.5c.2-.5.4-1 .7-1.5L5.5 6.9l1.4-1.4L9 6.8c.5-.3 1-.5 1.5-.7L11 3Zm1 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3h2l.5 2.4c.5.2 1 .4 1.5.7l2.1-1.3 1.4 1.4-1.3 2.1c.3.5.5 1 .7 1.5l2.4.5v2l-2.4.5c-.2.5-.4 1-.7 1.5l1.3 2.1-1.4 1.4-2.1-1.3c-.5.3-1 .5-1.5.7L13 21h-2l-.5-2.4c-.5-.2-1-.4-1.5-.7l-2.1 1.3-1.4-1.4 1.3-2.1c-.3-.5-.5-1-.7-1.5L3.7 13v-2l2.4-.5c.2-.5.4-1 .7-1.5L5.5 6.9l1.4-1.4L9 6.8c.5-.3 1-.5 1.5-.7L11 3Zm1 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z'/%3E%3C/svg%3E"); }
.coming-preview {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(153, 167, 194, .32);
  background: rgba(7, 14, 26, .55);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.coming-preview .tool-icon { grid-row: span 2; width: 36px; height: 36px; color: #fff; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.coming-preview strong { display: block; }
.coming-preview small { color: var(--muted); }
#overlayCanvas.card-dragging { cursor: move; }


/* SkyMov v1.6 additions */
.icon-text3d {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v3h-6v11h-4V8H4V5Zm13.5 7 3.5 2-3.5 2-3.5-2 3.5-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v3h-6v11h-4V8H4V5Zm13.5 7 3.5 2-3.5 2-3.5-2 3.5-2Z'/%3E%3C/svg%3E");
}
.export-progress {
  display: none;
  position: relative;
  height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0d1526;
  margin-top: 10px;
  overflow: hidden;
}
.export-progress.active { display: block; }
#exportProgressBar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  transition: width .15s linear;
}
#exportProgressText {
  position: relative; z-index: 2;
  display: flex; height: 100%;
  align-items: center; justify-content: center;
  font-size: 12px; color: #fff; font-weight: 800;
}
.route-segment { background: linear-gradient(90deg, #14b8a6, #67e8f9) !important; }
.text3d-segment { background: linear-gradient(90deg, #8b5cf6, #d8b4fe) !important; }
#overlayCanvas.route-drawing { cursor: crosshair; }
#overlayCanvas.text-dragging, #overlayCanvas.card-resizing { cursor: move; }
