/* Layout resets */
:root {
  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --gradient-primary: var(--primary-blue);
  --gradient-secondary: var(--primary-blue);
  --gradient-accent: var(--primary-blue);
}

.page-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  align-items: center;
}

.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-text);
  font-weight: 600;
}

.page-hero .lead {
  font-size: 22.4px;
  color: var(--muted-text);
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: auto;
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  padding: 24px;
  box-shadow: var(--shadow-soft, 0 20px 35px rgba(0, 0, 0, 0.05));
}

.hero-card i {
  font-size: 32px;
  color: var(--link);
  margin-bottom: 8px;
}

.stat-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  padding: 24px;
  background: var(--card-bg);
}

.stat-label {
  text-transform: uppercase;
  font-size: 16px;
  color: var(--muted-text);
  letter-spacing: 0.08em;
}

.stat-value {
  font-size: 40px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--heading-color);
}

.tool-grid .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.tool-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  background: var(--card-bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tool-card:hover,
.tool-card:focus {
  transform: translateY(-4px);
  border-color: var(--link);
  box-shadow: 0 12px 32px
    color-mix(in srgb, var(--primary-blue-hover) 20%, transparent);
}

.tool-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--link);
  background: color-mix(in srgb, var(--primary-blue-hover) 8%, transparent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tool-card:hover .tool-icon {
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Format-pair card: SVG already includes its own colored tiles, so the icon
   container is just a size box with no background of its own. Overrides
   below come AFTER the generic .tool-icon rules so they win on equal specificity. */

.tool-card h3 {
  margin: 0;
  font-size: 18.4px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.tool-card:hover h3 {
  color: var(--link);
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tool-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tool-card-header i {
  font-size: 32px;
  color: var(--link);
}

.tool-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted-text);
}

.tool-card-features li {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4.8px;
  font-size: 17.6px;
}

.tool-card-actions {
  margin-top: auto;
}

.step-number {
  font-size: 21.6px;
  font-weight: 600;
  color: var(--heading-color, #111827);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  z-index: 10;
  text-shadow: none;
}

.step-label {
  font-size: 17.6px;
  font-weight: 700;
  color: var(--heading-color, #000000) !important;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 10;
  line-height: 1.5;
  text-shadow: none;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.step-line {
  flex: 1;
  height: 4px;
  background: var(--border-color, #e5e7eb);
  position: relative;
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  max-width: 180px;
  align-self: stretch;
  margin-top: calc(32px + 20px);
}

@media (max-width: 1024px) {
  .step-line {
    display: none;
  }
}

.step-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-panel.is-active {
  display: block;
  opacity: 1;
  transform: none;
  animation: stepPanelSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stepPanelSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.step-panel + .step-panel {
  margin-top: 32px;
}

.dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-large);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
  cursor: pointer;
}

.dropzone::before {
  content: none;
}

.dropzone:hover {
  border-color: var(--link);
  background: color-mix(in srgb, var(--primary-blue-hover) 5%, transparent);
}

.dropzone:hover::before {
  opacity: 1;
  left: 100%;
}

.dropzone.is-hovered {
  border-color: var(--link);
  background: color-mix(in srgb, var(--primary-blue-hover) 8%, transparent);
  transform: scale(1.01);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.dropzone.is-hovered::before {
  opacity: 1;
  left: 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.dropzone-icon {
  font-size: 56px;
  color: var(--link);
  margin-bottom: 16px;
  animation: dropBounce 2.5s ease-in-out infinite;
}

@keyframes dropBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.dropzone.is-hovered .dropzone-icon {
  animation: dropPulse 0.9s ease-in-out infinite;
}

@keyframes dropPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

.dropzone-text {
  font-size: 22.4px;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 5.6px;
}

.dropzone-hint {
  color: var(--muted-text);
  font-size: 16.8px;
  margin: 0;
}

.dropzone [data-file-input] {
  display: none;
}

.form-group {
  margin-bottom: 16px;
}

.range-control {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-control input[type='range'] {
  flex: 1;
}

.range-value {
  min-width: 48px;
  text-align: right;
  font-weight: 600;
}

.preview-card {
  width: 140px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
  background: var(--card-bg);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 auto;
}

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

.preview-card .preview-thumb {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.3s ease;
}

.preview-watermark-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.preview-card .preview-label {
  margin: 0;
  padding: 6.4px 9.6px;
  font-size: 14.4px;
  color: var(--muted-text);
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid var(--border-color);
}

.preview-card .preview-label span {
  font-weight: 600;
  margin-right: 4px;
}

.preview-modal[hidden] {
  display: none;
}

.preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.preview-modal-content {
  position: relative;
  background: #101010;
  border-radius: var(--radius-medium);
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
  overflow: hidden;
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13.6px 19.2px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-modal-title {
  font-weight: 600;
  margin: 0;
}

.preview-modal-body {
  max-width: 80vw;
  max-height: 80vh;
  padding: 16px;
  background: #000;
}

.preview-modal-stage {
  position: relative;
  width: 100%;
  max-height: 80vh;
}

.preview-modal-stage img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.preview-modal-stage .preview-watermark-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.preview-modal-close {
  border: none;
  background: transparent;
  font-size: 22.4px;
  cursor: pointer;
  line-height: 1;
  color: #fff;
  padding: 3.2px;
}

.preview-modal-close:hover,
.preview-modal-close:focus {
  color: var(--link);
}

.total-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.progress-track {
  height: 6px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--link);
  transition: width 0.3s ease;
}

.result-copy {
  padding: 0;
  font-size: 16px;
}

.tool-guide,
.workflow,
.tool-extras .card,
.seo-section .card,
/* FAQ Section */
.faq-section {
  margin-top: 64px;
  padding: 48px 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 16px;
}

.faq-description {
  font-size: 25.6px;
  color: var(--muted-text, #666);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 64px auto;
  line-height: 1.7;
}

[data-theme='dark'] .faq-description {
  color: var(--muted-text, #b0b0b0);
}

.faq-container {
  max-width: 900px;
  margin: 50px auto 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.tool-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.checklist li::before {
  content: '•';
  color: var(--link);
  position: absolute;
  left: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modern Hero Section */

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-15px, 20px) scale(0.9);
  }
  75% {
    transform: translate(30px, 10px) scale(1.05);
  }
}

/* Stats Section */

.stat-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.3s ease;
  cursor: default;
}

.stat-item.animate-in {
  animation: statFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stat-item:nth-child(1).animate-in {
  animation-delay: 0.1s;
}

.stat-item:nth-child(2).animate-in {
  animation-delay: 0.2s;
}

.stat-item:nth-child(3).animate-in {
  animation-delay: 0.3s;
}

@keyframes statFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  60% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary-blue-hover) 10%, transparent) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
  pointer-events: none;
}

.stat-item.animate-in::after {
  width: 200px;
  height: 200px;
  animation: statPulse 2s ease-out;
}

@keyframes statPulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.stat-item .stat-value {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: transform 0.3s ease;
}

.stat-item .stat-value.counter-complete {
  animation: counterComplete 0.6s ease;
}

@keyframes counterComplete {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.stat-item .stat-value {
  display: block;
  font-size: 56px;
  font-weight: 600;
  color: var(--heading-color, #1a1a1a);
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-item .stat-label {
  display: block;
  text-transform: uppercase;
  font-size: 16.8px;
  letter-spacing: 0.15em;
  color: var(--muted-text);
  font-weight: 700;
  margin-bottom: 12px;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1);
  border-color: var(--link);
  box-shadow: 0 12px 32px
    color-mix(in srgb, var(--primary-blue-hover) 15%, transparent);
  background: var(--card-bg);
}

/* SEO Content Section */
.seo-content-section {
  padding: 64px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--primary-blue-hover) 3%, transparent) 100%
  );
}

.seo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.seo-container > h2 {
  text-align: center;
  margin-bottom: 48px;
}

/* Features Grid */

.seo-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: 32px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px
    color-mix(in srgb, var(--primary-blue-hover) 15%, transparent);
  border-color: color-mix(in srgb, var(--primary-blue-hover) 40%, transparent);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-large);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px
    color-mix(in srgb, var(--primary-blue-hover) 30%, transparent);
  transition: all 0.3s ease;
}

.seo-feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px
    color-mix(in srgb, var(--primary-blue-hover) 40%, transparent);
}

.seo-feature-card h3 {
  font-size: 20.8px;
  margin-bottom: 16px;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.seo-feature-card p {
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16.8px;
  margin: 0;
}

/* Workflow Section */
.seo-workflow-section {
  margin-bottom: 32px;
}

.seo-workflow-section h2 {
  text-align: center;
  margin-bottom: 16px;
}

.seo-workflow-section .lead {
  font-size: 24px;
  color: var(--muted-text);
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
  text-align: center;
}

.workflow-roadmap {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr 48px 1fr;
  column-gap: 12px;
  row-gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  align-items: center;
}

.workflow-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  margin: 0;
}

.workflow-card:first-child {
  margin-left: 0;
}

.workflow-card:last-child {
  margin-right: 0;
}

.workflow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px
    color-mix(in srgb, var(--primary-blue-hover) 20%, transparent);
  border-color: color-mix(in srgb, var(--primary-blue-hover) 40%, transparent);
}

.workflow-number {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: 0 8px 24px
    color-mix(in srgb, var(--primary-blue-hover) 35%, transparent);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.workflow-card:hover .workflow-number {
  transform: scale(1.1);
  box-shadow: 0 12px 32px
    color-mix(in srgb, var(--primary-blue-hover) 45%, transparent);
}

.workflow-card h3 {
  font-size: 22.4px;
  margin-bottom: 16px;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.workflow-card p {
  color: var(--text-color);
  line-height: 1.7;
  font-size: 16.8px;
  margin: 0;
}

@media (max-width: 1024px) {
  .workflow-roadmap {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .workflow-card {
    margin: 0;
  }

  .workflow-card:nth-child(2) {
    position: relative;
  }

  .workflow-card:nth-child(2)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.4;
  }

  .workflow-card:nth-child(2)::before {
    content: '↓';
    position: absolute;
    bottom: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--link);
    font-size: 19.2px;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .workflow-roadmap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .workflow-card {
    margin: 0 0 32px 0;
  }

  .workflow-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.4;
  }

  .workflow-card:not(:last-child)::before {
    content: '↓';
    position: absolute;
    bottom: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--link);
    font-size: 19.2px;
    font-weight: 700;
  }

  .workflow-card:nth-child(2)::after,
  .workflow-card:nth-child(2)::before {
    display: block;
  }
}

/* Responsive Design */

@media (max-width: 768px) {
  .tool-card {
    padding: 24px 16px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .tool-card h3 {
    font-size: 16px;
  }

  .seo-feature-card {
    padding: 24px;
  }

  .workflow-card {
    padding: 24px;
  }
}

/* ============================================================================
 * LooIMG base look: loopdf's palette and surfaces. --primary-blue and
 * --primary-blue-hover come from brand_tokens.css; everything here derives
 * from them. Scoped via html.ig-site (set in <head> before first paint).
 * ============================================================================
 */
html.ig-site {
  scroll-behavior: smooth;
}

html.ig-site body.theme-light:not([data-admin]) {
  --text-color: #1b1110;
  --heading-color: #1b1110;
  --heading-sub: #1b1110;
  --muted-text: #786862;
  --text-primary: #1b1110;
  --text-secondary: #786862;

  --container-bg: #ffffff;
  --card-bg: #ffffff;
  --card-header-bg: #fbf3f2;
  --input-bg: #ffffff;
  --dropdown-bg: #ffffff;
  --item-bg: #fbf3f2;
  --item-hover-bg: #fbedec;
  --table-header-bg: #fbedec;
  --info-item-bg: #fbedec;
  --info-bg: #fdecea;
  --info-border: #f6cfcd;
  --info-text: #a31621;

  --border-color: #efe0dd;

  --accent-blue: #f2706b;
  --light-blue-text: var(--primary-blue-hover);
  --primary-color: var(--primary-blue);
  --primary-hover: var(--primary-blue-hover);
  --primary-shadow: color-mix(in srgb, var(--primary-blue) 25%, transparent);
  --link-rgb: 214, 40, 40;

  --link: #c41f24;
  --link-hover: #a31621;
  --blockquote: #d62828;

  --footer-nav-bg: #fbf3f2;
  --footer-bottom-bg: #fbf3f2;
  --footer-border: #efe0dd;
  --footer-section-bg: #fbf3f2;

  --shadow-elev:
    0 1px 0 rgba(163, 22, 33, 0.05), 0 12px 24px -8px rgba(163, 22, 33, 0.12);
  --shadow-color: rgba(163, 22, 33, 0.08);

  --bg-gradient: #fbf7f6;
  --bg-dark: #f1e3e0;
  --navbar-gradient: #ffffff;
  --navbar-underline: #efe0dd;

  --button-disabled-bg: rgba(214, 40, 40, 0.07);
  --button-disabled-border: rgba(214, 40, 40, 0.15);
  --button-disabled-text: rgba(27, 17, 16, 0.4);

  /* loopdf landing.css ink-2, gradient word and shadow scale */
  --loo-ink-2: #4a3b38;
  --loo-grad: linear-gradient(100deg, #a31621 0%, #e5231d 45%, #ff7a3d 100%);
  --loo-shadow-sm:
    0 1px 0 rgba(163, 22, 33, 0.04), 0 2px 8px -2px rgba(163, 22, 33, 0.08);
  --loo-shadow-md:
    0 1px 0 rgba(163, 22, 33, 0.05), 0 12px 24px -8px rgba(163, 22, 33, 0.12);
  --loo-muted-2: #9a8a85;
  --loo-band: var(--card-header-bg);
}

html.ig-site body.theme-dark:not([data-admin]) {
  --text-color: #c2bcba;
  --heading-color: #f5f4f2;
  --heading-sub: #f5f4f2;
  --muted-text: #928c8a;
  --text-primary: #c2bcba;
  --text-secondary: #928c8a;

  --container-bg: #191315;
  --card-bg: #261b1d;
  --card-header-bg: #211819;
  --input-bg: #191315;
  --dropdown-bg: #211819;
  --item-bg: #261b1d;
  --item-hover-bg: #332427;
  --table-header-bg: #32211f;
  --info-item-bg: #32211f;
  --info-bg: #2c1a1a;
  --info-border: #4a2a2a;
  --info-text: #ff9e97;

  --border-color: #3e2e30;

  --accent-blue: var(--primary-blue);
  --light-blue-text: var(--primary-blue-hover);
  --primary-color: var(--primary-blue);
  --primary-hover: var(--primary-blue-hover);
  --primary-shadow: color-mix(in srgb, var(--primary-blue) 40%, transparent);
  --link-rgb: 255, 107, 97;

  --link: #ff8e86;
  --link-hover: #ffa59e;
  --blockquote: #ff6b61;

  --footer-bottom-bg: #150f11;
  --footer-border: #3e2e30;
  --footer-section-bg: #211819;

  --shadow-elev: 0 10px 40px rgba(26, 6, 9, 0.55);
  --shadow-color: rgba(26, 6, 9, 0.6);

  --bg-gradient: #191315;
  --bg-dark: #191315;
  --navbar-gradient: #191315;
  --navbar-underline: #3e2e30;

  --button-disabled-bg: rgba(148, 163, 184, 0.2);
  --button-disabled-border: rgba(148, 163, 184, 0.32);
  --button-disabled-text: rgba(226, 232, 240, 0.72);

  --loo-ink-2: #c6bcba;
  --loo-grad: linear-gradient(100deg, #ff6b61 0%, #ff9d6b 100%);
  --loo-shadow-sm:
    0 1px 0 rgba(0, 0, 0, 0.35), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --loo-shadow-md:
    0 1px 0 rgba(0, 0, 0, 0.45), 0 12px 24px -8px rgba(0, 0, 0, 0.55);
  --loo-muted-2: #7a7371;
  --loo-band: var(--footer-bottom-bg);
}

html.ig-site body:not([data-admin]) {
  --loo-font: 'Fredoka', ui-sans-serif, system-ui, sans-serif;
  /* loopdf's canvas tint (tool shell, editor, meme preview). On body, not
     :root: --card-bg and --text-color only exist on body.theme-*. */
  --tool-canvas: color-mix(in srgb, var(--card-bg) 93%, var(--text-color) 7%);
}

/* Base .navbar a is white for a dark bar; the light bar needs ink. */
html.ig-site body.theme-light:not([data-admin]) .navbar a,
html.ig-site body.theme-light:not([data-admin]) .navbar a span,
html.ig-site body.theme-light:not([data-admin]) .navbar a i {
  color: var(--text-color) !important;
}
@media (hover: hover) {
  html.ig-site body.theme-light:not([data-admin]) .navbar a:hover {
    color: var(--primary-blue) !important;
  }
}

/* Smooth navbar a hover - drop `transition: all` (causes layout-property jitter)
   and animate only color/background/border-radius/box-shadow. Icons stay
   stable so the masks-theater glyph doesn't shift on hover-in. */
html.ig-site .navbar a,
html:has(.ig-page) .navbar a {
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    background 0.28s ease,
    border-radius 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease !important;
}
html.ig-site .navbar a .fas,
html.ig-site .navbar a .fab,
html.ig-site .navbar a .far,
html.ig-site .navbar a:hover .fas,
html.ig-site .navbar a:hover .fab,
html.ig-site .navbar a:hover .far,
html:has(.ig-page) .navbar a .fas,
html:has(.ig-page) .navbar a .fab,
html:has(.ig-page) .navbar a .far,
html:has(.ig-page) .navbar a:hover .fas,
html:has(.ig-page) .navbar a:hover .fab,
html:has(.ig-page) .navbar a:hover .far {
  opacity: 1 !important;
  transition: color 0.16s ease !important;
}

/* Capped content column; full-width pages (the homepage) opt out so their
   section backgrounds run edge to edge, as on loopdf. */
html.ig-site main.container:not(.container-fullwidth),
html:has(.ig-page) main.container:not(.container-fullwidth) {
  max-width: 1240px !important;
  /* base_style.css sets `.container { margin: 0 }`, which is harmless while the
     container is full-width but leaves it flush LEFT once we cap it at 1240px.
     Restore the centering the cap assumes. */
  margin-inline: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 32px !important;
}
@media (max-width: 600px) {
  html.ig-site main.container:not(.container-fullwidth),
  html:has(.ig-page) main.container:not(.container-fullwidth) {
    padding: 0 16px !important;
  }
}

/* kill the base startup-cms contour-pattern overlay (body::before paints a
   black geometric SVG over the whole page) - we want our purple radial
   bloom canvas to read clean. Also kill .navbar::before/::after which
   carry the same SVG pattern over the sticky navbar surface. */
html.ig-site body.theme-dark::before,
html.ig-site body.theme-light::before,
html.ig-site body[data-theme='dark']::before,
html:has(.ig-page) body.theme-dark::before,
html:has(.ig-page) body.theme-light::before,
html:has(.ig-page) body[data-theme='dark']::before,
html.ig-site .navbar::before,
html.ig-site .navbar::after,
html:has(.ig-page) .navbar::before,
html:has(.ig-page) .navbar::after {
  display: none !important;
  background: none !important;
  content: none !important;
}

html.ig-site body:not([data-admin]) .navbar {
  background: var(--container-bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) !important;
}
html.ig-site body.theme-dark:not([data-admin]) .nb-root,
html.ig-site body.theme-dark:not([data-admin]) .nb-drawer {
  --nb-cta-ink: #ffffff;
}

html.ig-site body:not([data-admin]) {
  font-family: var(--loo-font);
  background-color: var(--bg-gradient);
  background-image: none;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}
html.ig-site body:not([data-admin]) :is(h1, h2, h3, h4, h5) {
  font-weight: 600;
}
/* Footer column titles keep core's weight, as on loopdf. */
html.ig-site body:not([data-admin]) .footer .footer-nav-title {
  font-weight: 800;
}

/* Readout utility (numbers, extensions, pills); Fredoka like the rest */
.ig-page .stat-value {
  font-family: var(--loo-font);
  font-feature-settings: 'ss01' on;
}

.ig-page h2 {
  font-family: var(--loo-font);
}
.ig-page .ig-hero-pill,
.ig-page .faq-section h2::before {
  display: none !important;
}
/* loopdf's gradient word in headings (.hero-h1 em) */
.ig-page h1 .em,
.ig-page h2 .em {
  font-style: italic;
  background: var(--loo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- stats strip ---------- */
.ig-page .stat-item {
  text-align: center;
  padding: 28px 18px !important;
  background: oklch(0.14 0.013 30) !important;
  border: 1px solid oklch(0.4 0.022 30 / 0.18) !important;
  border-radius: 14px !important;
  box-shadow: var(--loo-shadow-sm) !important;
  overflow: hidden !important;
  opacity: 1 !important;
  position: relative;
}
.ig-page .stat-item {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
}
.ig-page .stat-item:hover {
  transform: translateY(-2px) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 40%,
    transparent
  ) !important;
  box-shadow:
    0 12px 28px -10px color-mix(in srgb, var(--primary-blue) 30%, transparent),
    0 4px 12px -6px oklch(0 0 0 / 0.5) !important;
}
body.theme-light .ig-page .stat-item {
  background: oklch(0.985 0.005 72) !important;
  border-color: oklch(0.25 0.024 30 / 0.2) !important;
  box-shadow:
    0 1px 2px oklch(0.18 0.02 30 / 0.06),
    0 6px 16px -10px oklch(0.18 0.02 30 / 0.18) !important;
}
body.theme-light .ig-page .stat-item:hover {
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 45%,
    transparent
  ) !important;
  box-shadow:
    0 12px 28px -10px color-mix(in srgb, var(--primary-blue) 25%, transparent),
    0 1px 2px oklch(0.18 0.02 30 / 0.06) !important;
}
.ig-page .stat-value {
  display: block;
  font-family: var(--loo-font);
  font-size: clamp(48px, 6.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--primary-blue);
  margin: 0;
}
.ig-page .stat-label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--heading-color);
}
body.theme-light .ig-page .stat-label {
  color: oklch(0.18 0.02 30);
}

/* ---------- compact page heading (single H1, shown above the tool grid) ---------- */
.ig-page .ig-page-head {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px 32px 0;
  text-align: center;
}
.ig-page .ig-page-head h1 {
  margin: 0;
  font-family: var(--loo-font);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  text-wrap: balance;
}
.ig-page .ig-page-head .lead {
  max-width: 74ch;
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--loo-ink-2);
  text-wrap: pretty;
}

/* All section headings use the Fredoka display font, matching the H1.
   (Some legacy rules set these to the sans font - e.g. "Four steps, every
   time." - so this overrides them consistently.) */
.ig-page h1,
.ig-page h2 {
  font-family: var(--loo-font) !important;
}

/* Fredoka is a rounded face that reads a little cramped at small sizes, so give
   body/UI text a touch of tracking, and a bit more to the smallest labels,
   mono readouts and chips. Headings keep their own (tighter) letter-spacing. */
html.ig-site body,
html:has(.ig-page) body {
  letter-spacing: 0.012em;
}
.ig-page
  :is(
    .ig-tool-desc,
    .ig-pair-name,
    .ig-pair-desc,
    .ig-nobait-body,
    .ig-ch,
    .ig-simplesize-eyebrow,
    .nb-rich__desc,
    .dropzone-pill,
    small,
    code
  ) {
  /* !important because several of these carry their own (tighter, sometimes
     negative) letter-spacing at higher specificity. */
  letter-spacing: 0.028em !important;
}

/* ---------- tools section header ---------- */

.ig-page #tool-grid {
  scroll-margin-top: 100px;
}

