/**
 * Ajustar foto — studio shell (fullscreen).
 * Same pattern as recortar: topbar + left rail + big stage.
 * Light default; follows html[data-theme="dark"].
 */

/* ---- Workspace shell ---- */
body.is-fullscreen .fs-workspace.iadj-fs {
  --ia-bg: #eef1f6;
  --ia-app: #ffffff;
  --ia-line: #e2e8f0;
  --ia-text: var(--dica-ink, #0f172a);
  --ia-muted: var(--dica-muted, #64748b);
  --ia-faint: #94a3b8;
  --ia-accent: #fa5b0f;
  --ia-accent-2: #e04f0a;
  --ia-btn: #eef2f7;
  --ia-btn-hover: #e2e8f0;
  --ia-stage: #e8ecf2;
  --ia-stage-inner: #eef1f6;
  --ia-topbar: #f8fafc;
  --ia-side: #f8fafc;
  --ia-card: #ffffff;
  --ia-input: #ffffff;
  --ia-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 32px rgba(15, 23, 42, 0.07);
  --ia-good: #079455;
  --ia-drop-border: #cbd5e1;
  --ia-drop-bg: rgba(255, 255, 255, 0.72);
  --ia-drop-text: var(--dica-ink, #0f172a);
  --ia-drop-muted: var(--dica-muted, #64748b);
  --ia-meta-bg: rgba(15, 23, 42, 0.72);
  --ia-canvas-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 12px 14px 16px !important;
  box-sizing: border-box;
  background: var(--ia-bg) !important;
  border-color: var(--ia-line) !important;
  color: var(--ia-text);
  min-height: min(78vh, 900px) !important;
  height: min(calc(100vh - 120px), 920px);
  overflow: hidden;
}

html[data-theme="dark"] body.is-fullscreen .fs-workspace.iadj-fs {
  --ia-bg: #0b0e14;
  --ia-app: #151922;
  --ia-line: #2a3140;
  --ia-text: #e8eef6;
  --ia-muted: rgba(232, 238, 246, 0.62);
  --ia-faint: rgba(232, 238, 246, 0.42);
  --ia-btn: rgba(255, 255, 255, 0.08);
  --ia-btn-hover: rgba(255, 255, 255, 0.14);
  --ia-stage: #080b11;
  --ia-stage-inner: #0a0e14;
  --ia-topbar: #1a2030;
  --ia-side: #1a2030;
  --ia-card: rgba(255, 255, 255, 0.04);
  --ia-input: rgba(0, 0, 0, 0.28);
  --ia-shadow: none;
  --ia-drop-border: rgba(255, 255, 255, 0.18);
  --ia-drop-bg: rgba(255, 255, 255, 0.04);
  --ia-drop-text: rgba(255, 255, 255, 0.88);
  --ia-drop-muted: rgba(255, 255, 255, 0.55);
  --ia-meta-bg: rgba(0, 0, 0, 0.55);
  --ia-canvas-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  background: var(--ia-bg) !important;
  border-color: #0a0e14 !important;
}

.iadj-app {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: min(70vh, 860px);
  width: 100%;
  min-width: 0;
  background: var(--ia-app);
  color: var(--ia-text);
  border-radius: 18px;
  border: 1px solid var(--ia-line);
  box-shadow: var(--ia-shadow);
  overflow: hidden;
  position: relative;
}

.iadj-app * {
  box-sizing: border-box;
}

.iadj-app p {
  margin: 0;
}

.iadj-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.iadj-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Top bar ---- */
.iadj-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ia-line);
  background: var(--ia-topbar);
  min-height: 52px;
}

.iadj-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.iadj-brand {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ia-accent);
  color: #fff;
  flex-shrink: 0;
}

.iadj-brand svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.iadj-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.iadj-brand-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.iadj-file-meta {
  font-size: 0.72rem;
  color: var(--ia-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(320px, 42vw);
}

.iadj-look-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

.iadj-tool {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ia-muted);
  background: var(--ia-btn);
  border: 1px solid var(--ia-line);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.iadj-tool:hover:not(:disabled) {
  background: var(--ia-btn-hover);
  color: var(--ia-text);
}

.iadj-tool.is-active {
  color: var(--ia-accent);
  border-color: rgba(250, 91, 15, 0.45);
  background: rgba(250, 91, 15, 0.1);
}

.iadj-tool:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.iadj-tool-ico {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.9;
}

.iadj-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

/* Buttons */
.iadj-btn {
  appearance: none;
  border: 1px solid var(--ia-line);
  background: var(--ia-btn);
  color: var(--ia-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, opacity 0.12s ease,
    transform 0.12s ease;
}

.iadj-btn:hover:not(:disabled) {
  background: var(--ia-btn-hover);
}

.iadj-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.iadj-btn:not(:disabled):active {
  transform: scale(0.98);
}

.iadj-btn:focus-visible {
  outline: 2px solid var(--ia-accent);
  outline-offset: 2px;
}

.iadj-btn-ghost {
  background: transparent;
}

.iadj-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ia-accent);
  border-color: var(--ia-accent);
  color: #fff;
  min-width: 110px;
  box-shadow: 0 2px 10px rgba(250, 91, 15, 0.28);
}

.iadj-btn-primary:hover:not(:disabled) {
  background: var(--ia-accent-2);
  border-color: var(--ia-accent-2);
  color: #fff;
}

.iadj-btn-block {
  width: 100%;
  min-width: 0;
  padding: 12px 16px;
  font-size: 0.92rem;
}

/* ---- Body: sidebar + main ---- */
.iadj-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.iadj-sidebar {
  flex: 0 0 min(280px, 34vw);
  width: min(280px, 34vw);
  max-width: 300px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--ia-line);
  background: var(--ia-side);
  overflow: auto;
  overscroll-behavior: contain;
}

