:root {
  --cream-bg: #FAFBFD;
  --linen-bg: #F1F4F8;
  --powder-blue: #C9DDF0;
  --powder-blue-deep: #8AB3DA;
  --ice-blue: #E4EEF8;
  --silver-dark: #2C3542;
  --silver-mid: #7E8C9F;
  --pink-nonna: #E67BA2;
  --pink-deep: #C4497A;
  --ink: #1E242D;
  --ink-muted: #5F6B7A;
  --border-silver: #D7E0EC;
  --radius-xl: 20px;
  --radius-md: 12px;
}

@keyframes silverShimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sparklePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50%      { opacity: 0.95; transform: scale(1.15); }
}

.shimmer-silver-surface {
  background: linear-gradient(
    125deg,
    #DCE3EC 0%,
    #F7FAFD 22%,
    #C5D1E0 45%,
    #FFFFFF 56%,
    #CFD9E6 78%,
    #F2F6FA 100%
  );
  background-size: 260% 260%;
  animation: silverShimmer 6.5s ease-in-out infinite;
  border: 1px solid #B8C7DA;
  box-shadow: 0 8px 26px rgba(130, 150, 175, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shimmer-silver-btn {
  background: linear-gradient(
    120deg,
    #CFD8E4 0%,
    #F8FBFF 32%,
    #B6C4D6 55%,
    #FFFFFF 72%,
    #C9D4E3 100%
  );
  background-size: 240% 240%;
  animation: silverShimmer 4.5s ease-in-out infinite;
  color: #1A222E !important;
  border: 1.5px solid #9FB0C7 !important;
  box-shadow: 0 6px 18px rgba(120, 140, 168, 0.28), inset 0 1px 1px #FFFFFF;
  font-weight: 700 !important;
}

.shimmer-silver-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(120, 140, 168, 0.4), inset 0 1px 2px #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream-bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* 1. POWDER-BLUE & SILVER NAVBAR */
.atelier-nav {
  background: linear-gradient(90deg, #CDE0F2 0%, #E3EEF9 50%, #CDE0F2 100%);
  border-bottom: 1px solid #B7CFE8;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 24px;
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-lockup {
  background: rgba(255, 255, 255, 0.94);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #C5D4E5;
  display: inline-flex;
  align-items: center;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.studio-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--silver-dark);
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #C8D4E3;
}

.limits-info-pill {
  font-size: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #C4D4E6;
}

.link-to-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  transition: all 0.16s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
  color: #496A8E;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* TOP UPLOAD DROPZONE BANNER */
.studio-top-zone {
  max-width: 1380px;
  margin: 14px auto 0;
  padding: 0 20px;
}

.upload-banner {
  background: #FFFFFF;
  border: 2px dashed #AFC8E4;
  border-radius: 18px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(30, 36, 45, 0.04);
}

.upload-banner.drag-over {
  background: #EFF6FD;
  border-color: #6B96C3;
}

.upload-banner.custom-loaded {
  border-style: solid;
  border-color: #68B88E;
  background: linear-gradient(90deg, #F2FBF6 0%, #FFFFFF 48%);
}

.upload-banner-left {
  flex: 1;
  min-width: 260px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.demo {
  background: #8AB3DA;
  box-shadow: 0 0 0 3px rgba(138, 179, 218, 0.25);
}

.status-dot.ready {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.upload-hint {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.upload-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-atelier {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn-atelier-light {
  background: #fff;
  border-color: #C4D0DF;
  color: var(--ink);
}

.btn-atelier-light:hover {
  background: var(--linen-bg);
}

.btn-upload-big {
  background: linear-gradient(135deg, #BBD6F0 0%, #8EB7E0 100%);
  color: #16202B;
  border: 1.5px solid #7FA9D4;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
}

.upload-feedback-bar {
  margin-top: 10px;
  background: #F4F8FD;
  border: 1px solid #BCD2EA;
  border-radius: 12px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.mini-progress-wrap {
  width: 220px;
  height: 8px;
  background: #DCE7F3;
  border-radius: 999px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8AB3DA, #C4497A);
  transition: width 0.25s ease;
}

/* WORKSPACE 3-COLUMN GRID */
.studio-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 360px minmax(350px, 1fr) 380px;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1180px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.atelier-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--border-silver);
  border-radius: 0 18px 18px 18px;
  padding: 15px;
  margin-top: 22px;
  box-shadow: 0 10px 28px rgba(30, 36, 45, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-folder-tab {
  position: absolute;
  top: -23px;
  left: -1px;
  height: 23px;
  padding: 0 16px;
  border-radius: 10px 10px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-silver);
  border-bottom: none;
}

.tab-silver {
  background: linear-gradient(120deg, #DCE3EC 0%, #F8FBFF 50%, #CBD5E3 100%);
  color: var(--ink);
}
.tab-blue { background: var(--powder-blue); color: var(--ink); }
.tab-pearl { background: #E9EEF5; color: var(--ink); }

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.panel-header h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}

.panel-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.saved-badge {
  background: #E8F5EE;
  color: #1B653E;
  border: 1px solid #B7E1C9;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Pause Cutter */
.pause-toolbar {
  display: flex;
  gap: 7px;
}

.btn-magic {
  flex: 1;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-magic strong {
  background: var(--pink-deep);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.btn-restore {
  background: var(--linen-bg);
  border: 1px solid var(--border-silver);
  color: var(--ink);
  border-radius: 10px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sensitivity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--cream-bg);
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--border-silver);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slider-group input[type="range"] {
  width: 68px;
  accent-color: #678EB7;
}

.btn-mini {
  background: #fff;
  border: 1px solid #C2CFDF;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

/* Segments */
.segments-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
}

.seg-item {
  border: 1px solid var(--border-silver);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.14s;
}

.seg-item:hover {
  border-color: var(--powder-blue-deep);
}

.seg-item.active-now {
  border-color: #6B95C2;
  background: #F4F9FE;
  box-shadow: 0 0 0 2px rgba(138, 179, 218, 0.22);
}

.seg-item.is-pause {
  background: #FEF9E7;
  border-color: #F3DC99;
}

.seg-item.is-cut {
  opacity: 0.5;
  background: #FDF2F2;
  border-color: #F5C2C2;
  text-decoration: line-through;
}

.seg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
}

.seg-time { font-family: monospace; font-weight: 600; }

.seg-cut-btn {
  border: none;
  background: var(--linen-bg);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.seg-item.is-cut .seg-cut-btn {
  background: #FEE2E2;
  color: #991B1B;
}

.seg-edit-text {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 2px 4px;
  background: transparent;
  width: 100%;
  font-family: inherit;
}

.seg-edit-text:focus {
  outline: none;
  background: #fff;
  border-color: var(--powder-blue-deep);
}

.seg-accent-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.seg-accent-tag {
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 10.5px;
}

.seg-accent-input {
  border: 1px dashed #DFC3CE;
  background: #FFFBFD;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pink-deep);
  width: 130px;
  text-transform: uppercase;
}

.add-phrase-bar {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-silver);
}

.add-phrase-bar input {
  border: 1px solid var(--border-silver);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  flex: 1;
  min-width: 0;
}

.accent-input-small {
  max-width: 92px;
  text-transform: uppercase;
}

/* CENTER PHONE PREVIEW + DRAG INTERACTION */
.panel-preview {
  background: linear-gradient(180deg, #F2F7FC 0%, #FFFFFF 100%);
  align-items: center;
  justify-content: space-between;
}

.preview-top-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.drag-tip-pill {
  font-size: 11px;
  font-weight: 600;
  color: #2A4365;
  background: #EBF4FF;
  border: 1px solid #BEE3F8;
  padding: 4px 12px;
  border-radius: 999px;
  text-align: center;
}

.quick-element-bar {
  width: 100%;
  background: #F4F8FD;
  border: 1px solid #C8D9EC;
  border-radius: 999px;
  padding: 5px 10px 5px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sel-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #1E242D;
}

.quick-size-btns {
  display: flex;
  gap: 5px;
}

.q-btn {
  background: #FFFFFF;
  border: 1px solid #B5C7DD;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #1E242D;
  cursor: pointer;
}

.q-btn:hover {
  background: #E2EEF9;
}

.stepper-slider {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #C4D1E0;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-btn:hover {
  background: #EBF3FC;
}

.shade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.shade-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.swatch-dot {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #B8C4D4;
  cursor: pointer;
  padding: 0;
}

.swatch-dot.active {
  box-shadow: 0 0 0 2.5px #1E242D;
  transform: scale(1.1);
}

.custom-color-wheel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #B8C4D4;
  cursor: pointer;
  font-size: 12px;
}

.custom-color-wheel input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-muted);
  cursor: pointer;
}

.phone-frame-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.phone-bezel {
  position: relative;
  width: 292px;
  height: 519px;
  border-radius: 26px;
  background: #14181F;
  box-shadow: 0 20px 42px rgba(30, 36, 45, 0.22), 0 0 0 6px #CBD5E1;
  overflow: hidden;
  touch-action: none;
}

/* Keep sourceVideo alive in layout (1x1px opacity 0) so browser ALWAYS decodes frames! */
#sourceVideo {
  position: absolute;
  width: 2px;
  height: 2px;
  opacity: 0.001;
  pointer-events: none;
  z-index: -1;
}

#previewCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#previewCanvas:active {
  cursor: grabbing;
}

.big-play-overlay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #BAC8D9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  z-index: 4;
}

.q-btn-edit {
  background: linear-gradient(135deg, #DCE7F5 0%, #FFFFFF 55%, #D3DFEE 100%);
  border-color: #96B3D6;
  color: #0F172A;
}

/* Instagram / Edits-style Direct On-Screen Floating Text Editor */
.onscreen-text-popover {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 52px;
  background: rgba(20, 26, 36, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(203, 213, 225, 0.65);
  border-radius: 16px;
  padding: 10px 11px;
  z-index: 20;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 8px;
  touch-action: auto;
}

#ospTextarea, .osp-dot, .osp-sz, .osp-done-btn {
  touch-action: auto;
}

.osp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #E2E8F0;
}

.osp-done-btn {
  background: linear-gradient(135deg, #DCE6F2, #FFFFFF);
  color: #0F172A;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

#ospTextarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  resize: none;
  outline: none;
}

#ospTextarea:focus {
  border-color: #93C5FD;
  background: rgba(255, 255, 255, 0.18);
}

.osp-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.osp-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
}

.osp-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  cursor: pointer;
  padding: 0;
}

.osp-size-pair {
  display: flex;
  gap: 5px;
}

.osp-sz {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.skip-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.94);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.skip-toast.visible { opacity: 1; }

.transport-bar {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-silver);
  border-radius: 12px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  background: var(--linen-bg);
  border: 1px solid #D5DFEC;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.play-btn-main {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.time-readout {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
}

.time-sep { color: #9AA6B5; margin: 0 2px; }

.split-btn {
  margin-left: auto;
  background: var(--ice-blue);
  border: 1px solid #BCD2EA;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* RIGHT STYLE PANEL */
.control-block {
  background: var(--cream-bg);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.logo-highlight-block {
  background: linear-gradient(180deg, #F5F9FF 0%, #FFFFFF 100%);
  border: 1.5px solid #B5D0EC;
}

.block-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.block-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.block-row-between input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6B95C2;
  cursor: pointer;
}

.logo-variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mini-opt {
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.mini-opt.active {
  background: linear-gradient(120deg, #CFD8E4 0%, #F5F9FF 50%, #B8C6D8 100%);
  border-color: #8CA0B8;
  color: #161E29;
  font-weight: 700;
}

.logo-sliders-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  gap: 6px;
}

.mini-field input[type="range"] {
  width: 125px;
  accent-color: #6B95C2;
}

.select-sm {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  background: #fff;
}

.download-png-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 5px;
  border-top: 1px dashed #CBDCEF;
}

.link-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--powder-blue);
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.text-field, .text-field-sm {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 11.5px;
  background: #fff;
}

.color-pills { display: flex; gap: 8px; align-items: center; }

.color-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #B8C4D4;
  cursor: pointer;
}

.color-pill.active {
  box-shadow: 0 0 0 2.5px #1E242D;
}

/* Storyboard Dock (Sleek Silver-Slate instead of brown!) */
.storyboard-dock {
  margin-top: 18px;
  background: linear-gradient(180deg, #1E2530 0%, #151A22 100%);
  color: #F1F5F9;
  border-radius: 18px;
  padding: 14px 18px;
  border: 1px solid #334155;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dock-title strong { font-size: 13px; margin-right: 10px; }
.dock-title span { font-size: 11.5px; color: #94A3B8; }

.dock-legend {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: #CBD5E1;
}

.legend-box {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-box.speech { background: #34D399; }
.legend-box.pause  { background: #FBBF24; }
.legend-box.cut    { background: #F87171; }

.timeline-scroll-container {
  position: relative;
  background: #0F141B;
  border: 1px solid #2D3848;
  border-radius: 12px;
  padding: 8px 0;
  overflow-x: auto;
  cursor: pointer;
}

.playhead-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
  z-index: 15;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.playhead-cap {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #64748B;
  transform: translate(-5px, -2px);
}

.filmstrip-track {
  display: flex;
  height: 68px;
  width: 100%;
  min-width: 900px;
  overflow: hidden;
  border-bottom: 1px solid #26303F;
}

.film-frame {
  flex: 1;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.12);
  background-size: cover;
  background-position: center;
  min-width: 56px;
}

.film-frame span {
  position: absolute;
  bottom: 3px;
  left: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 9.5px;
  font-family: monospace;
  padding: 1px 4px;
  border-radius: 3px;
}

.waveform-track-wrap {
  width: 100%;
  min-width: 900px;
  height: 44px;
  border-bottom: 1px solid #26303F;
}

#waveformCanvas {
  width: 100%;
  height: 44px;
  display: block;
}

.segments-bar-track {
  position: relative;
  height: 26px;
  width: 100%;
  min-width: 900px;
  margin-top: 4px;
}

.timeline-seg-pill {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 0 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(52, 211, 153, 0.72);
}

.timeline-seg-pill.is-pause {
  background: rgba(251, 191, 36, 0.88);
  color: #0F172A;
}

.timeline-seg-pill.is-cut {
  background: repeating-linear-gradient(
    45deg,
    rgba(248, 113, 113, 0.65),
    rgba(248, 113, 113, 0.65) 6px,
    rgba(127, 29, 29, 0.65) 6px,
    rgba(127, 29, 29, 0.65) 12px
  );
}

/* ========================================================= */
/* PLAN PRESENTATION PAGE STYLES (SILVER SHIMMER + POWDER)   */
/* ========================================================= */
.hero-editorial {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 24px 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

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

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #556982;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4.1vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-copy h1 em {
  font-style: italic;
  color: #496D94;
  font-weight: 600;
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.btn-pill-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #B8C7DA;
}

.hero-collage {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-card {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 175px;
  transform: rotate(-7deg);
  z-index: 1;
}

.envelope-svg { width: 100%; height: auto; }

.hero-photo-polaroid {
  background: #fff;
  padding: 12px 12px 34px;
  border: 1px solid #DCE4EE;
  box-shadow: 0 18px 36px rgba(30, 36, 45, 0.1);
  transform: rotate(2.5deg);
  width: 240px;
  z-index: 2;
}

.hero-photo-polaroid img {
  width: 100%;
  height: 255px;
  object-fit: cover;
  display: block;
}

.polaroid-caption-hand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
  margin-top: 8px;
}

.postage-stamp-badge {
  position: absolute;
  bottom: 10px;
  right: 18px;
  width: 92px;
  height: 108px;
  padding: 8px;
  border: 2px dashed #A9B9CC;
  transform: rotate(-3deg);
  z-index: 3;
}

.stamp-inner {
  border: 1px solid #8D9FB5;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-initials {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.stamp-num {
  position: absolute;
  bottom: 3px;
  right: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.stamp-key-svg { width: 48px; height: 48px; }

.editorial-marquee {
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  padding-left: 20px;
}

.marquee-track span { margin: 0 14px; }

.section-heading-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.section-heading-center h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  color: var(--ink);
}

.section-heading-center h2 em {
  font-style: italic;
  color: #496D94;
}

.services-editorial {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.folder-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 32px;
  margin-top: 36px;
}

@media (max-width: 820px) {
  .folder-cards-grid { grid-template-columns: 1fr; }
}

.folder-card {
  position: relative;
  border-radius: 0 18px 18px 18px;
  padding: 26px 26px 24px;
  min-height: 215px;
  box-shadow: 0 12px 28px rgba(30, 36, 45, 0.06);
}

.folder-card::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  width: 44%;
  height: 23px;
  border-radius: 12px 12px 0 0;
  background: inherit;
}

.folder-pearl  { background: #EAEFF6; }
.folder-silver { background: #DCE4EE; }
.folder-blue   { background: #BDD6EE; }
.folder-ice    { background: #D3E4F5; }

.folder-photo-peek {
  position: absolute;
  top: -34px;
  right: 26px;
  width: 138px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(30, 36, 45, 0.14);
  transform: rotate(3deg);
}

.folder-photo-peek img { width: 100%; height: 100%; object-fit: cover; }

.folder-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #475C75;
  display: block;
  margin-bottom: 8px;
}

.folder-body h3 {
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  max-width: 72%;
  line-height: 1.15;
}

.folder-body p {
  font-size: 13.5px;
  color: #333E4D;
  line-height: 1.48;
}

.deco-icon {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-size: 22px;
}

/* SHIMMERING SILVER BAND (Replaces brown band completely!) */
.silver-shimmer-band {
  position: relative;
  padding: 64px 24px;
  background: linear-gradient(
    125deg,
    #CED8E5 0%,
    #F4F8FC 25%,
    #BCCAD9 48%,
    #FFFFFF 60%,
    #C7D4E3 82%,
    #EEF3F9 100%
  );
  background-size: 260% 260%;
  animation: silverShimmer 7s ease-in-out infinite;
  border-top: 1px solid #B7C7DA;
  border-bottom: 1px solid #B7C7DA;
  overflow: hidden;
}

.sticky-notes-row {
  max-width: 1180px;
  margin: 34px auto 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .sticky-notes-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .sticky-notes-row { grid-template-columns: 1fr; }
}

.sticky-card {
  padding: 24px 20px;
  border-radius: 10px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 14px 28px rgba(45, 62, 85, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sticky-pearl  { background: rgba(255, 255, 255, 0.92); transform: rotate(-1.8deg); }
.sticky-sky    { background: #DCEBFA; transform: rotate(1.5deg); }
.sticky-frost  { background: #F0F5FB; transform: rotate(-1.2deg); }
.sticky-blush  { background: #FCEEF4; transform: rotate(1.8deg); }

.sticky-icon { font-size: 24px; }

.sticky-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
}

.sticky-card p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.35;
  color: #2B3544;
}

.striped-stamp-section {
  background: repeating-linear-gradient(
    90deg,
    #D6E5F5 0px,
    #D6E5F5 16px,
    #F2F7FC 16px,
    #F2F7FC 32px
  );
  padding: 68px 24px;
}

.scalloped-stamp-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 44px 48px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(30, 36, 45, 0.09);
  border: 6px dotted #C6D8EC;
  border-radius: 10px;
}

.scalloped-stamp-card blockquote {
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.45;
  color: var(--ink);
  margin: 10px 0 22px;
}

.pricing-subnote {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border-silver);
  padding-top: 16px;
}

.corner-stamp-mini {
  position: absolute;
  bottom: 16px;
  right: 18px;
  border: 1.5px dashed #9EB0C7;
  padding: 5px 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: #F5F8FC;
  transform: rotate(-4deg);
}

/* EXPORT / PREVIEW RESULT MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

.modal-card h3 {
  font-size: 25px;
  margin-bottom: 6px;
}

.modal-card p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.result-video-preview {
  width: 220px;
  height: 390px;
  border-radius: 16px;
  background: #0F172A;
  margin: 0 auto 14px;
  display: block;
  object-fit: cover;
  border: 2px solid #CBD5E1;
}

.progress-bar-outer {
  height: 10px;
  background: var(--linen-bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #8AB3DA, #E67BA2);
  transition: width 0.15s linear;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