/* ---------- tool cards: loopdf icon-left row (landing.css tool-card) ---------- */

.ig-page .tool-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 2px 13px !important;
  padding: 16px 18px !important;
  text-align: left !important;
  color: var(--heading-color);
  text-decoration: none;
  overflow: hidden;
  flex-direction: initial !important;
}
.ig-page .tool-card::before,
.ig-page .tool-card::after {
  content: none;
}
html.ig-site body.theme-dark:not([data-admin]) .ig-page .tool-card {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #ffffff 6%, transparent),
      transparent 60%
    ),
    color-mix(in srgb, var(--card-bg) 72%, transparent) !important;
  border-color: color-mix(in srgb, #ffffff 10%, var(--border-color)) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent) !important;
}
@media (hover: hover) {
  html.ig-site body.theme-dark:not([data-admin]) .ig-page .tool-card:hover {
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 35%,
      var(--border-color)
    ) !important;
  }
}

.ig-page .tool-card .ig-tool-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Icon tile spans both text rows so it stays centred on the pair. */
.ig-page .tool-card .tool-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--loo-shadow-sm);
  font-size: 18px;
  flex-shrink: 0;
}
/* FA icons paint through mask-image + currentColor, so set color only. */
.ig-page .tool-card .tool-icon i {
  color: var(--primary-blue);
  font-size: 18px;
}
.ig-page .tool-card .tool-icon i::before {
  width: 18px;
  height: 18px;
}
html.ig-site body .ig-page .tool-card:hover .tool-icon,
html.ig-site body .ig-page .tool-card:focus .tool-icon,
html.ig-site body .ig-page .tool-card:hover .tool-icon i {
  transform: none !important;
}
.ig-page .tool-card h3 {
  font-family:
    'Fredoka',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.3;
  color: var(--heading-color);
  margin: 0;
}
/* Descriptions run long until Step 4 shortens them; two lines max. */
.ig-page .tool-card .ig-tool-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0 !important;
  color: color-mix(in srgb, var(--muted-text) 78%, var(--heading-color));
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Phone: two columns, icon stacked over the text. */
@media (max-width: 700px) {
  .ig-page .tool-card {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: start !important;
    align-items: start !important;
    row-gap: 4px !important;
    padding: 14px !important;
  }
  .ig-page .tool-card .tool-icon {
    grid-row: auto;
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }
}

/* chip pair (source -> target) */
.ig-page .ig-pair-chips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--loo-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ig-page .ig-pair-chips .ig-ch {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--card-header-bg);
  border: 1px solid var(--border-color);
  color: var(--loo-ink-2);
  line-height: 1;
}
.ig-page .ig-pair-chips .ig-arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-size: 9px;
}
/* Light-mode tints: darker text + lighter tinted bg so chips stay readable on white */
body.theme-light .ig-page .ig-pair-chips .ig-ch {
  background: oklch(0.97 0.01 72);
  border-color: oklch(0.25 0.024 30 / 0.18);
  color: oklch(0.34 0.018 30);
}
.ig-page .ig-pair-chips [class*='ig-ch-'] {
  color: var(--loo-ink-2);
  background: var(--card-header-bg);
  border-color: var(--border-color);
}
body.theme-light .ig-page .ig-pair-chips [class*='ig-ch-'] {
  color: oklch(0.34 0.018 30);
  background: oklch(0.97 0.01 72);
  border-color: oklch(0.25 0.024 30 / 0.18);
}

/* ---------- Format-pair cards (homepage video promo, video tools page) ---------- */

.ig-page .ig-pair-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.ig-page .ig-pair-grid.ig-pair-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) {
  .ig-page .ig-pair-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .ig-page .ig-pair-grid.ig-pair-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .ig-page .ig-pair-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ig-page .ig-pair-grid.ig-pair-grid--3 {
    grid-template-columns: 1fr;
  }
}

.ig-page .ig-pair {
  position: relative;
  padding: 12px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 8px;
  min-height: 78px;
  text-decoration: none;
  color: var(--heading-color);
  text-align: left !important;
  transition:
    transform 0.12s,
    border-color 0.15s,
    background 0.15s;
}
.ig-page .ig-pair:hover {
  transform: translateY(-1px);
  border-color: color-mix(
    in oklch,
    var(--primary-blue) 40%,
    var(--border-color)
  );
  background: var(--card-header-bg);
}
.ig-page .ig-pair .ig-pair-name {
  font-family: var(--loo-font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--heading-color);
}

body.theme-light .ig-page .ig-pair {
  background: oklch(0.985 0.005 72);
  border: 1px solid oklch(0.25 0.024 30 / 0.45) !important;
  color: oklch(0.18 0.02 30);
  box-shadow:
    inset 0 -1px 0 oklch(0.25 0.024 30 / 0.18),
    0 1px 2px oklch(0.18 0.02 30 / 0.06),
    0 10px 22px -10px oklch(0.18 0.02 30 / 0.22);
}
body.theme-light .ig-page .ig-pair:hover {
  background: oklch(1 0 0);
  border-color: color-mix(
    in oklch,
    var(--primary-blue) 50%,
    oklch(0.25 0.024 30 / 0.16)
  );
}
body.theme-light .ig-page .ig-pair .ig-pair-name {
  color: oklch(0.18 0.02 30);
}