.iadj-side-head {
  padding: 14px 14px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ia-faint);
}

.iadj-side-block {
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--ia-line);
}

.iadj-side-block:last-of-type {
  border-bottom: 0;
}

.iadj-side-title {
  display: block;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ia-text);
  letter-spacing: -0.01em;
}

.iadj-field {
  margin-bottom: 10px;
}

.iadj-field:last-child {
  margin-bottom: 0;
}

.iadj-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ia-faint);
  margin: 0 0 4px 1px;
}

.iadj-field select {
  width: 100%;
  background: var(--ia-input);
  color: var(--ia-text);
  border: 1px solid var(--ia-line);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.iadj-field select option {
  color: #111;
}

.iadj-field select:focus-visible,
.iadj-field input:focus-visible {
  outline: 2px solid var(--ia-accent);
  outline-offset: 1px;
}

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

.iadj-range-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ia-text);
}

.iadj-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ia-muted);
}

.iadj-hint a {
  color: var(--ia-accent);
  text-decoration: none;
  font-weight: 600;
}

.iadj-hint a:hover {
  text-decoration: underline;
}

.iadj-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.iadj-chip {
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ia-muted);
  background: var(--ia-btn);
  border: 1px solid var(--ia-line);
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.iadj-chip:hover:not(:disabled) {
  background: var(--ia-btn-hover);
  color: var(--ia-text);
}

.iadj-chip.is-active {
  color: var(--ia-accent);
  border-color: rgba(250, 91, 15, 0.45);
  background: rgba(250, 91, 15, 0.1);
}

.iadj-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.iadj-status {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ia-muted);
  min-height: 1.2em;
}

.iadj-status.is-ok {
  color: var(--ia-good);
}

.iadj-status.is-error {
  color: #d92d20;
}

.iadj-status.is-loading {
  color: var(--ia-accent);
}

.iadj-side-actions {
  padding: 14px;
  margin-top: auto;
  border-top: 1px solid var(--ia-line);
  background: var(--ia-side);
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Main stage ---- */
.iadj-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--ia-stage);
  overflow: hidden;
}

.iadj-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ia-stage-inner);
}

