/* Prevent horizontal overflow body leaks */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── OG Generator Style Customizations ── */

.hero-compact {
  padding: 60px 20px 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.workspace-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px 60px;
  animation: fadeUp 0.5s var(--ease);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 32px;
  align-items: start;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.workspace-views {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 86px;
  min-width: 0;
  width: 100%;
}

/* Glassmorphic Workspace Cards - Unified with Favicon Page */
.ws-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.ws-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.ws-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.ws-card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.canvas-tag-res {
  background: rgba(245, 245, 245, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-70);
  font-family: "JetBrains Mono", monospace;
  margin-left: auto;
}

/* Drag and Drop Zone - Unified Hover Animation */
.drop-zone {
  border: 2px dashed rgba(245, 245, 245, 0.15);
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(245, 245, 245, 0.02);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--fg-70);
  background: rgba(245, 245, 245, 0.06);
}

.upload-icon {
  font-size: 2.2rem;
  color: var(--fg-40);
  margin-bottom: 14px;
  transition: transform 0.3s var(--ease);
}

.drop-zone:hover .upload-icon {
  transform: translateY(-4px) scale(1.05);
}

.prompt-main {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.prompt-sub {
  font-size: 0.85rem;
  color: var(--fg-55);
  margin-bottom: 18px;
}

.hidden-file-input {
  display: none;
}

/* Secondary Button style inside cards */
.btn-secondary {
  background: rgba(245, 245, 245, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: rgba(245, 245, 245, 0.12);
  border-color: var(--fg-40);
}

.btn-primary {
  background: var(--fg);
  border: 1px solid var(--fg);
  color: var(--bg);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--fg-90);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-large {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* File Active Upload State */
.drop-zone-active-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.preview-info {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
}

.preview-type-icon {
  font-size: 1.6rem;
  color: var(--fg-70);
}

.preview-text {
  flex: 1;
  min-width: 0;
}

.preview-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.preview-meta {
  font-size: 0.78rem;
  color: var(--fg-55);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--fg-40);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.remove-btn:hover {
  color: var(--fg);
  transform: scale(1.15);
}

/* URL Import Option Row */
.url-import-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-25);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 18px 0;
}

.url-import-separator::before, .url-import-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.url-import-row {
  display: flex;
  gap: 10px;
}

.url-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.url-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--fg-40);
  font-size: 0.85rem;
}

.url-input-wrap input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 38px;
  color: var(--fg);
  font-size: 0.9rem;
  transition: border-color 0.25s var(--ease);
  outline: none;
}

.url-input-wrap input:focus {
  border-color: var(--border-strong);
}

/* Template presets grid selector */
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.template-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  color: var(--fg-70);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.template-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
  color: var(--fg);
}

.template-btn.active {
  border-color: var(--fg);
  background: rgba(245, 245, 245, 0.05);
  color: var(--fg);
}

.tmpl-icon {
  font-size: 1.4rem;
  color: inherit;
}

.tmpl-label {
  font-size: 0.85rem;
  font-weight: 500;
}

/* Option Sections Control Typography Divided by borders - Unified with Favicon Page */
.control-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-40);
  margin-top: 10px;
  margin-bottom: 12px;
}

.control-group {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-90);
}

/* Tab Select Pill Selector buttons */
.tab-select {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.tab-select-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg-55);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-select-btn:hover {
  color: var(--fg);
}

.tab-select-btn.active {
  background: rgba(245, 245, 245, 0.08);
  color: var(--fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Hex Color pickers alignment grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-picker-input-wrap {
  display: flex;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  align-items: center;
  gap: 8px;
  position: relative;
}

.color-picker-input-wrap input[type="color"] {
  -webkit-appearance: none;
  border: none;
  width: 24px;
  height: 24px;
  background: transparent;
  cursor: pointer;
}

.color-picker-input-wrap input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker-input-wrap input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.hex-text-input {
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  width: 0;
  flex: 1;
  outline: none;
  min-width: 40px;
  text-transform: uppercase;
}

/* Custom Styled Range Sliders - Unified with Favicon Page */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  font-family: "JetBrains Mono", monospace;
}

/* Base customized ranges styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
  transition: transform 0.1s var(--ease);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--fg);
  cursor: pointer;
  transition: transform 0.1s var(--ease);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Sub controls containers details */
.control-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.text-input, .textarea-input, .select-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--fg);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s var(--ease);
  width: 100%;
  font-family: inherit;
}