.ig-page .search-field__input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color) !important;
  background: var(--input-bg) !important;
  background-color: var(--input-bg) !important;
  color: var(--heading-color) !important;
  font: inherit;
  font-size: 14px;
}
.ig-page .search-field__input:focus {
  border-color: var(--primary-blue) !important;
  outline: none !important;
}
.ig-page .search-field__input::placeholder {
  color: var(--loo-muted-2);
}
.ig-page .search-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
}

/* ---------- SEO content section ---------- */
.ig-page .seo-content-section {
  padding: 48px 0 48px;
  background: transparent !important;
}
.ig-page .seo-content-section > .seo-container > .ig-section-head:first-child {
  margin-bottom: 28px !important;
}
.ig-page .seo-container {
  max-width: 1140px;
  margin: 0 auto;
}
.ig-page .seo-content-section h2:not(.ig-section-head h2) {
  font-family: var(--loo-font);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading-color);
  margin: 0 0 16px;
}
.ig-page .seo-content-section .lead {
  color: var(--loo-ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 72ch;
}
.ig-page .seo-workflow-section {
  margin-top: 48px;
}

/* ============================================================================
   Landing section redesigns - video promo, "no bait" grid, SimpleSize cross-
   promo. Ported from the "looimg Sections" design onto the loopdf tokens
   (was inline <style> in index.jinja2 using a hardcoded indigo gradient +
   orange hexes). Scoped to .ig-page; light-mode twins follow the .tool-card
   pattern (near-white card bg so cards read as raised over the cream page).
   ============================================================================ */

/* ---- Video Tools promo (full-bleed tinted band) ---- */
.ig-page .ig-video-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 64px 32px;
  background: var(--loo-band);
  display: flex;
  justify-content: center;
}
.ig-page .ig-video-cta-inner {
  width: 100%;
  max-width: 1140px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.ig-page .ig-video-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.ig-page .ig-video-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: color-mix(in srgb, var(--primary-blue) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-blue) 32%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
}
/* Light theme: the mid-tone primary is too pale on the cream pill - use a deep
   amber ink so the badge label reads clearly. */
body.theme-light .ig-page .ig-video-cta-badge {
  color: var(--primary-blue-hover);
  background: color-mix(in srgb, var(--primary-blue) 16%, transparent);
  border-color: color-mix(in srgb, var(--primary-blue-hover) 40%, transparent);
}
.ig-page .ig-video-cta-inner h2 {
  margin: 0;
  font-family: var(--loo-font);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}
.ig-page .ig-video-cta-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--loo-ink-2);
  max-width: 46ch;
}
.ig-page .ig-video-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.ig-page .ig-video-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: none;
  letter-spacing: normal;
}
.ig-page .ig-video-cta-note {
  font-size: 14px;
  color: var(--muted-text);
}

/* ---- Free to use / "no bait" grid (own section, base bg) ---- */
.ig-page .ig-nobait {
  padding: 64px 32px 24px;
  display: flex;
  justify-content: center;
}
.ig-page .ig-nobait-inner {
  width: 100%;
  max-width: 1140px;
}
.ig-page .ig-nobait-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.ig-page .ig-nobait-head h2 {
  margin: 0 !important;
  font-family: var(--loo-font) !important;
  font-weight: 600 !important;
  font-size: clamp(30px, 3.6vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: var(--heading-color) !important;
}
.ig-page .ig-nobait-head p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--loo-ink-2);
}
.ig-page .ig-nobait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.ig-page .ig-nobait-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 10px;
  box-shadow: none;
  position: relative;
}
.ig-page .ig-nobait-body {
  grid-column: 1 / -1;
}
.ig-page .ig-nobait-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--primary-blue) 12%, transparent);
  color: var(--primary-blue);
  font-size: 15px;
}
.ig-page .ig-nobait-title {
  font-family: var(--loo-font);
  font-weight: 700;
  font-size: 19px;
  color: var(--heading-color);
}
.ig-page .ig-nobait-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-text);
}

/* ---- SimpleSize cross-promo (full-bleed band; orange is an intentional
   external-brand accent) ---- */
.ig-page .ig-simplesize {
  padding: 48px 32px;
  display: flex;
  justify-content: center;
}
.ig-page .ig-simplesize-card {
  width: 100%;
  max-width: 1140px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 26px 32px;
  box-shadow: none;
  position: relative;
}
.ig-page .ig-simplesize-logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--primary-blue) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-blue) 28%, transparent);
}
.ig-page .ig-simplesize-logo img {
  display: block;
  width: 34px;
  height: 34px;
}
.ig-page .ig-simplesize-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ig-page .ig-simplesize-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--loo-muted-2);
}
.ig-page .ig-simplesize-text h2 {
  margin: 0;
  font-family: var(--loo-font);
  font-weight: 700;
  font-size: 22px;
  color: var(--heading-color);
}
.ig-page .ig-simplesize-text p {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-text);
}

/* Uses the default .button.button-primary styling - only keep it from stretching
   in the flex row, drop the button's uppercasing, and let the .app part bold. */

/* ---- Light-mode twins ---- */
/* Cards read as raised over the base page */
body.theme-light .ig-page .ig-nobait-card,
body.theme-light .ig-page .ig-simplesize-card {
  background: oklch(0.99 0.004 80);
  border-color: oklch(0.25 0.024 30 / 0.16);
}
/* Stacked CTAs (compress video / compress image) */
.ig-page .ig-simplesize-actions {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.ig-page .ig-simplesize-actions .button {
  justify-content: center;
  text-align: center;
  text-transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ig-page .ig-video-cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 28px;
  }
  .ig-page .ig-nobait-head {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }
  .ig-page .ig-nobait-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .ig-page .ig-video-cta,
  .ig-page .ig-simplesize {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ig-page .ig-simplesize-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .ig-page .ig-simplesize-actions {
    align-self: stretch;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .ig-page .ig-nobait-grid {
    grid-template-columns: 1fr;
  }
}

/* light mode */

/* feature cards (3-up) */

.ig-page .seo-feature-card {
  position: relative;
  padding: 26px 24px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: var(--loo-shadow-sm);
  color: var(--heading-color);
  overflow: hidden;
}
.ig-page .seo-feature-card .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary-blue) 14%, transparent);
  border: 1.5px solid var(--border-color);
  color: var(--heading-color);
  font-size: 18px;
  margin-bottom: 14px;
}
.ig-page .seo-feature-card .feature-icon i {
  color: var(--primary-blue);
}
body.theme-light .ig-page .seo-feature-card .feature-icon {
  background: color-mix(
    in srgb,
    var(--primary-blue) 10%,
    transparent
  ) !important;
  border-color: var(--border-color) !important;
}
body.theme-light .ig-page .seo-feature-card .feature-icon i {
  color: var(--primary-blue) !important;
}
body.theme-light .ig-page .seo-feature-card {
  background: oklch(0.985 0.005 72) !important;
  border: 1px solid oklch(0.25 0.024 30 / 0.2) !important;
  box-shadow:
    0 1px 2px oklch(0.18 0.02 30 / 0.06),
    0 6px 16px -10px oklch(0.18 0.02 30 / 0.15) !important;
}
body.theme-light .ig-page .seo-feature-card h3 {
  color: oklch(0.18 0.02 30) !important;
}
body.theme-light .ig-page .seo-feature-card p {
  color: oklch(0.45 0.02 72) !important;
}
.ig-page .seo-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--heading-color);
}
.ig-page .seo-feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--loo-ink-2);
}

/* workflow / how it works */
.ig-page .seo-workflow-section {
  margin-top: 56px;
}
/* Let the workflow section's lead breathe across one line */
.ig-page .seo-workflow-section .ig-section-head p {
  max-width: 96ch !important;
}
/* "Four steps" - vertical timeline. Icon column on the left with a connecting
   line; title + description in a flow column on the right. */
.ig-page .workflow-roadmap--vertical {
  margin: 40px auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
}
.ig-page .workflow-roadmap--vertical .workflow-card {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  text-align: left;
}
.ig-page .workflow-roadmap--vertical .workflow-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* the icon column also holds the vertical connecting line */
.ig-page .workflow-roadmap--vertical .workflow-card__icon-wrap {
  position: relative;
  width: 72px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.ig-page
  .workflow-roadmap--vertical
  .workflow-card:not(:last-child)
  .workflow-card__icon-wrap::after {
  content: '';
  position: absolute;
  top: 80px;
  bottom: -44px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-blue) 45%, transparent),
    color-mix(in srgb, var(--primary-blue) 15%, transparent)
  );
  border-radius: 2px;
  z-index: 0;
}
.ig-page .workflow-roadmap--vertical .workflow-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-blue) 22%, transparent),
    oklch(0 0 0 / 0.3)
  );
  border: 1px solid color-mix(in srgb, var(--primary-blue) 40%, transparent);
  color: var(--primary-blue);
  font-size: 24px;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.1),
    0 14px 32px -14px color-mix(in srgb, var(--primary-blue) 55%, transparent);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  flex-shrink: 0;
  z-index: 1;
}
.ig-page .workflow-roadmap--vertical .workflow-card:hover .workflow-icon {
  transform: scale(1.05);
  border-color: color-mix(in srgb, var(--primary-blue) 75%, transparent);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.12),
    0 22px 44px -14px color-mix(in srgb, var(--primary-blue) 70%, transparent);
}
body.theme-light .ig-page .workflow-roadmap--vertical .workflow-icon {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary-blue) 14%, transparent),
    color-mix(in srgb, var(--primary-blue) 5%, transparent)
  );
  border-color: color-mix(in srgb, var(--primary-blue) 35%, transparent);
  color: var(--primary-blue-hover);
  box-shadow: 0 10px 24px -12px
    color-mix(in srgb, var(--primary-blue) 35%, transparent);
}
.ig-page .workflow-roadmap--vertical .workflow-card .workflow-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--loo-font);
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-blue);
  color: #fff;
  margin: 0;
  box-shadow: 0 4px 10px -2px
    color-mix(in srgb, var(--primary-blue) 55%, transparent);
  border: 2px solid var(--bg-gradient);
  z-index: 2;
}
body.theme-light
  .ig-page
  .workflow-roadmap--vertical
  .workflow-card
  .workflow-number {
  border-color: oklch(0.97 0.005 72);
}
.ig-page .workflow-roadmap--vertical .workflow-card__body {
  padding-top: 0;
  align-self: center;
}
.ig-page .workflow-roadmap--vertical .workflow-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading-color);
  margin: 0 0 8px;
}
.ig-page .workflow-roadmap--vertical .workflow-card p {
  font-size: 14px;
  color: var(--loo-ink-2);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 600px) {
  .ig-page .workflow-roadmap--vertical {
    gap: 28px;
  }
  .ig-page .workflow-roadmap--vertical .workflow-card {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .ig-page .workflow-roadmap--vertical .workflow-card__icon-wrap {
    width: 56px;
  }
  .ig-page .workflow-roadmap--vertical .workflow-icon {
    width: 52px;
    height: 52px;
    font-size: 20px;
    border-radius: 14px;
  }
  .ig-page
    .workflow-roadmap--vertical
    .workflow-card:not(:last-child)
    .workflow-card__icon-wrap::after {
    top: 64px;
    bottom: -36px;
  }
}

/* ---------- FAQ ---------- */
.ig-page .faq-section {
  padding: 64px 0;
  max-width: 880px;
  margin: 0 auto;
}
.ig-page .faq-section h2 {
  font-family: var(--loo-font);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--heading-color);
  text-align: center;
  margin: 0;
}
.ig-page .faq-section h2::before {
  content: 'FAQ';
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-blue) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-blue) 22%, transparent);
  color: var(--primary-blue);
  font-family: var(--loo-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ig-page .faq-section h2 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ig-page .faq-section .faq-description {
  text-align: center;
  color: var(--loo-ink-2);
  margin: 14px auto 36px;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.55;
}
.ig-page .faq-container {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

/* FAQ now uses the shared base_collapse component (.collapse-container.collapse-faq).
   Just recolor it to match the project accent. */
.ig-page .faq-container.collapse-group .collapse-container {
  --collapse-accent: var(--primary-blue);
  --collapse-accent-rgb: 198, 156, 104;
}

/* ---------- Tool picker modal (after dropzone file pick) ---------- */
.ig-tool-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 480px) {
  .ig-tool-picker-grid {
    grid-template-columns: 1fr;
  }
}
.ig-tool-picker-grid .ig-tool-picker-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border-radius: 12px !important;
  background: oklch(0.18 0.015 30) !important;
  border: 1px solid oklch(0.4 0.022 30 / 0.2) !important;
  color: oklch(0.98 0.005 72) !important;
  font-family: var(--loo-font) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-align: left;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.3);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.ig-tool-picker-grid .ig-tool-picker-btn i {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-blue) 30%, transparent),
    oklch(0 0 0 / 0.25)
  ) !important;
  color: var(--primary-blue) !important;
  border: 1px solid color-mix(in srgb, var(--primary-blue) 32%, transparent) !important;
  font-size: 14px !important;
  flex-shrink: 0;
}
body.theme-light .ig-tool-picker-grid .ig-tool-picker-btn i {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-blue) 18%, transparent),
    color-mix(in srgb, var(--primary-blue) 8%, transparent)
  ) !important;
  color: var(--primary-blue-hover) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 35%,
    transparent
  ) !important;
}
@media (max-width: 640px) {
  /* Constrain the modal containing the tool picker so it fits the viewport.
     Base .modal-content gives min(640px, 100vw - 32px) but we want it tighter. */
  .modal:has(.ig-tool-picker-grid) .modal-content {
    width: min(420px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
  }
  .modal:has(.ig-tool-picker-grid) .modal-body {
    padding: 16px 16px !important;
  }
  .ig-tool-picker-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ig-tool-picker-grid .ig-tool-picker-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }
  .ig-tool-picker-grid .ig-tool-picker-btn i {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
}

/* Theme switcher in navbar - no box/background, just the icon */
.ig-navbar .theme-toggle-button,
body.theme-light .ig-navbar .theme-toggle-button,
body.theme-dark .ig-navbar .theme-toggle-button {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}
.ig-navbar .theme-toggle-button:hover,
body.theme-light .ig-navbar .theme-toggle-button:hover,
body.theme-dark .ig-navbar .theme-toggle-button:hover {
  background: transparent !important;
  box-shadow: none !important;
}
.ig-tool-picker-grid .ig-tool-picker-btn:hover {
  background: oklch(0.22 0.018 30) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 50%,
    transparent
  ) !important;
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px -10px color-mix(in srgb, var(--primary-blue) 45%, transparent),
    0 1px 2px oklch(0 0 0 / 0.3);
}
.ig-tool-picker-grid .ig-tool-picker-btn.is-primary {
  background: var(--primary-blue) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.25) inset,
    0 -8px 18px color-mix(in srgb, var(--primary-blue-hover) 40%, transparent)
      inset,
    0 10px 24px -8px color-mix(in srgb, var(--primary-blue) 60%, transparent);
}
.ig-tool-picker-grid .ig-tool-picker-btn.is-primary i {
  background: oklch(1 0 0 / 0.18) !important;
  border-color: oklch(1 0 0 / 0.25) !important;
  color: #fff !important;
}
.ig-tool-picker-grid .ig-tool-picker-btn.is-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
body.theme-light .ig-tool-picker-grid .ig-tool-picker-btn {
  background: oklch(0.985 0.005 72) !important;
  border-color: oklch(0.25 0.024 30 / 0.22) !important;
  color: oklch(0.18 0.02 30) !important;
  box-shadow: 0 1px 2px oklch(0.18 0.02 30 / 0.06);
}
body.theme-light .ig-tool-picker-grid .ig-tool-picker-btn:hover {
  background: oklch(1 0 0) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 45%,
    transparent
  ) !important;
  box-shadow:
    0 8px 22px -10px color-mix(in srgb, var(--primary-blue) 25%, transparent),
    0 1px 2px oklch(0.18 0.02 30 / 0.06);
}