/* Drop zone */
.iadj-drop {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px;
  padding: 36px 24px;
  max-width: 480px;
  width: calc(100% - 40px);
  border: 2px dashed var(--ia-drop-border);
  border-radius: 16px;
  background: var(--ia-drop-bg);
  cursor: pointer;
  text-align: center;
  outline: none;
  color: var(--ia-drop-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.iadj-app.is-empty .iadj-drop {
  display: flex;
}

.iadj-drop:hover,
.iadj-drop:focus-visible,
.iadj-drop.is-dragover {
  border-color: var(--ia-accent);
  background: rgba(250, 91, 15, 0.08);
}

.iadj-drop-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 91, 15, 0.12);
  color: var(--ia-accent);
  margin-bottom: 4px;
}

.iadj-drop-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.iadj-drop h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ia-drop-text);
}

.iadj-drop-hint {
  font-size: 0.82rem;
  color: var(--ia-drop-muted);
  line-height: 1.4;
}

.iadj-drop .iadj-btn-primary {
  margin-top: 10px;
}

.iadj-drop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

/* Viewport / canvas */
.iadj-viewport {
  display: none;
  position: relative;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  user-select: none;
  width: 100%;
}

.iadj-app:not(.is-empty) .iadj-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.iadj-viewport .iadj-stage-canvas {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 100%);
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--ia-canvas-shadow);
  border: 1px solid var(--ia-line);
}

/* When compare slider is open, hide the single-stage canvas */
.iadj-app.is-comparing:not(.is-empty) .iadj-stage-canvas {
  display: none;
}

/* ---- Before/after drag slider (Comparar) ---- */
.iadj-ba {
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0 auto;
  padding: 12px 16px 8px;
  user-select: none;
  touch-action: none;
  box-sizing: border-box;
}

.iadj-ba[hidden] {
  display: none !important;
}

.iadj-app.is-comparing:not(.is-empty) .iadj-ba {
  display: block;
}

.iadj-ba-frame {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--ia-line);
  box-shadow: var(--ia-canvas-shadow);
  /* height set by JS to match image aspect (avoids letterbox mismatch) */
  height: min(62vh, 560px);
  max-height: min(62vh, 560px);
}

.iadj-ba-layer {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  /* Stretch same bitmap box — both canvases share pixel size + full-bleed draw */
  width: 100%;
  height: 100%;
  background: #0f172a;
}

.iadj-ba-layer--after {
  z-index: 1;
}

.iadj-ba-clip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
}

/*
 * Before layer must be as wide as the full frame (not the clip),
 * so the cut reveals the same pixels as the after layer.
 * Width is also set in JS (frame.clientWidth) for reliability.
 */
.iadj-ba-clip .iadj-ba-layer--before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.iadj-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.iadj-ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.iadj-ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  border: 2px solid #e2e8f0;
}

.iadj-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.iadj-ba-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ia-muted);
}

html[data-theme="dark"] .iadj-ba-frame {
  background: #0b0e14;
  border-color: #2a3140;
}

html[data-theme="dark"] .iadj-ba-layer {
  background: #0b0e14;
}

html[data-theme="dark"] .iadj-ba-knob {
  background: #1e293b;
  color: #f8fafc;
  border-color: #475569;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .iadj-ba-line {
  background: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .iadj-ba-clip {
  border-right-color: rgba(248, 250, 252, 0.88);
}

.iadj-meta-bar {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--ia-meta-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 10px;
  pointer-events: none;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iadj-app.is-empty .iadj-meta-bar {
  display: none;
}

/* Batch strip under stage */
.iadj-batch {
  display: none;
  flex: 0 0 auto;
  border-top: 1px solid var(--ia-line);
  background: var(--ia-topbar);
  max-height: min(140px, 22vh);
  overflow: auto;
  padding: 8px 12px;
}

.iadj-app.has-batch .iadj-batch {
  display: block;
}

.iadj-batch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.iadj-batch-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ia-faint);
}

.iadj-batch-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ia-muted);
}

.iadj-batch .aib-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ia-muted);
}

.iadj-batch .aib-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iadj-batch .aib-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(180px, 42vw);
  max-width: 220px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--ia-line);
  background: var(--ia-card);
  cursor: pointer;
}

.iadj-batch .aib-item.is-active {
  border-color: rgba(250, 91, 15, 0.5);
  box-shadow: 0 0 0 1px rgba(250, 91, 15, 0.2);
}

