/* ======================================================
   Ad Mockup Dashboard — First Page CI
   ====================================================== */
:root {
  --fp-blue: #3f79d1;
  --fp-blue-dark: #2f63b5;
  --fp-blue-50: #eef3fb;
  --fp-blue-100: #dce8f6;
  --fp-black: #000000;
  --fp-white: #ffffff;
  --ink: #111418;
  --ink-2: #4a5260;
  --ink-3: #6b7280;
  --line: #e6e8eb;
  --surface: #f5f6f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Proxima Nova", "Inter", -apple-system, "Segoe UI", system-ui, Roboto, sans-serif;
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #e6e8eb;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-title { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 12px; color: #6b7280; }

/* Top tabs */
.tabs {
  display: flex; gap: 4px;
  background: #f0f1f4; padding: 4px; border-radius: 10px;
  margin: 0 12px;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border: 0; background: transparent;
  cursor: pointer; font: inherit;
  font-weight: 600; font-size: 14px;
  color: var(--ink-2); border-radius: 7px;
  transition: all .15s;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab-logo { height: 16px; width: auto; object-fit: contain; display: block; }
.tab-logo.google { height: 18px; }

/* Platform groups: only active-tab is visible */
.platform-group { display: none; margin-bottom: 28px; }
.platform-group.active-tab { display: block; }
.platform-group.hidden { display: none !important; }

.platform-group-header { margin: 8px 0 18px; }
.platform-group-title {
  font-size: 18px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.group-logo { height: 22px; width: auto; object-fit: contain; display: block; }
.group-logo.google { height: 26px; }
.platform-group-sub {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
}

.ad-list { display: flex; flex-direction: column; gap: 0; }

.actions { display: flex; gap: 8px; }
.btn {
  padding: 9px 16px; font-size: 13px; font-weight: 600; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--fp-blue); color: #fff; }
.btn.primary:hover { background: var(--fp-blue-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--fp-blue-50); border-color: var(--fp-blue); color: var(--fp-blue-dark); }
.btn.big { padding: 14px 28px; font-size: 14px; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

/* Brand panel (shared) */
.brand-panel {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 24px;
}
.panel-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #6b7280; margin: 0 0 14px;
}
.panel-sub { color: #9ca3af; text-transform: none; letter-spacing: 0; font-weight: 500; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

label {
  display: block; font-size: 12.5px; color: #1f2937; font-weight: 600;
  letter-spacing: -0.005em;
}
input[type="text"], textarea, select {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px; border: 1px solid #dfe2e7; border-radius: 8px;
  font: inherit; font-size: 13px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--fp-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(63,121,209,.12);
}
input[type="text"]::placeholder, textarea::placeholder {
  color: #9aa1ac;
}

/* ---------- Custom-styled file inputs ---------- */
input[type="file"] {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px;
  font: inherit; font-size: 12.5px;
  /* Hide the locale-dependent "No file chosen" / "Keine ausgewählt" text — it overflows narrow columns */
  color: transparent;
  background: #fafbfc;
  border: 1px dashed #cdd2db;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
input[type="file"]:hover {
  border-color: var(--fp-blue);
  background: #f4f7fc;
}
input[type="file"]:focus { outline: none; border-color: var(--fp-blue); }
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
}
input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button {
  background: var(--fp-blue);
}

textarea { resize: vertical; }

/* Inline "× Remove" button shown next to media file inputs */
.clear-media-btn {
  display: inline-flex; align-items: center;
  margin-top: 6px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid #e6e8eb;
  border-radius: 6px;
  font: inherit; font-size: 11.5px; font-weight: 600;
  color: #b91c1c;
  cursor: pointer;
  transition: all .15s;
}
.clear-media-btn:hover { background: #fef2f2; border-color: #fca5a5; }
.clear-media-btn.hidden { display: none !important; }

/* Small thumbnail preview next to file inputs when something is uploaded */
.file-thumb {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  padding: 4px 8px 4px 4px;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.file-thumb img, .file-thumb video {
  width: 36px; height: 36px;
  border-radius: 5px;
  object-fit: cover;
  background: #f0f1f4;
  display: block;
}
.file-thumb.hidden { display: none !important; }
.file-thumb-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}

.lang-toggle {
  display: flex;
  background: #f0f1f4;
  padding: 3px;
  border-radius: 7px;
  margin: 4px 0 12px;
  gap: 2px;
}
.lang-btn {
  flex: 1;
  border: 0; background: transparent;
  padding: 6px 10px;
  font: inherit; font-size: 12px; font-weight: 600;
  color: #6b7280; border-radius: 5px;
  cursor: pointer; transition: all .15s;
}
.lang-btn.active {
  background: #fff; color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.toggle-row {
  display: flex !important;
  align-items: center; justify-content: space-between;
  gap: 10px;
  font-weight: 600; font-size: 12.5px; color: #1f2937;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 10px; margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.toggle-row:hover { border-color: #cdd2db; background: #fafbfc; }
.toggle-row:has(input:checked) {
  border-color: var(--fp-blue);
  background: #f4f7fc;
}
.toggle-row input[type="checkbox"] {
  margin: 0;
  width: 16px; height: 16px;
  accent-color: #111;
}

.hint {
  font-size: 11px; color: #6b7280; line-height: 1.5;
  margin: 0 0 10px; padding: 0;
}

/* ---------- Ad block ---------- */
.ad-block {
  background: transparent;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #d8dbe0;
  position: relative;
}
.ad-block:last-of-type { border-bottom: 0; }
.ad-block::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, #b0b3b8, transparent);
}
.ad-block:last-of-type::after { display: none; }

.ad-block-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.ad-block-title {
  display: flex; align-items: center; gap: 12px; flex: 1;
}
.ad-block-num {
  background: #111; color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 8px;
  white-space: nowrap;
}
.ad-block-name {
  flex: 1; max-width: 360px;
  margin: 0 !important;
  border: 1px solid transparent; background: transparent;
  font-size: 15px; font-weight: 600;
}
.ad-block-name:hover { border-color: #e6e8eb; background: #fff; }
.ad-block-name:focus { border-color: var(--fp-blue); background: #fff; }
.remove-ad-btn {
  background: transparent; border: 1px solid #e6e8eb;
  padding: 7px 12px; border-radius: 7px;
  font: inherit; font-size: 12px; color: #b91c1c;
  cursor: pointer;
}
.remove-ad-btn:hover { background: #fef2f2; border-color: #fca5a5; }

.ad-platform-toggle {
  display: flex;
  background: #f0f1f4;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}
.platform-btn {
  border: 0; background: transparent;
  padding: 7px 14px;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-3); border-radius: 6px;
  cursor: pointer; transition: all .15s;
}
.platform-btn.active {
  background: var(--fp-blue); color: #fff;
  box-shadow: 0 1px 3px rgba(63,121,209,.3);
}
.platform-btn:hover:not(.active) { background: #fff; color: var(--ink); }

/* Hide sections based on platform selection */
.ad-block[data-platform="meta"] .google-section { display: none; }
.ad-block[data-platform="google"] .meta-section { display: none; }

/* Collapsible section */
.ad-section {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.ad-section > summary {
  list-style: none;
  padding: 16px 22px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
  user-select: none;
}
.ad-section > summary::-webkit-details-marker { display: none; }
.ad-section > summary:hover { background: #fafbfc; }
.section-chevron {
  font-size: 18px; color: #6b7280;
  transition: transform .2s;
  display: inline-block;
  width: 16px;
}
.ad-section[open] > summary > .section-chevron {
  transform: rotate(90deg);
}
.section-name { font-size: 15px; }
.section-hint { font-size: 12px; color: #6b7280; font-weight: 500; }

.ad-section-body {
  padding: 0 22px 22px;
  border-top: 1px solid #f0f1f4;
  padding-top: 22px;
}

/* Google sub-sections (Search vs PMax) */
.google-subsection {
  background: #fafbfc;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.google-subsection > summary {
  list-style: none;
  padding: 13px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  user-select: none;
  background: #fff;
}
.google-subsection > summary::-webkit-details-marker { display: none; }
.google-subsection > summary:hover { background: #f6f8fa; }
.google-subsection[open] > summary > .section-chevron {
  transform: rotate(90deg);
}
.google-subsection > summary > .section-name {
  font-size: 14px;
}
.google-subsection > .ad-section-body {
  padding: 18px;
  border-top: 1px solid #eef0f3;
}
.google-search-subsection > summary { border-left: 3px solid #4285F4; }
.google-pmax-subsection > summary { border-left: 3px solid #34A853; }

.edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.edit-section {
  background: #f7f8fa;
  border: 1px solid #eaecef;
  border-radius: 12px;
  padding: 18px 18px 14px;
  position: relative;
}
.edit-section h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #1f2937;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.edit-section h4::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--fp-blue);
}
.meta-section .edit-section h4::before { background: #0866ff; }
.google-search-subsection .edit-section h4::before { background: #4285F4; }
.google-pmax-subsection .edit-section h4::before { background: #34A853; }

.edit-section label { margin-bottom: 14px; }
.edit-section label:last-child { margin-bottom: 0; }

.preview-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 24px 0 18px;
  color: #6b7280;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.preview-divider::before,
.preview-divider::after {
  content: ""; flex: 1; height: 1px; background: #e6e8eb;
}

/* Add ad row */
.add-ad-row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 30px 0 60px;
}
.add-ad-row.dual .btn { min-width: 200px; }

/* Google ad sub-type filter — when an ad is created as Search, hide the PMax sub-section,
   and vice versa. The whole-Google section (.google-section) is still visible. */
.ad-block[data-google-type="search"] .google-pmax-subsection { display: none !important; }
.ad-block[data-google-type="pmax"] .google-search-subsection { display: none !important; }

/* Section title */
.section-title {
  font-size: 16px; font-weight: 700; margin: 16px 0 14px;
  color: #111;
}
.section-title:not(:first-child) { margin-top: 30px; }

/* ---------- Mockup grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.pmax-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.mockup-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 18px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
.mockup-card.wide { grid-column: span 2; }
.mockup-label {
  font-size: 12px; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: .06em;
  align-self: flex-start;
}

/* PMax stack — one set per uploaded image */
.pmax-stack { display: flex; flex-direction: column; gap: 28px; }
.pmax-set {
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  padding: 18px;
}
.pmax-set-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.pmax-set-num {
  background: #1a73e8; color: #fff;
  font-weight: 600; font-size: 11px;
  padding: 4px 10px; border-radius: 6px;
}
.pmax-set-hint {
  font-size: 11px; color: #6b7280;
}
.pmax-set .mockup-card { background: #fff; }

/* ---------- Phone frame ---------- */
.phone {
  width: 280px;
  height: 580px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 0 0 2px #2a2a2a, 0 20px 50px rgba(0,0,0,.15);
}
.phone-screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 28px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 11px;
  position: relative;
  scrollbar-width: thin;
}
.phone-screen::-webkit-scrollbar { width: 4px; }
.phone-screen::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.phone-screen.story-screen,
.phone-screen.reel-screen { overflow: hidden; }

/* ---------- Media slot (image OR video) ---------- */
.media-slot {
  position: relative;
  background: linear-gradient(135deg, #f5e6d3, #e8c9a8);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.media-slot.square { width: 100%; aspect-ratio: 1 / 1; }
.media-slot.landscape { width: 100%; aspect-ratio: 1.91 / 1; }
.media-slot.portrait { width: 100%; aspect-ratio: 9 / 16; }
.media-slot.fill { position: absolute; inset: 0; }
.media-slot::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,.25); font-weight: 600; font-size: 12px;
  pointer-events: none;
}
.media-slot:not([data-placeholder])::after { content: "Upload media"; }
.media-slot.has-media::after { content: none; display: none; }
.media-slot.fill:not([data-placeholder])::after,
.story-screen .media-slot::after,
.reel-screen .media-slot::after { color: rgba(255,255,255,.45); }

.media-slot video,
.media-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.media-slot .video-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14px 18px;
  background: linear-gradient(135deg, #2c2c34, #1a1a20);
  color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4;
  z-index: 2;
}
.media-slot .video-fallback small {
  display: block; margin-top: 8px;
  font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.75);
  line-height: 1.45;
}
.media-slot .video-fallback strong { color: #ffd66b; }
.media-slot.has-video-error::after { content: ""; }

/* ---------- Instagram ---------- */
.ig-status {
  display: flex; justify-content: space-between;
  padding: 10px 18px 4px; font-size: 11px; font-weight: 600;
  color: #000;
}
.ig-status.light { color: #fff; position: absolute; left: 0; right: 0; z-index: 4; }
.ig-status-icons { letter-spacing: -1px; font-size: 9px; }

.ig-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #efefef;
}
.ig-logo {
  font-family: 'Billabong', cursive, serif;
  font-style: italic;
  font-size: 22px; letter-spacing: -.5px;
}
.ig-topicons { display: flex; gap: 12px; font-size: 14px; }
.ic-heart::before { content: "♡"; }
.ic-msg::before { content: "✉"; }

.ig-post { display: flex; flex-direction: column; }
.ig-post-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
  border: 2px solid transparent;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.avatar.small { width: 26px; height: 26px; }
.avatar.tiny { width: 22px; height: 22px; }
.avatar.has-media {
  background: var(--logo-bg) center/cover no-repeat !important;
  border: 2px solid #dbdbdb;
}

.ig-post-meta { flex: 1; }
.ig-handle { font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 3px; }
.verified { color: #3897f0; font-size: 10px; }
.ig-sub { font-size: 10px; color: #555; }
.ig-dots { font-size: 14px; color: #333; cursor: pointer; }
.ig-dots.light { color: #fff; }

.ig-cta-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  background: #fafafa;
  font-weight: 600; font-size: 12px;
  border-top: 1px solid #efefef;
}
.chev { color: #999; }

.ig-actions {
  display: flex; justify-content: space-between;
  padding: 8px 12px 4px;
  font-size: 18px;
}
.ig-actions-left { display: flex; gap: 12px; }
.ic.ic-like::before { content: "♡"; }
.ic.ic-comment::before { content: "💬"; font-size: 14px; }
.ic.ic-share::before { content: "✈"; }
.ic.ic-save::before { content: "⌒"; transform: rotate(180deg); display: inline-block; }

.ig-likes { padding: 0 12px 4px; font-size: 11px; font-weight: 600; }
.ig-caption { padding: 0 12px 4px; font-size: 11px; line-height: 1.4; white-space: pre-wrap; }
.ig-comments { padding: 4px 12px 8px; font-size: 11px; color: #888; }

/* Carousel */
.ig-carousel {
  width: 100%; aspect-ratio: 1 / 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #f0f0f0;
}
.ig-carousel::-webkit-scrollbar { display: none; }
.ig-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background-size: cover; background-position: center;
  background-color: #ddd;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,.3); font-weight: 600;
}
.ig-carousel-slide video, .ig-carousel-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.ig-dots-row { display: flex; justify-content: center; gap: 4px; padding: 6px 0; }
.ig-dots-row .dot { width: 5px; height: 5px; border-radius: 50%; background: #c7c7c7; }
.ig-dots-row .dot.active { background: #3897f0; }

/* Story / Reel */
.story-screen { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); color: #fff; position: relative; }
.story-progress {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; gap: 3px; z-index: 4;
}
.story-progress .bar {
  flex: 1; height: 2px; background: rgba(255,255,255,.35);
  border-radius: 2px;
}
.story-progress .bar.full { background: #fff; }
.story-head {
  position: absolute; top: 18px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px;
  z-index: 4;
}
.story-meta { flex: 1; }
.story-handle { font-weight: 600; font-size: 12px; color: #fff; }
.story-sub { font-size: 10px; color: rgba(255,255,255,.7); }

.story-cta {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.95); color: #000;
  padding: 9px 22px; border-radius: 22px;
  font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  z-index: 4;
}
.story-cta.blue { background: #1877f2; color: #fff; }
.cta-arrow { font-size: 14px; }

.reel-screen { background: #000; color: #fff; position: relative; }
.reel-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 3;
}
.reel-side {
  position: absolute; right: 8px; bottom: 100px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ic-circle { font-size: 18px; line-height: 1; }
.ic-num { font-size: 9px; margin-bottom: 4px; }
.reel-bottom {
  padding: 14px 12px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
}
.reel-handle {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 12px;
  margin-bottom: 6px;
}
.sponsored-pill {
  background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 4px;
  font-size: 9px; font-weight: 500;
}
.reel-caption {
  font-size: 11px; line-height: 1.4;
  margin-bottom: 10px; max-width: 80%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-cta-bar {
  background: rgba(255,255,255,.95); color: #000;
  padding: 9px 14px; border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 12px;
  width: 80%;
}

/* ---------- Facebook ---------- */
.fb-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #eaeaea;
}
.fb-logo { font-weight: 800; color: #1877f2; font-size: 18px; letter-spacing: -.5px; }
.fb-icons { font-size: 14px; }
.fb-post-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 8px; }
.fb-name { font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.fb-dots { color: #65676b; margin-left: auto; font-size: 12px; font-weight: 400; }
.fb-sub { font-size: 10px; color: #65676b; margin-top: 2px; }
.fb-text { padding: 0 12px 8px; font-size: 12px; line-height: 1.4; white-space: pre-wrap; }
.fb-more { color: #65676b; }
.fb-link-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #f0f2f5;
}
.fb-link-url { font-size: 9px; text-transform: uppercase; color: #65676b; letter-spacing: .04em; }
.fb-link-title {
  font-size: 13px; font-weight: 600; color: #050505; margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px;
}
.fb-cta {
  background: #e4e6eb; border: 0;
  padding: 7px 14px; border-radius: 6px;
  font-weight: 600; font-size: 12px; cursor: pointer;
  white-space: nowrap;
}
.fb-engagement {
  display: flex; justify-content: space-between;
  padding: 10px 12px 6px;
  font-size: 11px; color: #65676b;
  border-bottom: 1px solid #eaeaea;
}
.reax { font-size: 12px; }
.fb-actions { display: flex; justify-content: space-around; padding: 8px 12px; font-size: 11px; color: #65676b; font-weight: 600; }

/* ---------- Google ---------- */
.google-screen { background: #fff; font-family: 'Roboto', sans-serif; }
.g-topbar { padding: 14px 14px 8px; border-bottom: 1px solid #f0f0f0; }
.g-logo { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.g-search {
  background: #f1f3f4; padding: 9px 14px; border-radius: 22px;
  font-size: 12px; color: #5f6368;
  display: flex; justify-content: space-between;
}
.g-tabs {
  margin-top: 12px; font-size: 11px; color: #5f6368;
  white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.g-tabs::-webkit-scrollbar { display: none; }

.g-result { padding: 14px; border-bottom: 1px solid #f0f0f0; }
.g-result.compact { padding: 12px; border: 0; }
.g-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.g-fav {
  width: 26px; height: 26px;
  border-radius: 50%; background: #fff;
  border: 1px solid #dadce0;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.g-fav.has-media { background: var(--logo-bg) center/cover no-repeat !important; border-color: transparent; }
.g-fav.placeholder { background: #e8eaed; }
.g-sponsored { font-weight: 700; font-size: 11px; color: #202124; letter-spacing: .02em; }
.g-domain { font-size: 11px; color: #5f6368; margin-top: 1px; }
.g-title {
  color: #1a0dab; font-size: 16px; font-weight: 400;
  line-height: 1.3; margin-bottom: 4px; cursor: pointer;
}
.g-title:hover { text-decoration: underline; }
.g-desc { font-size: 12px; color: #4d5156; line-height: 1.5; }
.g-sitelinks {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin-top: 10px; font-size: 12px; color: #1a0dab;
}

.pmax-search { width: 100%; background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 6px; }

/* Display ad */
.display-ad {
  width: 100%;
  border: 1px solid #dadce0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.display-body { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.display-fav {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f1f3f4;
  background-size: cover; background-position: center;
  flex-shrink: 0;
  border: 1px solid #dadce0;
}
.display-fav.has-media { background: var(--logo-bg) center/cover no-repeat !important; border-color: transparent; }
.display-text { flex: 1; min-width: 0; }
.display-headline {
  font-size: 13px; font-weight: 600; color: #202124;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}
.display-headline.long {
  -webkit-line-clamp: 3;
}
.display-desc {
  font-size: 11px; color: #5f6368; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}
.display-meta { font-size: 10px; color: #5f6368; margin-top: 2px; }
.display-cta {
  background: #1a73e8; color: #fff; border: 0;
  padding: 8px 14px; border-radius: 6px;
  font-weight: 600; font-size: 12px; cursor: pointer; white-space: nowrap;
}

/* YouTube */
.yt-card { width: 100%; background: #fff; }
.yt-thumb {
  width: 100%; aspect-ratio: 16 / 9;
  background: #1a1a1a;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.yt-ad-pill {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,.7); color: #fff;
  padding: 3px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 600;
  z-index: 2;
}
.yt-body { display: flex; gap: 10px; padding: 10px 4px; }
.yt-meta { flex: 1; }
.yt-title {
  font-weight: 600; font-size: 13px; color: #0f0f0f;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-channel { font-size: 11px; color: #606060; margin-top: 4px; }
.yt-desc {
  font-size: 11px; color: #606060; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gmail */
.gmail-card { width: 100%; background: #fff; border-radius: 8px; border: 1px solid #e6e8eb; }
.gmail-row { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.gmail-fav {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f1f3f4;
  background-size: cover; background-position: center;
  flex-shrink: 0;
  border: 1px solid #dadce0;
}
.gmail-fav.has-media { background: var(--logo-bg) center/cover no-repeat !important; border-color: transparent; }
.gmail-meta { flex: 1; min-width: 0; }
.gmail-from { font-weight: 600; font-size: 13px; color: #202124; display: flex; align-items: center; gap: 6px; }
.gmail-ad { background: #fef7e0; color: #b06000; font-size: 9px; padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.gmail-subject {
  font-size: 12px; color: #202124; margin-top: 2px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gmail-snippet {
  font-size: 11px; color: #5f6368; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gmail-time { font-size: 10px; color: #5f6368; }

/* Discover */
.discover-card { width: 100%; background: #fff; border-radius: 12px; border: 1px solid #e6e8eb; overflow: hidden; }
.media-slot.discover { width: 100%; aspect-ratio: 4 / 3; }
.discover-body { padding: 12px; }
.discover-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #5f6368; }
.discover-fav {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #f1f3f4;
  background-size: cover; background-position: center;
  border: 1px solid #dadce0;
}
.discover-fav.has-media { background: var(--logo-bg) center/cover no-repeat !important; border-color: transparent; }
.discover-title { font-weight: 600; font-size: 14px; color: #202124; margin-top: 6px; line-height: 1.3; }
.discover-desc { font-size: 12px; color: #5f6368; margin-top: 4px; }

/* Shopping */
.shopping-card { width: 100%; background: #fff; border-radius: 10px; border: 1px solid #e6e8eb; overflow: hidden; }
.media-slot.shopping { width: 100%; aspect-ratio: 1 / 1; background: #f5f5f5; }
.shopping-body { padding: 12px; }
.shopping-title {
  font-size: 13px; color: #202124; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.shopping-price { font-weight: 700; font-size: 16px; color: #202124; margin-top: 6px; }
.shopping-meta { font-size: 11px; color: #5f6368; margin-top: 2px; }
.shopping-rating { font-size: 11px; color: #fbbc04; margin-top: 4px; }
.shopping-ad-pill { display: inline-block; font-size: 10px; color: #5f6368; margin-top: 6px; font-weight: 600; }

/* ---------- Asset list UI ---------- */
.asset-list-block {
  margin-bottom: 18px;
  border-top: 1px solid #f0f1f4;
  padding-top: 14px;
}
.asset-list-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.asset-list-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.asset-list-header h5 {
  margin: 0;
  font-size: 12px; font-weight: 700;
  color: #374151;
  display: flex; align-items: center; gap: 6px;
}
.asset-count {
  background: #f0f1f4;
  padding: 2px 8px; border-radius: 10px;
  font-size: 11px; color: #4b5563;
  font-weight: 600;
}
.add-asset-btn {
  background: #fff; border: 1px solid #e6e8eb;
  padding: 6px 10px; border-radius: 6px;
  font: inherit; font-size: 11px; font-weight: 600;
  color: #111; cursor: pointer;
}
.add-asset-btn:hover { background: #f5f6f8; }

.asset-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.asset-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.asset-list[data-asset-list="descriptions"] .asset-row,
.asset-list[data-asset-list="sitelinks"] .asset-row,
.asset-list[data-asset-list="callouts"] .asset-row {
  grid-template-columns: auto 1fr auto;
}
.asset-row-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f0f1f4;
  font-size: 10px; font-weight: 700;
  color: #4b5563;
  display: flex; align-items: center; justify-content: center;
}
.asset-row input,
.asset-row textarea,
.asset-row select {
  margin: 0 !important;
  padding: 7px 9px;
  font-size: 12px;
}
.headline-row {
  align-items: flex-start;
}
.headline-input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.headline-input-wrap input {
  margin: 0 !important;
}
.char-count {
  font-size: 10px; color: #6b7280;
  margin-top: 3px;
  text-align: right;
}
.char-count.over { color: #b06000; font-weight: 600; }

.pin-btn {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 6px;
  width: 56px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600;
  color: #5f6368;
  padding: 0;
}
.pin-btn:hover { background: #f5f6f8; }
.pin-btn svg { transform: rotate(0deg); flex-shrink: 0; }

.headline-row.pin-0 .pin-btn { color: #5f6368; }
.headline-row.pin-1 .pin-btn { color: #fff; background: #1a73e8; border-color: #1a73e8; }
.headline-row.pin-2 .pin-btn { color: #fff; background: #137333; border-color: #137333; }
.headline-row.pin-3 .pin-btn { color: #fff; background: #b06000; border-color: #b06000; }
.headline-row.pin-1 .headline-input-wrap input { border-color: #1a73e8; }
.headline-row.pin-2 .headline-input-wrap input { border-color: #137333; }
.headline-row.pin-3 .headline-input-wrap input { border-color: #b06000; }
.pin-label { line-height: 1; }
.asset-remove {
  background: transparent; border: 1px solid #e6e8eb;
  width: 26px; height: 26px;
  border-radius: 6px;
  font-size: 14px; color: #b91c1c;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.asset-remove:hover { background: #fef2f2; border-color: #fca5a5; }

/* Search ad — extensions */
.g-callouts {
  font-size: 12px; color: #4d5156;
  margin-top: 6px; line-height: 1.4;
}

/* Submitted assets summary panel */
.assets-summary {
  background: #fafbfc;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}
.assets-summary-title {
  font-size: 13px; font-weight: 700;
  margin: 0 0 14px;
  color: #111;
  text-transform: uppercase; letter-spacing: .04em;
}
.assets-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.assets-summary h4 {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #6b7280;
  margin: 0 0 8px;
}
.asset-summary-list {
  list-style: decimal;
  margin: 0; padding: 0 0 0 18px;
  font-size: 12px; line-height: 1.6;
  color: #374151;
}
.asset-summary-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed #e6e8eb;
}
.asset-summary-list li:last-child { border-bottom: 0; }
.asset-pin {
  font-size: 10px; color: #6b7280; font-weight: 600;
  white-space: nowrap;
  background: #f0f1f4;
  padding: 1px 6px; border-radius: 8px;
  align-self: center;
}

/* Brand panel meta toggle */
.brand-handle-wrap { grid-column: 1 / -1; }

.platform-flags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.flag-check {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin: 0 !important;
  padding: 8px 14px 8px 10px;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 999px;
  transition: all .15s;
}
.flag-check:hover { border-color: #cdd2db; background: #fafbfc; }
.flag-check:has(input:checked) {
  border-color: var(--fp-blue);
  background: #f0f6ff;
  color: var(--fp-blue);
}
.flag-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 0;
  accent-color: var(--fp-blue);
}

/* Project picker */
.project-picker { position: relative; }
.project-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 14px !important;
  cursor: default;
}
.project-icon { font-size: 14px; }
.project-name-editable {
  font-weight: 600;
  cursor: text;
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.project-name-editable:hover { background: var(--fp-blue-50); border-color: var(--fp-blue-100); }
.project-name-editable[contenteditable="true"] {
  background: #fff;
  border-color: var(--fp-blue);
  outline: none;
}
.project-status {
  font-size: 11px; color: var(--ink-3); font-weight: 500;
  padding: 2px 8px;
  background: #f0f1f4;
  border-radius: 10px;
}
.project-menu-toggle {
  background: transparent; border: 0;
  padding: 4px 8px;
  font: inherit; cursor: pointer;
  color: var(--ink-2);
  border-radius: 5px;
}
.project-menu-toggle:hover { background: var(--fp-blue-50); }
.chev-down { font-size: 11px; }
.project-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 100;
  padding: 8px;
}
.project-menu-section {
  padding: 6px;
  border-bottom: 1px solid var(--line);
}
.project-menu-section:last-child { border-bottom: 0; }
.project-menu-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3);
  padding: 4px 6px;
}
.project-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.project-list-item {
  display: flex; align-items: stretch; gap: 4px;
  border-radius: 6px;
  position: relative;
}
.project-list-item:hover { background: var(--fp-blue-50); }
.project-list-item.active { background: var(--fp-blue-50); border: 1px solid var(--fp-blue-100); }
.project-list-load {
  flex: 1;
  background: transparent; border: 0;
  padding: 8px 10px; border-radius: 6px;
  font: inherit; font-size: 13px;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.project-list-name { font-weight: 600; color: var(--ink); }
.project-list-meta {
  display: flex; gap: 8px; align-items: baseline;
  margin-top: 2px;
}
.project-list-date { font-size: 10px; color: var(--ink-3); }
.project-size {
  font-size: 10px; color: #4b5563;
  background: #eef0f3;
  padding: 1px 6px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.project-size.warn { color: #b91c1c; background: #fee2e2; }
.project-list-rename {
  background: transparent; border: 1px solid transparent;
  width: 28px; align-self: stretch;
  border-radius: 4px;
  font: inherit; font-size: 13px;
  cursor: pointer;
  color: var(--ink-3);
  opacity: 0;
  transition: opacity .15s, background .15s, color .15s;
  flex-shrink: 0;
}
.project-list-item:hover .project-list-rename { opacity: 1; }
.project-list-rename:hover { background: #fff; color: var(--fp-blue); border-color: var(--fp-blue-100); }
.project-list-empty {
  font-size: 12px; color: var(--ink-3);
  padding: 12px; text-align: center;
}
.project-menu-action {
  display: block; width: 100%;
  background: transparent; border: 0;
  padding: 8px 10px; border-radius: 6px;
  font: inherit; font-size: 13px;
  cursor: pointer; text-align: left;
  color: var(--ink);
}
.project-menu-action:hover { background: var(--fp-blue-50); }
.project-menu-action.danger { color: #b91c1c; }
.project-menu-action.danger:hover { background: #fef2f2; }

.project-menu-hint {
  font-size: 9px;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.project-versions {
  max-height: 180px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}
.version-item {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink);
}
.version-item:hover { background: var(--fp-blue-50); }
.version-restore {
  flex: 1;
  background: transparent; border: 0;
  padding: 4px 6px;
  font: inherit; font-size: 12px;
  cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  color: var(--ink);
  border-radius: 4px;
}
.version-when { font-weight: 600; }
.version-meta { font-size: 10px; color: var(--ink-3); font-weight: 500; }
.version-rename, .version-delete {
  background: transparent; border: 1px solid transparent;
  width: 24px; height: 24px;
  border-radius: 4px;
  font: inherit; font-size: 12px;
  cursor: pointer;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.version-rename:hover { background: #fff; color: var(--fp-blue); border-color: var(--fp-blue-100); }
.version-delete:hover { background: #fef2f2; color: #b91c1c; border-color: #fca5a5; }
.version-item.manual {
  background: var(--fp-blue-50);
  border: 1px solid var(--fp-blue-100);
}
.version-item.manual .version-when { color: var(--fp-blue-dark); }

.snapshot-save-btn {
  float: right;
  background: var(--fp-blue);
  color: #fff;
  border: 0;
  padding: 4px 10px;
  border-radius: 5px;
  font: inherit; font-size: 11px; font-weight: 600;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.snapshot-save-btn:hover { background: var(--fp-blue-dark); }

/* Print → PDF (browser → "Save as PDF") */
@page { size: A4; margin: 14mm; }
@media print {
  /* Hide ALL "preparation" UI — only mockups + asset summaries should print */
  .topbar,
  .brand-panel,
  .ad-block-header,
  .add-ad-row,
  .remove-ad-btn,
  .add-asset-btn,
  .asset-remove,
  .brand-meta-toggle,
  .edit-grid,
  .platform-flags,
  .preview-divider,
  input[type="file"],
  .ad-section > summary,
  .google-subsection > summary { display: none !important; }

  .ad-section, .ad-section-body { border: 0 !important; padding: 0 !important; background: transparent !important; }
  .google-subsection {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
  }
  .google-subsection > .ad-section-body { padding: 0 !important; border: 0 !important; }

  /* Add a label heading for each Google subsection in print since the summary is hidden */
  .google-search-subsection > .ad-section-body::before {
    content: "Search Ads";
    display: block;
    font-size: 14px; font-weight: 700;
    margin: 0 0 12px;
    color: #111;
    border-left: 3px solid #4285F4;
    padding-left: 10px;
  }
  .google-pmax-subsection > .ad-section-body::before {
    content: "Performance Max";
    display: block;
    font-size: 14px; font-weight: 700;
    margin: 0 0 12px;
    color: #111;
    border-left: 3px solid #34A853;
    padding-left: 10px;
  }

  .ad-block {
    page-break-after: always;
    break-after: page;
    border: 0 !important;
    margin: 0 0 30px 0;
  }
  .ad-block::after { display: none; }
  body { background: #fff; }
  .layout { padding: 0 !important; max-width: none; }
  /* Avoid splitting within these elements */
  .mockup-card, .pmax-set, .assets-summary, .grid > * {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .section-title, h2, h3, h4 {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }
  /* Force open all <details> sections so content is included */
  details { display: block !important; }
  details > .ad-section-body { display: block !important; }
  /* Make assets-summary stand out in print so all entered headlines are visible */
  .assets-summary {
    border: 1px solid #d8dbe0;
    border-radius: 8px;
    padding: 14px 16px !important;
    margin-top: 14px;
    background: #fafbfc !important;
    margin-left: 18px !important;
  }
  /* Indent inner section titles (Instagram, Facebook, Search Ads, Performance Max) */
  .meta-section .section-title,
  .google-section .section-title {
    padding-left: 18px;
  }
  .google-search-subsection > .ad-section-body::before,
  .google-pmax-subsection > .ad-section-body::before {
    margin-left: 18px;
  }
  .meta-section .grid,
  .google-section .grid,
  .google-section .pmax-stack {
    padding-left: 18px;
  }
  /* Hide ads / sub-sections that have no entered content */
  .ad-block.is-block-empty { display: none !important; }
  .ad-block.is-search-empty .google-search-subsection { display: none !important; }
  .ad-block.is-pmax-empty .google-pmax-subsection { display: none !important; }
  /* Slightly smaller phones to fit on page */
  .phone { transform: scale(0.85); transform-origin: top left; }
  /* Clear button never prints */
  .clear-media-btn { display: none !important; }
}