/* ---------- container clipping fix for radial blooms ---------- */
.ig-page,
.ig-page .container {
  position: relative;
}

/* The full-bleed sections use `width: 100vw`, and 100vw counts the scrollbar
   while the visible area does not - so every bleed overflowed by the scrollbar
   width and produced a horizontal scrollbar. `clip` (not `hidden`) removes the
   overflow without turning this into a scroll container, so sticky/position
   behaviour inside is unaffected. */
html.ig-site body,
body:has(.ig-page) {
  overflow-x: clip;
}

/* ---------- Section head pattern (pill eyebrow + h2 gradient + lead) ---------- */
.ig-page .ig-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto 40px;
}
.ig-page .ig-section-head p {
  max-width: 84ch;
}
.ig-page .ig-section-head h2 {
  font-family: var(--loo-font);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--heading-color);
  margin: 16px 0 14px;
}
.ig-page .ig-section-head p {
  font-size: 16px;
  color: var(--loo-ink-2);
  line-height: 1.6;
  margin: 0;
  max-width: 64ch;
}
body.theme-light .ig-page .ig-section-head h2 {
  color: oklch(0.18 0.02 30);
}
body.theme-light .ig-page .ig-section-head p {
  color: oklch(0.34 0.018 30);
}

/* eyebrow pill: shared with hero pill, reuse styling */
.ig-page .ig-hero-pill,
.ig-page .ig-section-head .ig-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-blue) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-blue) 22%, transparent);
  color: var(--primary-blue);
  font-family: var(--loo-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.theme-light .ig-page .ig-hero-pill {
  background: color-mix(in srgb, var(--primary-blue) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary-blue) 22%, transparent);
  color: var(--primary-blue-hover);
}

/* ---------- responsive ---------- */

/* ============================================================================
 * Image Editor (image_editor.jinja2) on loopdf's editor look: card-bg toolbar
 * and rails, the tool shell's canvas tint, tinted active tool.
 * Selector uses #image-editor (id beats class specificity of inline <style>).
 * ============================================================================
 */
#image-editor.image-editor-container {
  background: var(--tool-canvas) !important;
  background-image: none !important;
  color: var(--heading-color) !important;
  font-family: var(--loo-font) !important;
}

#image-editor .editor-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}
#image-editor .editor-toolbar .toolbar-tools-wrapper {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
#image-editor .editor-toolbar .toolbar-actions {
  flex: 0 0 auto !important;
}
#image-editor .toolbar-tools-scroll {
  justify-content: safe center !important;
  gap: 6px !important;
}

/* Empty-state canvas: kill placeholder bg + parent canvas-area bg so the
   canvas tint from .canvas-container shows through. */
#image-editor .editor-canvas-area,
#image-editor.image-editor-container .editor-canvas-area {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}
#image-editor .canvas-placeholder,
#image-editor.image-editor-container .canvas-placeholder {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
}

/* ---------- Top toolbar (loopdf .sign-toolbar: card-bg + hairline) ---------- */
#image-editor .editor-toolbar {
  background: var(--card-bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 18px !important;
  margin: 0 !important;
}
#image-editor .toolbar-actions .button {
  padding: 7px 13px !important;
  font-size: 13px !important;
  min-height: 0 !important;
  border-radius: 9px !important;
}

/* ---------- Tool buttons: loopdf .add-tool-btn (icon over label) ---------- */
#image-editor .tool-btn-icon-text {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 9px !important;
  color: var(--heading-color) !important;
  padding: 5px 10px !important;
  min-width: 52px !important;
  min-height: 44px !important;
  font-family: var(--loo-font) !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition:
    background 0.15s ease,
    color 0.15s ease !important;
}
#image-editor .tool-btn-icon-text i {
  font-size: 15px !important;
  line-height: 1 !important;
  color: inherit !important;
}
#image-editor .tool-btn-icon-text .tool-btn-label {
  color: var(--muted-text) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
@media (hover: hover) {
  #image-editor .tool-btn-icon-text:hover:not(:disabled) {
    background: var(--item-hover-bg) !important;
    border: none !important;
    color: var(--heading-color) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  #image-editor .tool-btn-icon-text:hover:not(:disabled) i,
  #image-editor .tool-btn-icon-text:hover:not(:disabled) .tool-btn-label {
    color: inherit !important;
  }
}
/* Active tool: loopdf's tinted chip with accent text. body + chain beats the
   generic hover rule above. */
body #image-editor .tool-btn-icon-text.active,
body
  #image-editor.image-editor-container
  .tool-btn-icon-text.active:hover:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--primary-blue) 13%,
    var(--card-bg)
  ) !important;
  border: none !important;
  color: var(--primary-blue) !important;
  box-shadow: none !important;
  transform: none !important;
}
body #image-editor .tool-btn-icon-text.active i,
body #image-editor .tool-btn-icon-text.active .tool-btn-label {
  color: var(--primary-blue) !important;
}

/* ---------- Toolbar action buttons (right side) ---------- */
/* Upload / Back / Reset: flat toolbar buttons, 1:1 with loopdf's .toolbar-btn.
   Download keeps the accent pill (loopdf's .toolbar-btn-download). */
#image-editor .toolbar-actions .button,
#image-editor .toolbar-actions button,
#image-editor .toolbar-lead .button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--heading-color) !important;
  border-radius: 9px !important;
  padding: 7px 12px !important;
  font-family: var(--loo-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  box-shadow: none !important;
  text-transform: none !important;
}
@media (hover: hover) {
  #image-editor .toolbar-actions .button:hover,
  #image-editor .toolbar-actions button:hover,
  #image-editor .toolbar-lead .button:hover {
    background: var(--item-hover-bg) !important;
    border-color: transparent !important;
  }
}
#image-editor .toolbar-actions .button-primary {
  background: var(--primary-blue) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 9px 18px !important;
  box-shadow: 0 2px 10px
    color-mix(in srgb, var(--primary-blue) 28%, transparent) !important;
}
@media (hover: hover) {
  #image-editor .toolbar-actions .button-primary:hover {
    background: var(--primary-blue-hover) !important;
  }
}

/* ---------- Toolbar lead: Upload button (flat, like loopdf's File button) ---------- */
#image-editor .toolbar-lead {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

/* ---------- Image editor: empty-state landing (H1 + upload + SEO) ---------- */
.ig-editor-landing {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 0 8px;
}
.ig-editor-landing-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ig-editor-landing-hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 12px;
  font-family: var(--loo-font);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--heading-color);
}
.ig-editor-landing-h1-icon {
  flex: none;
  font-size: clamp(25px, 3.3vw, 40px);
  color: var(--primary-blue);
}
.ig-editor-landing-hero .lead {
  margin: 0 auto 26px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--loo-ink-2);
  max-width: 60ch;
}
/* The editor upload area (.dropzone.ig-editor-landing-drop) uses the ONE shared
   upload-area design defined further below - no special overrides here. */
@keyframes ig-drop-pulse {
  0%,
  100% {
    box-shadow:
      0 10px 26px -14px color-mix(in srgb, var(--primary-blue) 45%, transparent),
      0 0 0 0 color-mix(in srgb, var(--primary-blue) 35%, transparent);
  }
  50% {
    box-shadow:
      0 16px 34px -12px color-mix(in srgb, var(--primary-blue) 60%, transparent),
      0 0 0 7px color-mix(in srgb, var(--primary-blue) 0%, transparent);
  }
}
/* Lock the upload area's final layout onto the plain class so it is applied at
   first paint - before the JS-added .ig-page rules and the lazily loaded
   base_dropzone.css. Without this the box starts as a left-stacked display:block
   and visibly reflows to centered flex once that CSS lands (the "rescale"). */
.ig-editor-landing-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 200px;
  padding: 40px 28px;
  box-sizing: border-box;
}
/* Kill base_dropzone.css's shimmer pseudo-decorations on this upload area.
   base_dropzone.css loads AFTER first paint; its ::before is a full-width
   gradient parked at left:-100% that bleeds out to the LEFT of the box - that
   is the "full-width flash". We only null out the shimmer's paint here. */
.ig-editor-landing-drop::before,
.ig-editor-landing-drop::after {
  background: none !important;
  animation: none !important;
  transition: none !important;
}
.ig-editor-landing-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.ig-editor-landing-formats span {
  font-family: var(--loo-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--card-header-bg);
  border: 1px solid var(--border-color);
  color: var(--muted-text);
}
.ig-editor-landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
/* Feature cards reuse the real .tool-card classes, so they inherit the site's
   card box and icon-left layout automatically. They are not links, so
   they must not show the pointer (grab-me) cursor the tool cards use. */
.ig-editor-landing-features .tool-card {
  cursor: default;
}
@media (max-width: 900px) {
  .ig-editor-landing-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .ig-editor-landing-features {
    grid-template-columns: 1fr;
  }
}

/* ---------- One shared upload-area design ----------
   Every upload area on the site uses the same look: a centred column of
   icon + prompt + hint, the shared dashed box, and the shared hover
   (lift + brand tint + pulse). */
.ig-page .dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  min-height: 200px;
  padding: 40px 28px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.ig-page .dropzone .dropzone-icon {
  font-size: 34px;
  color: var(--primary-blue);
  transition: transform 0.2s ease;
}
.ig-page .dropzone .dropzone-text {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  color: var(--heading-color);
}
.ig-page .dropzone .dropzone-hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted-text);
}

/* ---------- Editor tool reference (empty-state docs) ---------- */
.ig-editor-docs {
  max-width: 940px;
  margin: 72px auto 8px auto;
  padding: 0 20px;
}
.ig-editor-docs-head {
  text-align: center;
  margin-bottom: 28px;
}
.ig-editor-docs-head--sub {
  margin-top: 60px;
}
.ig-editor-docs-head h2 {
  font-family: var(--loo-font) !important;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: var(--heading-color);
}
.ig-editor-docs-head p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--loo-ink-2);
}
.ig-editor-docs-tablewrap {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: none;
  overflow: hidden;
}
.ig-editor-docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ig-editor-docs-table thead th {
  text-align: center;
  font-family: var(--loo-font) !important;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted-text);
  padding: 13px 20px;
  background: var(--card-header-bg);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.ig-editor-docs-table tbody td {
  padding: 14px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
  color: var(--loo-ink-2);
  line-height: 1.55;
}
.ig-editor-docs-table tbody tr:last-child td {
  border-bottom: none;
}
.ig-editor-docs-table tbody tr:hover td {
  background: color-mix(in oklch, var(--primary-blue) 5%, transparent);
}
.ig-editor-docs-table td:first-child {
  width: 1%;
  white-space: nowrap;
}
.ig-doc-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--loo-font) !important;
  font-weight: 600;
  font-size: 15px;
  color: var(--heading-color);
}
.ig-doc-tool i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--primary-blue);
  background: color-mix(in srgb, var(--primary-blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-blue) 28%, transparent);
}
@media (max-width: 640px) {
  .ig-editor-docs-head h2 {
    font-size: 22px;
  }
  .ig-editor-docs-table {
    font-size: 13px;
  }
  .ig-doc-tool {
    font-size: 14px;
  }
  .ig-editor-docs-table thead th,
  .ig-editor-docs-table tbody td {
    padding: 12px 13px;
  }
}

/* Editor FAQ: align its width and rhythm with the docs section above it. */
.ig-editor-faq {
  max-width: 760px;
  margin: 72px auto 8px auto;
  padding: 0 20px;
}
.ig-editor-faq > h2 {
  font-family: var(--loo-font) !important;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 10px 0;
  color: var(--heading-color);
}
.ig-editor-faq .faq-description {
  max-width: 620px;
  margin: 0 auto 28px auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--loo-ink-2);
}
@media (max-width: 640px) {
  .ig-editor-faq > h2 {
    font-size: 22px;
  }
}

/* ---------- Sidebars: the tool shell's rail (card-bg, hairline, 18px head) ---------- */
#image-editor .editor-sidebar {
  background: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--heading-color) !important;
}
#image-editor .editor-sidebar.editor-left {
  border-right: 1px solid var(--border-color) !important;
}
#image-editor .editor-sidebar.editor-right {
  border-left: 1px solid var(--border-color) !important;
}

#image-editor .sidebar-header {
  background: transparent !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 10px 18px 14px !important;
}
#image-editor .sidebar-header h3 {
  margin: 0 !important;
  font-family: var(--loo-font) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--heading-color) !important;
}

#image-editor .sidebar-toggle {
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 999px !important;
  color: var(--loo-ink-2) !important;
  padding: 0 !important;
  width: 30px !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
#image-editor .sidebar-toggle i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
@media (hover: hover) {
  #image-editor .sidebar-toggle:hover {
    background: var(--item-hover-bg) !important;
    color: var(--heading-color) !important;
  }
}