.iadj-batch .aib-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ia-btn);
  flex-shrink: 0;
}

.iadj-batch .aib-thumb-ph {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ia-btn);
  flex-shrink: 0;
}

.iadj-batch .aib-body {
  min-width: 0;
  flex: 1;
}

.iadj-batch .aib-name {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ia-text);
}

.iadj-batch .aib-meta {
  font-size: 0.66rem;
  color: var(--ia-muted);
}

.iadj-batch .aib-prog {
  height: 3px;
  border-radius: 99px;
  background: var(--ia-btn);
  margin-top: 4px;
  overflow: hidden;
}

.iadj-batch .aib-prog > span {
  display: block;
  height: 100%;
  background: var(--ia-accent);
  width: 0;
}

.iadj-batch .aib-actions {
  display: flex;
  gap: 2px;
}

.iadj-batch .aib-icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ia-muted);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.iadj-batch .aib-icon-btn:hover {
  background: var(--ia-btn);
  color: var(--ia-text);
}

/* Pipeline footer */
.iadj-pipeline {
  flex: 0 0 auto;
  max-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border-top: 0;
  background: var(--ia-topbar);
  transition: max-height 0.15s ease;
}

.iadj-pipeline.is-open,
.iadj-app.has-pipeline .iadj-pipeline {
  max-height: min(160px, 24vh);
  overflow: auto;
  border-top: 1px solid var(--ia-line);
}

.iadj-app .itool-next,
.iadj-app .rbg-next,
.iadj-app .itool-hist-host,
.iadj-app .itool-history-host {
  margin: 0;
  padding: 8px 12px;
  border-top: 0;
  background: transparent;
  flex: 0 0 auto;
}

.iadj-pipeline > * + * {
  border-top: 1px solid var(--ia-line);
}

.iadj-app.is-busy {
  cursor: progress;
}

.iadj-app.is-busy .iadj-drop {
  pointer-events: none;
  opacity: 0.72;
}

.iadj-app .itool-toast {
  z-index: 40;
}

/* ---- Mobile ---- */
@media (max-width: 820px) {
  body.is-fullscreen .fs-workspace.iadj-fs {
    height: auto;
    min-height: min(88vh, 960px) !important;
    padding: 8px 8px 12px !important;
  }

  .iadj-app {
    min-height: min(82vh, 920px);
  }

  .iadj-body {
    flex-direction: column;
  }

  /* Stage first on mobile, controls below */
  .iadj-main {
    order: 1;
    min-height: 260px;
  }

  .iadj-sidebar {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-right: 0;
    border-top: 1px solid var(--ia-line);
    max-height: 46vh;
  }

  .iadj-side-actions {
    position: static;
  }

  .iadj-look-tools {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .iadj-tool-label {
    display: none;
  }

  .iadj-stage {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .iadj-brand-text strong {
    font-size: 0.82rem;
  }

  .iadj-file-meta {
    max-width: 46vw;
  }

  .iadj-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .iadj-btn-primary {
    min-width: 88px;
  }
}

/* SEO body under workspace */
.iadj-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.iadj-feature {
  border: 1px solid var(--dica-border, #e4e9f2);
  border-radius: 14px;
  padding: 16px;
  background: var(--dica-surface, #fff);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.iadj-feature-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--dica-ink, #0f172a);
}

.iadj-feature-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dica-body, #344054);
}

.iadj-faq details {
  margin-bottom: 8px;
  border: 1px solid var(--dica-border, #e4e9f2);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--dica-surface, #fff);
}

.iadj-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dica-ink, #0f172a);
}

.iadj-faq details p {
  margin: 8px 0 0;
  color: var(--dica-body, #344054);
  line-height: 1.5;
}

.iadj-ba-demo {
  margin: 0 0 18px;
  padding: 0;
  border: 1px solid var(--dica-border, #e4e9f2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--dica-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.iadj-ba-demo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.iadj-ba-demo figcaption {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--dica-muted, #64748b);
  border-top: 1px solid var(--dica-border, #e4e9f2);
  background: var(--dica-surface-soft, #f8fafc);
}
