:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --accent: #6366f1;
  --soft-accent: #eef2ff;
  --soft-accent-border: #c7d2fe;
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --success: #059669;
  --success-bg: #ecfdf5;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-link:hover {
  color: var(--primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  padding: 5px 11px;
  border-radius: 999px;
}

.all-tools-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: var(--soft-accent);
  border: 1px solid var(--soft-accent-border);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.all-tools-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Breadcrumbs */
.breadcrumb-bar {
  padding: 12px 0 4px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb-bar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb-bar a {
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb-bar a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #94a3b8;
  user-select: none;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* Hero */
.hero-section {
  padding: 14px 0 20px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--soft-accent);
  border: 1px solid var(--soft-accent-border);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-section h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-lead {
  margin: 0;
  max-width: 840px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Ad Slots */
.ad-slot {
  display: none;
  margin: 18px 0;
  padding: 14px;
  background: var(--card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--subtle);
  font-size: 0.82rem;
}

.ad-slot.is-visible {
  display: block;
}

/* Tool Workspace Grid */
.tool-workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 28px;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.panel-section {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.panel-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Upload Zone */
.upload-dropzone {
  border: 2px dashed var(--soft-accent-border);
  background: linear-gradient(180deg, var(--soft-accent) 0%, #f8fafc 100%);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: all 0.18s ease;
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--primary);
  background: var(--soft-accent);
}

.upload-dropzone input[type="file"] {
  display: none;
}

.upload-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.25;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.22);
}

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

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--soft-accent);
}

.btn-soft {
  background: var(--soft-accent);
  color: var(--primary);
  border-color: var(--soft-accent-border);
}

.btn-soft:hover {
  background: #e0e7ff;
}

.upload-hint {
  font-size: 0.77rem;
  color: var(--muted);
  margin: 0;
}

.source-meta {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
}

/* Preset Groups */
.preset-group-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subtle);
  margin: 10px 0 6px;
}

.preset-group-label:first-of-type {
  margin-top: 0;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.14s ease;
}

.preset-btn:hover {
  border-color: var(--accent);
  background: var(--soft-accent);
}

.preset-btn.active {
  border-color: var(--primary);
  background: var(--soft-accent);
  box-shadow: 0 0 0 1px var(--primary);
}

.preset-name {
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.preset-btn.active .preset-name {
  color: var(--primary);
}

.preset-dims {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.preset-btn.preset-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

/* Custom Dimensions Inputs */
.custom-dims-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
  margin-top: 10px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.field-input,
.field-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.dims-times {
  padding-bottom: 9px;
  font-weight: 700;
  color: var(--muted);
}

/* Toggles & Export Options */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.toggle-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text);
}

.toggle-item input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-text strong {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.toggle-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.format-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.slider-control {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.slider-val {
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.export-btn-main {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.96rem;
  font-weight: 700;
}

/* Right Column: Interactive Viewport & Live Output */
.viewport-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.viewport-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.active-preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft-accent);
  border: 1px solid var(--soft-accent-border);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.viewport-Hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.canvas-stage-wrap {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 410px;
  user-select: none;
  touch-action: none;
}

#cropViewport {
  display: block;
  width: 100%;
  height: 420px;
  cursor: grab;
}

#cropViewport:active {
  cursor: grabbing;
}

.stage-floating-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Viewport Controls Bar */
.transform-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.transform-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-icon {
  padding: 7px 11px;
  font-size: 0.8rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--soft-accent);
}

/* Live Output Summary & Preview Strip */
.output-summary-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.live-preview-frame {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

#liveResultPreview {
  max-width: 100%;
  max-height: 100%;
  display: block;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}

.output-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Emote Pack Multi-Size Preview Drawer */
.emote-pack-drawer {
  display: none;
  background: var(--soft-accent);
  border: 1px solid var(--soft-accent-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.emote-pack-drawer.is-active {
  display: block;
}

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

.emote-drawer-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--primary);
}

.emote-sizes-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.emote-card {
  background: #1e293b;
  color: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
}

.emote-canvas-holder {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emote-card canvas {
  image-rendering: auto;
}

.emote-meta {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.emote-dl-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}

.emote-dl-link:hover {
  background: var(--primary);
}

/* Affiliate Partner Cards */
.partner-section {
  margin: 28px 0 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.partner-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.partner-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.ftc-disclosure {
  font-size: 0.76rem;
  color: var(--subtle);
  margin: 0;
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.affiliate-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.affiliate-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--soft-accent);
  border: 1px solid var(--soft-accent-border);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.affiliate-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

.affiliate-card p {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--soft-accent-border);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.affiliate-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Editorial Content & Tables */
.editorial-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.editorial-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.42rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

.editorial-section h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.12rem;
  color: var(--text);
}

.editorial-section p,
.editorial-section li {
  color: var(--muted);
  font-size: 0.97rem;
}

.editorial-section ul,
.editorial-section ol {
  padding-left: 20px;
}

.editorial-section li {
  margin-bottom: 6px;
}

.editorial-section code {
  background: var(--soft-accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--soft-accent-border);
  font-size: 0.88em;
  font-weight: 600;
  color: var(--primary);
}

.formula-callout {
  background: var(--soft-accent);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
  color: var(--text);
  font-size: 0.93rem;
}

.formula-callout code {
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--soft-accent-border);
  font-weight: 700;
  color: var(--primary);
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.spec-table th {
  background: #f8fafc;
  color: var(--text);
  font-weight: 700;
}

.spec-table td {
  color: var(--muted);
}

/* FAQ Accordion */
.faq-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.faq-section h2 {
  margin: 0 0 16px;
  font-size: 1.38rem;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f8fafc;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft-accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  display: none;
  padding: 0 16px 15px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.faq-answer p {
  margin: 12px 0 0;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Cross-Linking Section */
.crosslink-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.crosslink-section h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.crosslink-sub {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.crosslink-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.crosslink-group h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
}

.crosslink-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crosslink-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.crosslink-list a:hover,
.crosslink-list a[aria-current="page"] {
  border-color: var(--primary);
  background: var(--soft-accent);
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .tool-workspace {
    grid-template-columns: 1fr;
  }

  .affiliate-grid {
    grid-template-columns: 1fr;
  }

  .crosslink-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .privacy-pill {
    display: none;
  }

  .transform-toolbar {
    grid-template-columns: 1fr;
  }

  .output-summary-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .output-stats-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emote-sizes-row {
    grid-template-columns: 1fr;
  }

  .editorial-section,
  .faq-section,
  .crosslink-section,
  .partner-section,
  .panel-card {
    padding: 18px;
  }

  #cropViewport {
    height: 330px;
  }

  .canvas-stage-wrap {
    min-height: 330px;
  }
}