#image-editor .sidebar-panel {
  background: transparent !important;
  color: inherit !important;
  padding: 16px 18px !important;
}

/* ---------- Form controls inside sidebars (loopdf inputs) ---------- */
#image-editor .sidebar-panel input[type='text'],
#image-editor .sidebar-panel input[type='number'],
#image-editor .sidebar-panel input[type='search'],
#image-editor .sidebar-panel select,
#image-editor .sidebar-panel textarea {
  background: var(--field-bg, var(--input-bg)) !important;
  border: 1px solid var(--field-border, var(--border-color)) !important;
  color: var(--heading-color) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  font-family: var(--loo-font) !important;
  font-size: 13px !important;
}
#image-editor .sidebar-panel input[type='number'],
#image-editor .sidebar-panel input[type='text'] {
  text-align: center !important;
}

/* Custom checkboxes inside editor sidebars (e.g. Rounded Corners toggle) */
#image-editor .sidebar-panel input[type='checkbox'] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 8px 0 0 !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  background: var(--input-bg) !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  position: relative !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
  flex-shrink: 0 !important;
}
@media (hover: hover) {
  #image-editor .sidebar-panel input[type='checkbox']:hover {
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 50%,
      transparent
    ) !important;
  }
}
#image-editor .sidebar-panel input[type='checkbox']:checked {
  background: var(--primary-blue) !important;
  border-color: transparent !important;
}
#image-editor .sidebar-panel input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Filter preview cards: keep contents inside the card boundary (label was
   overflowing past the sidebar edge into the canvas area) */
#image-editor .filter-btn {
  overflow: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#image-editor .filter-btn-content {
  width: 100% !important;
  min-width: 0 !important;
}
#image-editor .filter-name {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#image-editor .filter-thumb-wrapper {
  flex: 0 0 auto !important;
  width: 80px !important;
  height: 46px !important;
}
#image-editor .sidebar-panel input:focus,
#image-editor .sidebar-panel select:focus,
#image-editor .sidebar-panel textarea:focus {
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 55%,
    transparent
  ) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-blue) 15%, transparent) !important;
}

/* Field labels: loopdf's rail section label (13px / 500 / muted). */
#image-editor .sidebar-panel label {
  font-family: var(--loo-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  color: var(--muted-text) !important;
}

/* Layers: loopdf's selectable card (radius 12, accent ring when chosen). */
#image-editor .layer-item {
  border-radius: 12px !important;
  border: 1.5px solid var(--border-color) !important;
  background: var(--card-bg) !important;
  box-shadow: none !important;
  transform: none !important;
}
@media (hover: hover) {
  #image-editor .layer-item:hover {
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 40%,
      var(--border-color)
    ) !important;
    background: var(--card-bg) !important;
  }
}
#image-editor .layer-item.active,
#image-editor .layer-item.active:hover {
  border-color: var(--primary-blue) !important;
  background: color-mix(
    in srgb,
    var(--primary-blue) 7%,
    var(--card-bg)
  ) !important;
}
#image-editor .layer-item .layer-name {
  color: var(--heading-color) !important;
}
#image-editor .layer-thumbnail {
  border-radius: 8px !important;
  border: 1px solid var(--border-color) !important;
}
#image-editor .layers-add-btn {
  border-radius: 12px !important;
}

/* Sliders */
#image-editor .sidebar-panel input[type='range'] {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#image-editor
  .sidebar-panel
  input[type='range']::-webkit-slider-runnable-track {
  height: 4px !important;
  background: var(--border-color) !important;
  border-radius: 2px !important;
}
#image-editor .sidebar-panel input[type='range']::-webkit-slider-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: var(--primary-blue) !important;
  border: 2px solid var(--card-bg) !important;
  box-shadow: 0 2px 6px -1px
    color-mix(in srgb, var(--primary-blue) 50%, transparent) !important;
  margin-top: -6px !important;
  cursor: pointer !important;
}

/* ---------- Canvas area: the tool shell's canvas tint, no dot grid ---------- */
#image-editor .editor-canvas-area {
  background: transparent !important;
}
#image-editor .canvas-container {
  background: var(--tool-canvas) !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
#image-editor .canvas-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* placeholder is positioned absolute over canvas-container - keep transparent.
   Inner .editor-dropzone has its own dashed card styling. */
#image-editor .canvas-placeholder {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  color: inherit !important;
}
#image-editor .editor-dropzone .dropzone-icon {
  color: var(--primary-blue) !important;
}
#image-editor .editor-dropzone .dropzone-text {
  color: var(--heading-color) !important;
}
#image-editor .editor-dropzone .dropzone-hint {
  color: var(--muted-text) !important;
}

/* Small breathing space between zoom number and % glyph */
#image-editor .zoom-percent {
  margin-left: 3px !important;
}
/* Widen zoom input so 3-digit values don't touch the edges */
#image-editor .zoom-value-input {
  width: 44px !important;
  padding: 0 4px !important;
}

/* ---------- Status bar (bottom) ---------- */
#image-editor .editor-statusbar {
  background: var(--card-bg) !important;
  border-top: 1px solid var(--border-color) !important;
  color: var(--loo-ink-2) !important;
  font-family: var(--loo-font) !important;
  font-size: 12px !important;
  padding: 10px 22px !important;
}

#image-editor .statusbar-btn {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  color: var(--heading-color) !important;
}
@media (hover: hover) {
  #image-editor .statusbar-btn:hover:not(:disabled) {
    background: var(--item-hover-bg) !important;
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 45%,
      transparent
    ) !important;
    color: var(--heading-color) !important;
  }
}

/* Custom scrollbars in panels */
#image-editor .sidebar-panel::-webkit-scrollbar {
  width: 6px;
}
#image-editor .sidebar-panel::-webkit-scrollbar-thumb,
#image-editor .toolbar-tools-scroll::-webkit-scrollbar-thumb {
  background: var(--border-color) !important;
  border-radius: 3px;
}

@media (max-width: 1024px) {
  /* Fixed bar sits under the site navbar, which stays on screen on phones. */
  #image-editor .toolbar-section.toolbar-actions {
    top: var(--ig-editor-nav-h, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 16px !important;
    background: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--loo-shadow-sm) !important;
  }
  #image-editor .toolbar-section.toolbar-actions .button {
    flex: 0 1 auto !important;
  }
  #image-editor .toolbar-section.toolbar-actions #theme-toggle-container {
    margin-left: auto !important;
  }
  #image-editor .editor-statusbar {
    border-bottom: 1px solid var(--border-color) !important;
  }
  /* z-index: the positioned canvas container, later in the DOM, painted over
     the fixed bottom bar's left half. */
  #image-editor .editor-toolbar {
    z-index: 1010 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 9px 12px !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: var(--loo-shadow-md) !important;
  }
  #image-editor .toolbar-tools-wrapper {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #image-editor .toolbar-tools-scroll {
    justify-content: space-between !important;
    gap: 4px !important;
    overflow-x: auto !important;
  }
  #image-editor .tool-btn-icon-text {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 8px 4px !important;
    border-radius: 11px !important;
  }
  #image-editor .tool-btn-icon-text i {
    font-size: 17px !important;
  }
}

/* ============================================================================
 * Tool pages (image-converter, compressor, cropper, etc.) - shared overrides.
 * Step 1: page hero (title + back/reset actions row).
 * ============================================================================
 */
.ig-page .page-hero.tool-hero {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 32px !important;
  flex-wrap: wrap !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  padding-bottom: 30px !important;
  border-bottom: none !important;
  position: relative !important;
}
.ig-page .page-hero.tool-hero .hero-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.ig-page .page-hero.tool-hero h1 {
  font-family: var(--loo-font) !important;
  font-size: clamp(28px, 3.6vw, 44px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
  color: var(--heading-color) !important;
  margin: 0 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.ig-page .page-hero.tool-hero h1 i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 12px !important;
  background: var(--info-item-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--primary-blue) !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}
.ig-page .page-hero.tool-hero .sublead {
  font-size: 16px !important;
  color: var(--loo-ink-2) !important;
  line-height: 1.55 !important;
  max-width: 64ch !important;
  margin: 0 !important;
}
.ig-page .page-hero.tool-hero .hero-actions {
  display: inline-flex !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin-left: 0 !important;
  align-self: center !important;
}
.ig-page .page-hero.tool-hero .hero-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--heading-color) !important;
  font-family: var(--loo-font) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  line-height: 1 !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease !important;
}
.ig-page .page-hero.tool-hero .hero-actions .button i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
.ig-page .page-hero.tool-hero .hero-actions .button:hover {
  background: var(--card-header-bg) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 40%,
    transparent
  ) !important;
  color: var(--heading-color) !important;
  transform: none !important;
  box-shadow: none !important;
}
body.theme-light .ig-page .page-hero.tool-hero .hero-actions .button {
  background: #fff !important;
  border-color: oklch(0.25 0.024 30 / 0.16) !important;
  color: oklch(0.18 0.02 30) !important;
}
body.theme-light .ig-page .page-hero.tool-hero .hero-actions .button:hover {
  background: var(--item-hover-bg) !important;
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 40%,
    transparent
  ) !important;
}

.ig-page .step-number {
  font-family: var(--loo-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--loo-ink-2) !important;
  background: none !important;
  -webkit-text-fill-color: var(--loo-ink-2) !important;
}

.ig-page .step-label {
  font-family: var(--loo-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--loo-ink-2) !important;
}
.ig-page .step-line {
  flex: 1 1 auto !important;
  height: 2px !important;
  background: var(--border-color) !important;
  border-radius: 2px !important;
  margin: 0 12px !important;
  position: relative !important;
  overflow: hidden !important;
  align-self: center !important;
  transform: translateY(-10px) !important;
}

/* Custom dropdown panel (opened state) - match closed-state surface.
   Square the top corner so it visually fuses with the closed control above
   (1px gap from base positioning is fine, just avoid the double-border). */
.ig-page .custom-dropdown-panel,
html.ig-site .custom-dropdown-panel {
  background: oklch(0.22 0.02 30) !important;
  border: 1px solid color-mix(in srgb, var(--primary-blue) 25%, transparent) !important;
  border-radius: 0 0 10px 10px !important;
}
.ig-page .custom-dropdown.dropup .custom-dropdown-panel,
html.ig-site .custom-dropdown.dropup .custom-dropdown-panel {
  border-radius: 10px 10px 0 0 !important;
}
html.ig-site body.theme-light .custom-dropdown-panel,
body.theme-light .ig-page .custom-dropdown-panel {
  background: #ffffff !important;
  border-color: oklch(0.25 0.024 30 / 0.18) !important;
}
.ig-page .custom-dropdown-option:hover,
html.ig-site .custom-dropdown-option:hover {
  background: var(--primary-blue-hover) !important;
  color: var(--heading-color) !important;
}
html.ig-site body.theme-light .custom-dropdown-option:hover,
body.theme-light .ig-page .custom-dropdown-option:hover {
  background: var(--item-hover-bg) !important;
  color: oklch(0.18 0.02 30) !important;
}
body.theme-light .ig-page .custom-dropdown-option:hover,
body.theme-light html.ig-site .custom-dropdown-option:hover {
  background: var(--item-hover-bg) !important;
}
.ig-page .custom-dropdown-option.is-selected,
.ig-page .custom-dropdown-option[aria-selected='true'],
html.ig-site .custom-dropdown-option.is-selected {
  background: color-mix(
    in srgb,
    var(--primary-blue) 18%,
    transparent
  ) !important;
  color: var(--heading-color) !important;
}

/* Batch progress - make it a real visible bar */
.ig-page .total-progress {
  margin-top: 16px !important;
}
.ig-page .total-progress .progress-label,
.ig-page .total-progress > div:first-child {
  font-family: var(--loo-font) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--loo-ink-2) !important;
  margin-bottom: 8px !important;
}
.ig-page .total-progress .progress-track,
.ig-page .progress-track {
  height: 8px !important;
  background: oklch(0.4 0.022 30 / 0.18) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  position: relative !important;
}
body.theme-light .ig-page .progress-track {
  background: oklch(0.25 0.024 30 / 0.1) !important;
}
.ig-page .progress-bar,
.ig-page .total-progress .progress-bar {
  height: 100% !important;
  background: linear-gradient(
    90deg,
    var(--primary-blue-hover),
    var(--primary-blue)
  ) !important;
  border-radius: 4px !important;
  transition: width 0.3s ease !important;
}

/* Meme generator + gallery on loopdf's look. Tabs are loopdf's rail pill tabs
   (.signature-tabs): a canvas-tint track with an inset tinted active pill.
   !important: the tabs are <button>s and base_elements paints every button. */
.ig-page .meme-gallery-view-tabs,
.ig-page .meme-tab-bar {
  display: flex !important;
  gap: 4px !important;
  padding: 4px !important;
  background: var(--tool-canvas) !important;
  border: 0 !important;
  border-radius: 12px !important;
}
.ig-page .meme-gallery-view-tabs {
  display: inline-flex !important;
  margin-bottom: 16px !important;
}
.ig-page .meme-gallery-view-tab,
.ig-page .meme-tab {
  flex: 1;
  min-width: 0;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--loo-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  color: var(--muted-text) !important;
  opacity: 1 !important;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .ig-page .meme-gallery-view-tab:hover,
  .ig-page .meme-tab:hover {
    color: var(--text-color) !important;
    background: transparent !important;
    filter: none !important;
  }
}
.ig-page .meme-gallery-view-tab.meme-gallery-view-tab--active,
.ig-page .meme-gallery-view-tab.meme-gallery-view-tab--active:hover,
.ig-page .meme-tab.is-active,
.ig-page .meme-tab.is-active:hover {
  background: color-mix(
    in srgb,
    var(--primary-blue) 13%,
    var(--card-bg)
  ) !important;
  color: var(--primary-blue) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Gallery stat pills (views, thumbs up/down, bookmark) */
.ig-page .meme-gallery-view-stat,
.ig-page .meme-gallery-vote-btn,
.ig-page .meme-gallery-bookmark-btn {
  color: var(--heading-color) !important;
}
.ig-page .meme-gallery-view-stat i,
.ig-page .meme-gallery-vote-btn i,
.ig-page .meme-gallery-bookmark-btn i {
  color: var(--loo-ink-2) !important;
  opacity: 1 !important;
}
.ig-page .meme-gallery-vote-btn:not(.meme-gallery-vote-btn--grid),
.ig-page .meme-gallery-bookmark-btn:not(.meme-gallery-bookmark-btn--grid) {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
}
@media (hover: hover) {
  .ig-page .meme-gallery-vote-btn:not(.meme-gallery-vote-btn--grid):hover,
  .ig-page
    .meme-gallery-bookmark-btn:not(.meme-gallery-bookmark-btn--grid):hover {
    background: var(--item-hover-bg) !important;
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 40%,
      var(--border-color)
    ) !important;
  }
}
.ig-page .meme-gallery-vote-btn--selected,
.ig-page .meme-gallery-vote-btn--selected:hover,
.ig-page .meme-gallery-bookmark-btn--active,
.ig-page .meme-gallery-bookmark-btn--active:hover {
  background: color-mix(
    in srgb,
    var(--primary-blue) 13%,
    var(--card-bg)
  ) !important;
  border-color: var(--primary-blue) !important;
  color: var(--primary-blue) !important;
}
.ig-page .meme-gallery-vote-btn--selected i,
.ig-page .meme-gallery-bookmark-btn--active i {
  color: var(--primary-blue) !important;
}