.text-input:focus, .textarea-input:focus, .select-input:focus {
  border-color: var(--border-strong);
}

.textarea-input {
  resize: vertical;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(245,245,245,0.40)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

/* Profile Avatar Upload Card */
.avatar-drop-zone {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(245, 245, 245, 0.12);
  min-height: 80px;
}

.avatar-drop-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-40);
  font-size: 0.8rem;
  pointer-events: none;
  font-weight: 500;
}

.avatar-upload-icon {
  font-size: 1.6rem;
  color: var(--fg-40);
}

.avatar-drop-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 6px;
}

.avatar-drop-preview img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.avatar-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--fg-70);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.avatar-remove-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Draggable Accordion Text Layer controls */
.text-layers-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.layer-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}

.layer-card:hover {
  border-color: var(--border-strong);
}

.layer-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.layer-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-90);
}

.layer-chevron {
  color: var(--fg-40);
  font-size: 0.75rem;
  transition: transform 0.3s var(--ease);
}

.layer-card-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}

.layer-card-body.expanded {
  padding: 0 16px 20px;
  max-height: 800px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.layer-card-header .layer-chevron {
  transform: rotate(0deg);
}

.layer-card:has(.expanded) .layer-chevron {
  transform: rotate(180deg);
}

/* Sleek Toggle Switcher styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-3);
  border: 1px solid var(--border);
  transition: .2s;
  border-radius: 9px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: var(--fg-40);
  transition: .2s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--fg);
  border-color: var(--fg);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(14px);
  background-color: var(--bg);
}

.alignment-select {
  padding: 2px;
}

.alignment-select .tab-select-btn {
  padding: 4px 8px;
  font-size: 0.9rem;
}

/* ── Interactive Workspace Canvas Stage ── */
.canvas-parent-container {
  background: #101010;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
  width: 100%;
  max-width: 100%;
}

.interactive-canvas-frame {
  position: relative;
  aspect-ratio: 1200 / 630;
  width: 100%;
  max-width: 800px; /* Limit bounds but stretch responsive */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#compiler-canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.canvas-drag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* Enable event listeners */
  z-index: 10;
}

/* Draggable anchors drawn on top of actual positions */
.drag-anchor {
  position: absolute;
  border: 1px dashed rgba(245, 245, 245, 0.35);
  background: rgba(245, 245, 245, 0.02);
  cursor: move;
  border-radius: 4px;
  pointer-events: auto;
  transition: border-color 0.15s, background-color 0.15s;
}

.drag-anchor:hover, .drag-anchor.dragging {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.drag-anchor:hover .anchor-tag, .drag-anchor.dragging .anchor-tag {
  opacity: 1;
}

.anchor-tag {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -4px);
  background: #3b82f6;
  color: #ffffff;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: opacity 0.15s;
}

/* Slick Corner Resize Handles for Screenshot Mockups */
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  z-index: 30;
  pointer-events: auto; /* Allow mouse events */
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease);
}

.resize-handle:hover {
  transform: scale(1.4);
  background-color: #3b82f6;
}

.resize-handle.bottom-right {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
}

/* Download formats selections */
.download-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.download-format-select {
  display: flex;
  align-items: center;
  gap: 12px;
}

.format-select-pills {
  padding: 2px;
}

.format-select-pills .tab-select-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ── Social Feed Mockups Previews ── */

/* Horizontal navigation tab headers */
.mockup-tab-headers {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mockup-tab-headers::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1 0 auto;
  background: transparent;
  border: none;
  color: var(--fg-55);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--fg);
}

.tab-btn.active {
  background: var(--surface-3);
  color: var(--fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.brand-google-color {
  color: #4285f4;
}

.brand-facebook-color {
  color: #1877f2;
}

.brand-linkedin-color {
  color: #0a66c2;
}

.social-tabs-content {
  padding: 8px 0 0 0;
}

.social-tab-pane {
  display: none;
}

.social-tab-pane.active {
  display: block;
}

.simulated-preview-img {
  width: 100%;
  height: auto;
  display: block;
  background: #111;
  aspect-ratio: 1200 / 630;
}

/* 1. Google SERP Snippet Layout Card */
.google-panel-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.preview-theme-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-40);
}