/* Meme generator hints (canvas hint, editor lead, "Ready to save") */
.ig-page .meme-hint {
  opacity: 1 !important;
  color: var(--loo-ink-2) !important;
}
.ig-page .meme-preview-placeholder {
  color: var(--muted-text) !important;
}

/* The meme page card and its side rail, as the tool shell's card + rail. */
.ig-page .meme-generator-page.card {
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  background: var(--card-bg) !important;
}
@media (min-width: 960px) {
  .ig-page .meme-generator-sidebar {
    padding-left: 18px;
    border-left: 1px solid var(--border-color);
  }
}

/* Template cards in the rail */
.ig-page .meme-template-card {
  text-transform: none !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 12px !important;
}
.ig-page .meme-template-card.is-selected {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 1px var(--primary-blue) !important;
}
.ig-page .meme-template-name {
  font-family: var(--loo-font) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--heading-color) !important;
}

/* Download section */
.ig-page .meme-result .meme-result-title {
  font-family: var(--loo-font) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  color: var(--heading-color) !important;
  margin: 0 0 4px !important;
}
.ig-page .meme-result {
  padding: 16px !important;
  background: var(--card-header-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
}

/* Stop the right panel horizontal scroll bleed */
.ig-page .meme-tab-panel,
.ig-page .meme-caption-form {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Top memes for template (bottom gallery on meme generator) */
.ig-page .meme-template-top-memes__card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
}
@media (hover: hover) {
  .ig-page .meme-template-top-memes__card:hover {
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 45%,
      transparent
    ) !important;
  }
}
.ig-page .meme-template-top-memes__title {
  font-family: var(--loo-font) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--heading-color) !important;
}
.ig-page .meme-template-top-memes__views {
  font-family: var(--loo-font) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: var(--muted-text) !important;
}

/* Meme gallery page cards: title + view count */
.ig-page .meme-gallery-card,
.ig-page .meme-gallery-template-card {
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
}
.ig-page .meme-gallery-card-title {
  font-family: var(--loo-font) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  color: var(--heading-color) !important;
}
.ig-page .meme-gallery-card-stat {
  color: var(--loo-ink-2) !important;
  font-weight: 600 !important;
}
.ig-page .meme-gallery-card-stat i {
  color: var(--muted-text) !important;
}

/* Per-field reset button - grid-center the icon (most reliable). */
.ig-page .meme-style-reset-btn {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid var(--border-color) !important;
  color: var(--loo-ink-2) !important;
  cursor: pointer !important;
  line-height: 1 !important;
  font-size: 12px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.ig-page .meme-style-reset-btn i {
  font-size: 12px !important;
  line-height: 1 !important;
  width: 12px !important;
  height: 12px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (hover: hover) {
  .ig-page .meme-style-reset-btn:hover {
    background: var(--item-hover-bg) !important;
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 40%,
      transparent
    ) !important;
    color: var(--heading-color) !important;
  }
}

/* Sort dropdown group - push to right edge of the search row */
.ig-page .meme-gallery-sort-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}
.ig-page .meme-gallery-search-form {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Meme generator template search + sort row - align heights and icon spacing */
.ig-page .meme-template-search-row {
  align-items: center !important;
  display: flex !important;
}
.ig-page .meme-template-search-row .meme-template-search-wrap,
.ig-page .meme-template-search-row .meme-template-sort-wrap {
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ig-page .meme-template-search-wrap .search-field {
  --search-height: 44px !important;
  --search-icon-size: 16px !important;
  position: relative !important;
  line-height: 1 !important;
  max-width: 100% !important;
}
.ig-page .meme-template-search-wrap .search-field__input {
  padding: 0 14px 0 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  background: var(--input-bg) !important;
  box-sizing: border-box !important;
}
.ig-page .meme-template-search-wrap .search-field__icon {
  position: absolute !important;
  left: 16px !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 44px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}
.ig-page .meme-template-search-wrap i.fas.fa-search.search-field__icon::before,
.ig-page .meme-template-search-wrap .search-field__icon::before {
  content: '' !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  background-color: currentColor !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-image: var(--fa-solid-search) !important;
  mask-image: var(--fa-solid-search) !important;
  flex: 0 0 auto !important;
}
.ig-page .meme-template-sort-wrap {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
}
.ig-page .meme-template-sort-label {
  display: none !important;
}
.ig-page .meme-template-sort-select,
.ig-page .meme-gallery-sort-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  min-width: 110px !important;
  padding: 0 36px 0 14px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-color) !important;
  background-color: var(--input-bg) !important;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50% !important;
  background-size:
    6px 6px,
    6px 6px !important;
  background-repeat: no-repeat !important;
  color: var(--heading-color) !important;
  font-family: var(--loo-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 44px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}
.ig-page .meme-gallery-sort-label {
  font-family: var(--loo-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--muted-text) !important;
  margin: 0 !important;
}

/* Color picker: visually match Font size input - same width, height, chrome.
   Inner swatch is a small color chip on the left, label text on the right. */
.ig-page .form-group input[type='color'] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-color) !important;
  background: var(--input-bg) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.ig-page .form-group input[type='color']::-webkit-color-swatch-wrapper {
  width: 28px !important;
  height: 100% !important;
  padding: 0 !important;
  border-radius: 5px !important;
  overflow: hidden !important;
}
.ig-page .form-group input[type='color']:hover {
  border-color: color-mix(
    in srgb,
    var(--primary-blue) 40%,
    transparent
  ) !important;
}
.ig-page .form-group input[type='color']::-webkit-color-swatch {
  border: 1px solid oklch(0.4 0.022 30 / 0.3) !important;
  border-radius: 5px !important;
}
.ig-page .form-group input[type='color']::-moz-color-swatch {
  border: 1px solid oklch(0.4 0.022 30 / 0.3) !important;
  border-radius: 5px !important;
}

/* Select dropdowns in tool pages (target format, color profile, etc.).
   Slightly lighter than the parent options-panel so they read as elevated
   input fields, not sunken slots. */
/* Solid color clearly lighter than the parent options-panel card
   (card is oklch(0.145), select should sit on top visibly elevated). */
#targetFormat,
#colorProfile {
  background: oklch(0.22 0.02 30) !important;
  background-color: oklch(0.22 0.02 30) !important;
  background-image: none !important;
  border: 1px solid color-mix(in srgb, var(--primary-blue) 25%, transparent) !important;
  color: var(--heading-color) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-family: var(--loo-font) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
body.theme-light #targetFormat,
body.theme-light #colorProfile {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: oklch(0.25 0.024 30 / 0.18) !important;
  color: oklch(0.18 0.02 30) !important;
}
.ig-page .form-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.ig-page .form-group > label {
  width: fit-content !important;
}
/* Wider tooltips. The tooltip is a separate `.tooltip-bubble` element
   appended to body, so we target it globally on looimg pages. */
html.ig-site .tooltip-bubble,
html:has(.ig-page) .tooltip-bubble {
  max-width: min(720px, 92vw) !important;
  white-space: nowrap !important;
}
/* Allow wrap if it would overflow viewport */
@media (max-width: 760px) {
  html.ig-site .tooltip-bubble,
  html:has(.ig-page) .tooltip-bubble {
    white-space: normal !important;
    max-width: 320px !important;
  }
}

body.theme-light .ig-page .step-line {
  background: oklch(0.25 0.024 30 / 0.1) !important;
}
body.theme-light .ig-page .step-label {
  color: oklch(0.5 0.011 30) !important;
}

/* loopdf surfaces: white card, thin warm border, 14px radius, no frame. */
html.ig-site body:not([data-admin]) .ig-page .tool-card,
html.ig-site body:not([data-admin]) .ig-page .seo-feature-card,
html.ig-site body:not([data-admin]) .ig-page .stat-item,
html.ig-site body:not([data-admin]) .ig-page .ig-pair,
html.ig-site body:not([data-admin]) .ig-page .ig-editor-docs-tablewrap,
html.ig-site body:not([data-admin]) .ig-page .ig-nobait-card,
html.ig-site body:not([data-admin]) .ig-page .ig-simplesize-card,
html.ig-site body:not([data-admin]) .ig-page .hero-card,
html.ig-site body:not([data-admin]) .ig-page .stat-card,
html.ig-site body:not([data-admin]) .ig-page .collapse-container {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.15s ease,
    background 0.2s ease;
}
html.ig-site body:not([data-admin]) .ig-page .dropzone {
  background: var(--card-bg) !important;
  border: 1.5px dashed
    color-mix(in srgb, var(--primary-blue) 35%, var(--border-color)) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  position: relative;
  transition:
    transform 0.18s ease,
    background 0.2s ease;
}
@media (hover: hover) {
  html.ig-site body:not([data-admin]) .ig-page .tool-card:hover,
  html.ig-site body:not([data-admin]) .ig-page .ig-pair:hover {
    transform: translateY(-3px) !important;
    border-color: color-mix(
      in srgb,
      var(--primary-blue) 35%,
      var(--border-color)
    ) !important;
    box-shadow: var(--loo-shadow-md) !important;
  }
}
html.ig-site body:not([data-admin]) .ig-page .tool-card:focus-visible,
html.ig-site body:not([data-admin]) .ig-page .ig-pair:focus-visible {
  border-color: var(--primary-blue) !important;
}
/* base_dropzone.css paints a shimmer on ::before; the dashed box is the look */
html.ig-site body:not([data-admin]) .ig-page .dropzone::before {
  content: none !important;
}

/* One shared upload-area hover for every dropzone on the site (image editor,
   converters, video): lift, a clear brand tint, and a soft pulsing glow, with
   the icon bobbing up. Keeps all upload areas behaving identically. */
html.ig-site body .ig-page .dropzone:hover,
html.ig-site body .ig-page .dropzone.is-hovered,
html.ig-site body .ig-page .dropzone.drag-over {
  transform: translateY(-3px) !important;
  background: color-mix(
    in oklch,
    var(--primary-blue) 13%,
    var(--card-bg)
  ) !important;
  animation: ig-drop-pulse 1.5s ease-in-out infinite;
}
html.ig-site body .ig-page .dropzone:hover .dropzone-icon,
html.ig-site body .ig-page .dropzone.is-hovered .dropzone-icon,
html.ig-site body .ig-page .dropzone.drag-over .dropzone-icon {
  transform: translateY(-2px) scale(1.12);
}

html.ig-site [class*='contact-orb'],
html.ig-site [class*='contact-form-orb'] {
  display: none !important;
}

html.ig-site .ig-page a,
html.ig-site .ig-page button,
html.ig-site .ig-page .button,
html.ig-site .ig-page input,
html.ig-site .ig-page select,
html.ig-site .ig-page textarea,
html.ig-site .ig-page .search-field__input,
html.ig-site .ig-page .tab,
html.ig-site .ig-page summary,
html.ig-site .ig-page label {
  transition:
    background-color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease !important;
}

/* Buttons, loopdf values: 12px radius, 14.5px / 600, surface secondary,
   solid brand primary. */
html.ig-site body:not([data-admin]) .button,
html.ig-site body:not([data-admin]) .btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  border: 1px solid var(--border-color) !important;
  background: var(--card-bg) !important;
  background-image: none !important;
  color: var(--heading-color) !important;
  box-shadow: none !important;
}
@media (hover: hover) {
  html.ig-site body:not([data-admin]) .button:hover,
  html.ig-site body:not([data-admin]) .btn:hover {
    background: var(--info-item-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--heading-color) !important;
  }
}
html.ig-site body:not([data-admin]) .button:focus-visible,
html.ig-site body:not([data-admin]) .btn:focus-visible {
  outline: 2px solid var(--primary-blue) !important;
  outline-offset: 3px;
}
html.ig-site body:not([data-admin]) .button-primary,
html.ig-site body:not([data-admin]) .button.button-primary,
html.ig-site body:not([data-admin]) .btn-primary,
html.ig-site body:not([data-admin]) .btn.btn-primary,
html.ig-site body:not([data-admin]) .btn-primary-action,
html.ig-site body:not([data-admin]) .ig-page .ig-tool-picker-btn.is-primary {
  background: var(--primary-blue) !important;
  background-image: none !important;
  border: 1px solid var(--primary-blue) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  filter: none !important;
  box-shadow: 0 6px 16px -6px rgba(163, 22, 33, 0.42) !important;
}
html.ig-site body.theme-dark:not([data-admin]) .button-primary,
html.ig-site body.theme-dark:not([data-admin]) .btn-primary,
html.ig-site body.theme-dark:not([data-admin]) .btn-primary-action,
html.ig-site
  body.theme-dark:not([data-admin])
  .ig-page
  .ig-tool-picker-btn.is-primary {
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5) !important;
}
@media (hover: hover) {
  html.ig-site body:not([data-admin]) .button-primary:hover,
  html.ig-site body:not([data-admin]) .button.button-primary:hover,
  html.ig-site body:not([data-admin]) .btn-primary:hover,
  html.ig-site body:not([data-admin]) .btn.btn-primary:hover,
  html.ig-site body:not([data-admin]) .btn-primary-action:hover,
  html.ig-site
    body:not([data-admin])
    .ig-page
    .ig-tool-picker-btn.is-primary:hover {
    background: var(--primary-blue-hover) !important;
    border-color: var(--primary-blue-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px rgba(163, 22, 33, 0.5) !important;
  }
  html.ig-site body.theme-dark:not([data-admin]) .button-primary:hover,
  html.ig-site body.theme-dark:not([data-admin]) .btn-primary:hover {
    background: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6) !important;
  }
}
html.ig-site body:not([data-admin]) input[type='range'],
html.ig-site body:not([data-admin]) input[type='checkbox'],
html.ig-site body:not([data-admin]) input[type='radio'] {
  accent-color: var(--primary-blue);
}
html.ig-site body:not([data-admin]) .button-primary i,
html.ig-site body:not([data-admin]) .btn-primary i {
  color: inherit !important;
}

html.ig-site body:not([data-admin]) .ig-page .card,
html.ig-site body:not([data-admin]) .ig-page .meme-template-card,
html.ig-site body:not([data-admin]) .ig-page .meme-gallery-card,
html.ig-site body:not([data-admin]) .ig-page .meme-gallery-template-card {
  box-shadow: none !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.15s ease !important;
}
@media (hover: hover) {
  html.ig-site body:not([data-admin]) .ig-page a.card:hover,
  html.ig-site body:not([data-admin]) .ig-page .meme-template-card:hover,
  html.ig-site body:not([data-admin]) .ig-page .meme-gallery-card:hover,
  html.ig-site
    body:not([data-admin])
    .ig-page
    .meme-gallery-template-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--loo-shadow-md) !important;
  }
}

html.ig-site .preview-modal,
html.ig-site .modal {
  background: oklch(0.12 0.012 60 / 0.58) !important;
  -webkit-backdrop-filter: blur(7px) saturate(118%);
  backdrop-filter: blur(7px) saturate(118%);
}
html.ig-site .preview-modal {
  padding: 24px !important;
  box-sizing: border-box !important;
}

html.ig-site .modal-content,
html.ig-site .preview-modal-content {
  background: var(--card-bg) !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: 16px !important;
  box-shadow:
    var(--loo-shadow-md),
    4px 6px 0 oklch(0.1 0.015 60 / 0.4) !important;
  color: var(--heading-color) !important;
}

html.ig-site .preview-modal-content {
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 280px !important;
  max-width: min(1060px, 94vw) !important;
  max-height: 92vh !important;
  overflow: hidden !important;
}
html.ig-site .preview-modal-content:not(:has(.preview-modal-stage)) {
  width: min(460px, 94vw) !important;
}
html.ig-site .preview-modal-header {
  flex: 0 0 auto !important;
  background: color-mix(
    in oklch,
    var(--primary-blue) 5%,
    var(--card-bg)
  ) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 13px 14px 13px 20px !important;
}
html.ig-site .preview-modal-title {
  color: var(--heading-color) !important;
  font-family: var(--loo-font) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html.ig-site .preview-modal-close {
  flex: 0 0 auto !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: color-mix(
    in oklch,
    var(--heading-color) 9%,
    transparent
  ) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--heading-color) !important;
  font-size: 19px !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease !important;
}
html.ig-site .preview-modal-close:hover,
html.ig-site .preview-modal-close:focus {
  background: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  color: oklch(0.99 0.01 80) !important;
}

html.ig-site .preview-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  background: var(--card-bg) !important;
  padding: 18px !important;
}

html.ig-site .preview-modal-body:has(.preview-modal-stage) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  box-shadow: inset 0 1px 12px oklch(0 0 0 / 0.16) !important;
  padding: 22px !important;
}
html.ig-site .preview-modal-stage {
  position: relative !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html.ig-site .preview-modal-stage img {
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 86vw) !important;
  max-height: 74vh !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 28px oklch(0 0 0 / 0.3) !important;
}
html.ig-site .preview-modal-stage .preview-watermark-canvas {
  border-radius: 8px !important;
}

@keyframes igModalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
html.ig-site .preview-modal:not([hidden]) .preview-modal-content,
html.ig-site .modal:not([hidden]) .modal-content {
  animation: igModalPop 0.22s cubic-bezier(0.4, 0, 0.2, 1) both;
}

html.ig-site .ig-page input:not(.loo-search-orb input):focus,
html.ig-site .ig-page select:focus,
html.ig-site .ig-page textarea:focus,
html.ig-site .ig-page .search-field__input:focus,
html.ig-site .ig-page .search-field__input:focus-visible {
  border-color: var(--primary-blue) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-blue) 18%, transparent) !important;
  outline: none !important;
}

html.ig-site .dropdown-content a::before,
html.ig-site .dropdown-content a::after,
html.ig-site .mega-menu-category-item::before,
html.ig-site .mega-menu-category-item::after {
  content: none !important;
  background: none !important;
  display: none !important;
}
html.ig-site .dropdown-content > a,
html.ig-site .mega-menu-category-item {
  position: relative;
  border-radius: 9px !important;
  transition:
    background 0.16s ease,
    color 0.16s ease !important;
}
html.ig-site .dropdown-content > a:hover,
html.ig-site .dropdown-content > a:focus,
html.ig-site .dropdown-content > a:focus-visible,
html.ig-site .dropdown-content > a.is-active,
html.ig-site .mega-menu-category-item:hover,
html.ig-site .mega-menu-category-item:focus,
html.ig-site .mega-menu-category-item:focus-visible,
html.ig-site .mega-menu-category-item.is-active {
  background: color-mix(
    in oklch,
    var(--primary-blue) 13%,
    transparent
  ) !important;
  color: var(--primary-blue) !important;
}
html.ig-site .dropdown-content > a:hover .fas,
html.ig-site .dropdown-content > a:hover .fab,
html.ig-site .dropdown-content > a:hover .far,
html.ig-site .dropdown-content > a:hover i,
html.ig-site .dropdown-content > a:hover svg,
html.ig-site .mega-menu-category-item:hover .fas,
html.ig-site .mega-menu-category-item:hover .fab,
html.ig-site .mega-menu-category-item:hover .far,
html.ig-site .mega-menu-category-item:hover i,
html.ig-site .mega-menu-category-item:hover svg {
  color: var(--primary-blue) !important;
}

html.ig-site {
  overflow-x: hidden;
}

/* Brand lockup, as loopdf: core renders the wordmark as
   .nb-brand__text.footer-brand-name, so one family rule covers navbar, drawer and footer. */
body:not([data-admin]) .brand-tld {
  color: var(--primary-blue);
}
body:not([data-admin]) .footer-brand-name {
  font-family: 'Fredoka', system-ui, sans-serif !important;
  color: var(--heading-color) !important;
}
/* Opt the navbar out of the body tracking so it sets like loopdf's. */
html.ig-site body:not([data-admin]) :is(.nb-root, .nb-drawer) {
  letter-spacing: normal;
}

html.ig-site .navbar-section--center li:has(> a[href$='/register']),
html.ig-site .navbar-section--center li:has(> a[href$='/login']) {
  display: none !important;
}
html.ig-site .navbar-auth-cta {
  display: flex !important;
  align-items: center !important;
}
html.ig-site .navbar-auth-cta .ig-signup-btn {
  position: relative !important;
  overflow: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 9px 17px !important;
  border-radius: 12px !important;
  background: var(--primary-blue-hover) !important;
  color: #ffffff !important;
  font-family: var(--loo-font) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease,
    filter 0.2s ease !important;
}
html.ig-site body.theme-dark .navbar-auth-cta .ig-signup-btn {
  background: var(--primary-blue) !important;
}
html.ig-site .navbar-auth-cta .ig-signup-btn span,
html.ig-site .navbar-auth-cta .ig-signup-btn i,
html.ig-site body.theme-light .navbar-auth-cta .ig-signup-btn,
html.ig-site body.theme-light .navbar-auth-cta .ig-signup-btn span,
html.ig-site body.theme-light .navbar-auth-cta .ig-signup-btn i {
  color: #ffffff !important;
}
html.ig-site .navbar-auth-cta .ig-signup-btn span,
html.ig-site .navbar-auth-cta .ig-signup-btn i {
  position: relative !important;
  z-index: 2 !important;
}
html.ig-site .navbar-auth-cta .ig-signup-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}
html.ig-site .navbar-auth-cta .ig-signup-btn:hover i {
  transform: translateX(1px) scale(1.12) rotate(-6deg) !important;
}
html.ig-site .navbar-auth-cta .ig-signup-btn i {
  font-size: 12px !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

html.ig-site .navbar-section--center > li > a:hover,
html.ig-site .navbar-section--center > li > a:focus-visible,
html.ig-site .navbar-section--center > li.open > a,
html.ig-site .navbar-section--center > li.is-open > a,
html.ig-site .navbar-section--center > li.active > a,
html.ig-site .navbar-section--center > li.show > a,
html.ig-site .navbar-section--center > li > a[aria-expanded='true'] {
  background: color-mix(
    in oklch,
    var(--primary-blue) 12%,
    transparent
  ) !important;
  color: var(--primary-blue) !important;
  border-radius: 10px !important;
}
html.ig-site .navbar-section--center > li > a:hover i,
html.ig-site .navbar-section--center > li > a:hover svg,
html.ig-site .navbar-section--center > li.open > a i,
html.ig-site .navbar-section--center > li.is-open > a i,
html.ig-site .navbar-section--center > li > a[aria-expanded='true'] i {
  color: var(--primary-blue) !important;
}

html.ig-site .navbar-section--right {
  gap: 10px !important;
}

html.ig-site .footer-blog-recommendations {
  --card-bg: var(--card-header-bg);
  --container-bg: var(--card-bg);
  --border-color: var(--border-color);
  --info-item-bg: var(--item-hover-bg);
  --text-color: var(--heading-color);
  --heading-color: var(--heading-color);
  --muted-text: var(--muted-text);
}
html.ig-site .footer-blog-recommendations-card {
  box-shadow: none !important;
  border: 1px solid var(--border-color) !important;
  transition:
    background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
html.ig-site .footer-blog-recommendations-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--primary-blue) !important;
  background: color-mix(
    in oklch,
    var(--primary-blue) 8%,
    var(--card-header-bg)
  ) !important;
}

html.ig-site .navbar-theme-switcher {
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 6px !important;
  padding-left: 16px !important;
  position: relative;
}
html.ig-site .navbar-theme-switcher .theme-switcher {
  display: inline-flex !important;
  align-items: center !important;
}
html.ig-site .navbar-theme-switcher::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  width: 1px;
  background: var(--border-color);
}
html.ig-site .navbar-theme-switcher .theme-toggle-button {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  align-self: center !important;
  font-size: 16px !important;
  border-radius: 8px !important;
}

html.ig-site,
html.ig-site .base-sidebar,
html.ig-site .up-panel,
html.ig-site .user-overview-page,
html.ig-site .dashboard-page,
html.ig-site body.theme-light,
html.ig-site body.theme-light .base-sidebar,
html.ig-site body.theme-light .up-panel,
html.ig-site body.theme-light .user-overview-page,
html.ig-site body.theme-light .dashboard-page {
  --base-sidebar-bg: var(--card-bg);
  --base-sidebar-border: var(--border-color);
  --base-sidebar-text: var(--heading-color);
  --base-sidebar-text-muted: var(--loo-ink-2);
  --base-sidebar-group-header: var(--muted-text);
  --base-sidebar-accent: var(--primary-blue);
  --base-sidebar-control-bg: var(--input-bg);
  --base-sidebar-control-bg-hover: color-mix(
    in oklch,
    var(--primary-blue) 14%,
    var(--input-bg)
  );
  --base-sidebar-item-hover: color-mix(
    in oklch,
    var(--primary-blue) 9%,
    transparent
  );
  --base-sidebar-item-active: color-mix(
    in oklch,
    var(--primary-blue) 16%,
    transparent
  );
  --base-sidebar-bg-gradient: linear-gradient(
    180deg,
    color-mix(in oklch, var(--primary-blue) 4%, var(--card-bg)),
    var(--card-bg)
  );
  --base-sidebar-border-gradient: linear-gradient(
    180deg,
    color-mix(in oklch, var(--primary-blue) 28%, transparent),
    transparent
  );
  --base-sidebar-control-border: var(--border-color);

  --up-surface: var(--card-bg);
  --up-text: var(--heading-color);
  --up-text-muted: var(--loo-ink-2);
  --up-text-dim: var(--muted-text);
  --up-accent: var(--primary-blue);
  --up-accent-soft: color-mix(in oklch, var(--primary-blue) 10%, transparent);
  --up-accent-line: color-mix(in oklch, var(--primary-blue) 35%, transparent);
  --up-input-bg: var(--input-bg);
  --up-row-divider: var(--border-color);

  --panel-surface: var(--card-bg);
  --panel-text: var(--heading-color);
  --panel-border: var(--border-color);
  --panel-glow: 0 24px 60px oklch(0.05 0.008 60 / 0.5);
}