.google-theme-switcher {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 2px;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--fg-55);
  font-size: 0.72rem;
  padding: 4px 8px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-btn.active {
  background: rgba(245, 245, 245, 0.08);
  color: var(--fg);
}

.google-snippet {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background 0.2s, color 0.2s;
}

.google-snippet.dark {
  background: #1e1f20;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.google-snippet.light {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.gp-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-fav-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}

.google-snippet.dark .gp-fav-placeholder {
  background: #2a2b2d;
  color: #e8eaed;
}

.google-snippet.light .gp-fav-placeholder {
  background: #f1f3f4;
  color: #3c4043;
}

.gp-site-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.gp-site-name {
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.google-snippet.dark .gp-site-name {
  color: #e8eaed;
}

.google-snippet.light .gp-site-name {
  color: #202124;
}

.gp-site-url {
  font-size: 0.72rem;
  transition: color 0.2s;
}

.google-snippet.dark .gp-site-url {
  color: #9aa0a6;
}

.google-snippet.light .gp-site-url {
  color: #4d5156;
}

.gp-title {
  font-size: 1.15rem;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.3;
  transition: color 0.2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-snippet.dark .gp-title {
  color: #8ab4f8;
}

.google-snippet.light .gp-title {
  color: #1a0dab;
}

.google-snippet.dark .gp-title:hover {
  text-decoration: underline;
  cursor: pointer;
}

.google-snippet.light .gp-title:hover {
  text-decoration: underline;
  cursor: pointer;
}

.gp-desc {
  font-size: 0.88rem;
  line-height: 1.4;
  transition: color 0.2s;
}

.google-snippet.dark .gp-desc {
  color: #bdc1c6;
}

.google-snippet.light .gp-desc {
  color: #4d5156;
}

/* 2. Facebook Shared Link Preview Mockup */
.fb-snippet {
  border: 1px solid #3e4042;
  background: #242526;
  border-radius: 0;
  font-family: Segoe UI, -apple-system, sans-serif;
  overflow: hidden;
}

.fb-image-container {
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid #3e4042;
}

.fb-text-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-domain-header {
  font-size: 0.78rem;
  color: #b0b3b8;
  text-transform: uppercase;
}

.fb-title-header {
  font-size: 0.98rem;
  font-weight: 600;
  color: #e4e6eb;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-desc-header {
  font-size: 0.85rem;
  color: #b0b3b8;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. X Twitter Large Card Preview */
.tw-snippet {
  border: 1px solid #2f3336;
  background: #000000;
  border-radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.tw-image-container {
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid #2f3336;
}

.tw-text-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tw-domain-header {
  font-size: 0.85rem;
  color: #71767b;
}

.tw-title-header {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e7e9ea;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tw-desc-header {
  font-size: 0.85rem;
  color: #71767b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4. LinkedIn Card Preview */
.li-snippet {
  border: 1px solid #383838;
  background: #1b1f23;
  border-radius: 2px;
  font-family: -apple-system, sans-serif;
  overflow: hidden;
}

.li-image-container {
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  border-bottom: 1px solid #383838;
}

.li-text-container {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.li-title-header {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.li-domain-header {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Mobile Responsive Adaptability rules ── */
@media (max-width: 1024px) {
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .workspace-views {
    position: static;
  }
}

@media (max-width: 640px) {
  .workspace-container {
    padding: 0 16px 40px;
  }
  
  .ws-card {
    padding: 16px;
  }

  .canvas-parent-container {
    padding: 12px 8px;
  }
  
  .control-grid-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .color-picker-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .url-import-row {
    flex-direction: column;
  }
  
  .download-action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .download-format-select {
    justify-content: space-between;
  }

  .tab-select {
    flex-wrap: wrap;
  }

  .tab-select-btn {
    flex: 1 1 auto;
    min-width: 65px;
    padding: 8px 10px;
  }

  .mockup-tab-headers {
    -webkit-overflow-scrolling: touch;
  }

  .gp-site-url {
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  .template-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .alignment-select .tab-select-btn {
    padding: 4px 6px;
    font-size: 0.8rem;
  }

  .ws-card-header h2 {
    font-size: 1.05rem;
  }
}