html.ig-site .base-sidebar__title-card {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    color-mix(in oklch, var(--primary-blue) 68%, #000)
  ) !important;
  color: oklch(0.99 0.01 80) !important;
}
html.ig-site .base-sidebar__search-input:focus,
html.ig-site .base-sidebar__quick-jump-input:focus {
  border-color: color-mix(
    in oklch,
    var(--primary-blue) 50%,
    transparent
  ) !important;
  background: color-mix(
    in oklch,
    var(--primary-blue) 9%,
    transparent
  ) !important;
  box-shadow: 0 0 0 3px
    color-mix(in oklch, var(--primary-blue) 14%, transparent) !important;
}
html.ig-site .base-sidebar__quick-jump-btn {
  background: var(--primary-blue) !important;
  box-shadow: 0 4px 12px
    color-mix(in oklch, var(--primary-blue) 30%, transparent) !important;
}
html.ig-site .base-sidebar__quick-jump-btn:hover {
  background: color-mix(in oklch, var(--primary-blue) 86%, #000) !important;
  box-shadow: 0 6px 16px
    color-mix(in oklch, var(--primary-blue) 38%, transparent) !important;
}
html.ig-site .base-sidebar__controls--placeholder {
  background:
    linear-gradient(
        135deg,
        oklch(0.14 0.012 64 / 0.55),
        oklch(0.2 0.015 66 / 0.5)
      )
      padding-box,
    linear-gradient(
        135deg,
        color-mix(in oklch, var(--primary-blue) 26%, transparent),
        color-mix(in oklch, var(--primary-blue) 18%, transparent)
      )
      border-box !important;
}

html.ig-site .user-overview-page,
html.ig-site .dashboard-page {
  background: var(--bg-gradient) !important;
  color: var(--heading-color) !important;
}
html.ig-site .user-overview-card,
html.ig-site .user-overview-section,
html.ig-site .user-overview-stats-card,
html.ig-site .user-overview-info-grid > *,
html.ig-site .up-panel,
html.ig-site .up-card,
html.ig-site .user-overview-page .panel,
html.ig-site .user-overview-page .card {
  background: var(--card-bg) !important;
  border-color: var(--border-color) !important;
  color: var(--heading-color) !important;
}

html.ig-site .user-overview-page,
html.ig-site .dashboard-content-area,
html.ig-site .dashboard-tabs-wrapper {
  background: var(--bg-gradient) !important;
  color: var(--heading-color) !important;
}
html.ig-site .user-overview-card,
html.ig-site .user-overview-action-btn,
html.ig-site a.user-overview-action-btn,
html.ig-site button.user-overview-action-btn,
html.ig-site .user-overview-form-input,
html.ig-site .user-overview-totp-input,
html.ig-site .user-overview-modal-content,
html.ig-site .user-overview-modal-btn-secondary,
html.ig-site .user-overview-mfa-method-name,
html.ig-site .user-overview-mfa-method-actions,
html.ig-site .dashboard-logout-btn,
html.ig-site .user-overview-stats-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--heading-color) !important;
  box-shadow: var(--loo-shadow-sm) !important;
}
html.ig-site .user-overview-section-description,
html.ig-site .user-overview-info-item,
html.ig-site .user-overview-form-hint,
html.ig-site .user-overview-modal-text,
html.ig-site .user-overview-mfa-section,
html.ig-site .user-overview-mfa-option-card,
html.ig-site .user-overview-modal-close {
  background: color-mix(
    in oklch,
    var(--primary-blue) 7%,
    transparent
  ) !important;
  border-color: color-mix(
    in oklch,
    var(--primary-blue) 22%,
    transparent
  ) !important;
  box-shadow: none !important;
}
html.ig-site .user-overview-info-item:hover,
html.ig-site .user-overview-stats-card:hover,
html.ig-site .user-overview-action-btn:hover,
html.ig-site .user-overview-modal-close:hover,
html.ig-site .userpanel-session-card:hover {
  background: color-mix(
    in oklch,
    var(--primary-blue) 13%,
    transparent
  ) !important;
  border-color: color-mix(
    in oklch,
    var(--primary-blue) 35%,
    transparent
  ) !important;
  box-shadow: var(--loo-shadow-md) !important;
}
html.ig-site .user-overview-action-btn.user-overview-action-btn-primary,
html.ig-site button.user-overview-action-btn-primary,
html.ig-site a.user-overview-action-btn-primary,
html.ig-site .user-overview-modal-btn.user-overview-modal-btn-primary,
html.ig-site button.user-overview-modal-btn-primary {
  background: var(--primary-blue) !important;
  border: 1px solid var(--border-color) !important;
  color: oklch(0.18 0.015 30) !important;
  box-shadow: 0 4px 15px
    color-mix(in oklch, var(--primary-blue) 35%, transparent) !important;
}
html.ig-site .user-overview-action-btn.user-overview-action-btn-primary:hover,
html.ig-site button.user-overview-action-btn-primary:hover,
html.ig-site .user-overview-modal-btn.user-overview-modal-btn-primary:hover,
html.ig-site button.user-overview-modal-btn-primary:hover {
  box-shadow: 0 8px 30px
    color-mix(in oklch, var(--primary-blue) 45%, transparent) !important;
}
html.ig-site .user-overview-form-input:focus,
html.ig-site .user-overview-totp-input:focus {
  border-color: var(--primary-blue) !important;
  background: var(--card-bg) !important;
  box-shadow: 0 0 0 3px
    color-mix(in oklch, var(--primary-blue) 15%, transparent) !important;
}
html.ig-site .dashboard-tab-btn.active i,
html.ig-site .dashboard-tab-btn.active span,
html.ig-site .user-overview-info-value,
html.ig-site .user-overview-stats-value {
  color: var(--primary-blue) !important;
}
html.ig-site .dashboard-tabs {
  border-bottom-color: var(--border-color) !important;
}
html.ig-site .welcome-panel-greeting,
html.ig-site .dashboard-tab-btn i,
html.ig-site .dashboard-welcome-header,
html.ig-site .dashboard-tab-btn .icon-container {
  color: var(--loo-ink-2) !important;
}
html.ig-site .welcome-panel-email,
html.ig-site .dashboard-logout-btn {
  color: var(--heading-color) !important;
}
html.ig-site .user-overview-title,
html.ig-site .user-overview-modal-title {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    color-mix(in oklch, var(--primary-blue) 58%, #000)
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
html.ig-site .welcome-avatar {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    color-mix(in oklch, var(--primary-blue) 64%, #000)
  ) !important;
  color: oklch(0.99 0.01 80) !important;
}
html.ig-site .dashboard-welcome-panel {
  background:
    linear-gradient(135deg, oklch(0.16 0.013 64), oklch(0.2 0.015 66))
      padding-box,
    linear-gradient(
        135deg,
        color-mix(in oklch, var(--primary-blue) 40%, transparent),
        color-mix(in oklch, var(--primary-blue) 28%, transparent)
      )
      border-box !important;
}
html.ig-site .user-overview-info-label i,
html.ig-site .user-overview-action-btn i,
html.ig-site .user-overview-form-hint i,
html.ig-site .user-overview-form-icon,
html.ig-site .user-overview-card::before,
html.ig-site .user-overview-modal-content::before {
  filter: none !important;
  box-shadow: none !important;
}
html.ig-site .user-overview-mfa-method-icon,
html.ig-site .user-overview-session-icon {
  background: color-mix(
    in oklch,
    var(--primary-blue) 20%,
    transparent
  ) !important;
  color: var(--primary-blue) !important;
}

html.ig-site .dropdown-content > a:hover,
html.ig-site .dropdown-content > a:focus-visible,
html.ig-site .dropdown-content > a.is-active,
html.ig-site body .dropdown-content .mega-menu-category-item:hover,
html.ig-site body .dropdown-content .mega-menu-category-item:focus-visible,
html.ig-site body .dropdown-content .mega-menu-category-item.is-active,
html.ig-site body .mega-menu-content .mega-menu-category-item:hover,
html.ig-site body .mega-menu-content .mega-menu-category-item.is-active {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--primary-blue) 17%, transparent) 0%,
    color-mix(in oklch, var(--primary-blue) 6%, transparent) 100%
  ) !important;
  color: var(--primary-blue) !important;
  box-shadow: 0 2px 7px
    color-mix(in oklch, var(--primary-blue) 20%, transparent) !important;
}

html.ig-site .base-sidebar__item-link.active::before,
html.ig-site .base-sidebar__item-link.active::after,
html.ig-site .base-sidebar__item-toggle.active::before,
html.ig-site .base-sidebar__item-toggle.active::after,
html.ig-site .base-sidebar__item--active > .base-sidebar__item-link::before,
html.ig-site .base-sidebar__item--active > .base-sidebar__item-link::after,
html.ig-site .dashboard-tab-btn.active::before,
html.ig-site .dashboard-tab-btn.active::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
html.ig-site .base-sidebar__item-link.active,
html.ig-site .base-sidebar__item-toggle.active,
html.ig-site .base-sidebar__item--active > .base-sidebar__item-link,
html.ig-site .dashboard-tab-btn.active {
  border-left-color: transparent !important;
}

html.ig-site .navbar .userpanel-nav-user-avatar {
  background: var(--primary-blue) !important;
  color: oklch(0.18 0.015 30) !important;
  border: 1.5px solid var(--border-color) !important;
}

html.ig-site
  .base-sidebar[data-sidebar-id='user-panel-sidebar']
  .base-sidebar__item-link.active::before,
html.ig-site
  .base-sidebar[data-sidebar-id='user-panel-sidebar']
  .base-sidebar__item-toggle.active::before,
html.ig-site
  .base-sidebar[data-sidebar-id='user-panel-sidebar']
  .base-sidebar__item-link.active::after,
html.ig-site
  .base-sidebar[data-sidebar-id='user-panel-sidebar']
  .base-sidebar__item-toggle.active::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

html.ig-site .language-option,
html.ig-site .language-option:hover,
html.ig-site .language-option:focus,
html.ig-site .language-option:focus-visible,
html.ig-site .language-option.active,
html.ig-site .language-option.is-active,
html.ig-site .language-dropdown-content a:hover {
  transform: none !important;
}

@media (max-width: 750px) {
  html.ig-site .navbar-nav,
  html.ig-site .navbar-nav.is-open {
    background: linear-gradient(
      180deg,
      color-mix(in oklch, var(--primary-blue) 5%, var(--card-bg)),
      var(--card-bg)
    ) !important;
    border-top: 1.5px solid var(--border-color) !important;
    box-shadow: 0 16px 32px oklch(0.04 0.008 60 / 0.5) !important;
  }
  html.ig-site .navbar-nav a,
  html.ig-site .navbar-nav a span {
    color: var(--heading-color) !important;
  }
  html.ig-site .navbar-nav .navbar-section--center > li {
    border-bottom: 1px solid var(--border-color) !important;
  }
  html.ig-site .navbar-nav .navbar-section--center i,
  html.ig-site .navbar-nav .navbar-section--center .fas,
  html.ig-site .navbar-nav .navbar-section--center .fab,
  html.ig-site .navbar-nav .navbar-section--center .far {
    color: var(--primary-blue) !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
  html.ig-site .navbar-nav .navbar-section--center .dropdown-icon {
    background: color-mix(
      in oklch,
      var(--primary-blue) 15%,
      transparent
    ) !important;
    box-shadow: none !important;
  }
  html.ig-site .navbar-nav .mega-menu-content,
  html.ig-site .navbar-nav .dropdown-content,
  html.ig-site .navbar-nav .mega-menu-category {
    background: transparent !important;
    background-image: none !important;
  }
  html.ig-site .navbar-nav .mega-menu-category-item:hover .dropdown-icon,
  html.ig-site .navbar-nav .mega-menu-category-item i {
    color: var(--primary-blue) !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html.ig-site .navbar-nav .navbar-section--center > li > a:hover,
  html.ig-site .navbar-nav .navbar-section--center > li > a:active,
  html.ig-site .navbar-nav .navbar-section--center > li.open > a,
  html.ig-site
    .navbar-nav
    .navbar-section--center
    > li[aria-expanded='true']
    > a,
  html.ig-site .navbar-nav .mega-menu-category-item:hover,
  html.ig-site .navbar-nav .mega-menu-category-item:active {
    background: color-mix(
      in oklch,
      var(--primary-blue) 11%,
      transparent
    ) !important;
    color: var(--primary-blue) !important;
  }
  html.ig-site .navbar-theme-switcher {
    display: none !important;
  }
  html.ig-site .navbar .navbar-section--left {
    display: flex !important;
    align-items: center !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    z-index: 1002 !important;
  }
  html.ig-site .nav-toggle {
    background: var(--card-bg) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 11px !important;
    box-shadow: var(--loo-shadow-sm) !important;
    box-sizing: border-box !important;
    transition:
      border-color 0.2s ease,
      background 0.2s ease !important;
  }
  html.ig-site .nav-toggle span,
  html.ig-site .nav-toggle[aria-expanded='true'] span {
    background-color: var(--heading-color) !important;
  }
  html.ig-site .nav-toggle:hover,
  html.ig-site .nav-toggle[aria-expanded='true'] {
    opacity: 1 !important;
    border-color: var(--primary-blue) !important;
    background: color-mix(
      in oklch,
      var(--primary-blue) 12%,
      var(--card-bg)
    ) !important;
  }
}

/* `.ig-page .form-group` sets display:flex !important, which beats the [hidden]
   attribute's default display:none. Re-assert the hide at equal specificity. */
.ig-page .form-group[hidden] {
  display: none !important;
}

/* ============================================================
   ICON-ONLY TOOL ACTIONS
   The "Back to Tools" link was removed from the tool headers (the navbar and
   the tools grid both already cover that trip), leaving Reset as a single
   icon-only control. Sized here rather than relying on .button-icon alone,
   since the generic .button padding would otherwise render it as a stubby
   pill. data-tooltip-no-icon on the markup is what stops base_tooltip.js
   injecting its own "?" glyph on top of the icon.
   ============================================================ */
/* The `.ig-page` in the selector is load-bearing: the tool header already has
   `.ig-page .page-hero.tool-hero .hero-actions .button { padding: 9px 14px
   !important; border-radius: 10px !important }` at (0,5,0). Among !important
   declarations specificity still decides, so a plainer selector loses and the
   icon renders as a pill. This lands at (0,5,2) and also covers the editor's
   `.toolbar-actions`, which is not inside `.hero-actions`. */
body:not([data-admin]) .ig-page button.button.button-icon[data-action='reset'],
body:not([data-admin])
  .ig-page
  button.button.button-icon[data-meme-reset-hero] {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

html.ig-site body:not([data-admin]) .up-panel:not(.dashboard-page--mobile) {
  --up-tracking: 0.35px;
}
html.ig-site
  body:not([data-admin])
  .up-panel:not(.dashboard-page--mobile)
  :is(
    strong,
    b,
    summary,
    label,
    .up-kv__val,
    .up-sess__device,
    .up-rows__main strong,
    .up-notif-row__text,
    .sup-faq summary,
    .up-btn,
    .up-card-sub,
    .up-ov-tile__hint
  ) {
  font-weight: 500 !important;
}

/* ---------- About page (core about.css, loopdf's weights and spacing) ---------- */
/* The site-wide 600 heading weight would flatten core's 800 about titles. */
html.ig-site
  body:not([data-admin])
  .about-page
  :is(.ab-hero-title, .ab-h2, .ab-cta h2) {
  font-weight: 800;
}
html.ig-site main.container.ig-about-main {
  padding: 0 !important;
}
@media (max-width: 900px) {
  html.ig-site main.container.ig-about-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
  }
}
/* The og-image renders at its natural 1200px and pushed the page sideways. */
html.ig-site body:not([data-admin]) .about-page .ab-hero-image,
html.ig-site body:not([data-admin]) .about-page .ab-hero-image img {
  max-width: 100%;
  height: auto;
}
html.ig-site body:not([data-admin]) .about-page .btn.btn-primary {
  padding: 12px 20px !important;
  margin: 0 6px 0 0 !important;
  border: 0 !important;
  line-height: 1.2 !important;
}
