/* Desfocar fundo. Page dashboard. Does not restyle the site header. */

body.page-desfocar-fundo-foto-online.is-fullscreen .fs-workspace.dfg-fs {
  min-height: 0;
  border: 0;
  background: #f4f7fc;
  padding: 18px 20px 12px;
}

body.page-desfocar-fundo-foto-online .fs-chrome {
  display: none;
}

.dfg-app {
  --dfg-ink: #172554;
  --dfg-body: #3d4d6a;
  --dfg-muted: #64748b;
  --dfg-card: #fff;
  --dfg-line: #e4ebf5;
  --dfg-soft: #f3f6fb;
  --dfg-blue: #2f6fed;
  --dfg-blue-soft: #e8f0ff;
  --dfg-green: #16a34a;
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  color: var(--dfg-body);
  font-size: 15px;
  line-height: 1.45;
}

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

.dfg-app p,
.dfg-app h1,
.dfg-app h2,
.dfg-app ul,
.dfg-app ol,
.dfg-app dl,
.dfg-app dd,
.dfg-app dt {
  margin: 0;
  text-align: left;
}

.dfg-app ul,
.dfg-app ol,
.dfg-app li {
  padding: 0;
  list-style: none;
}

.article .dfg-app li::before,
.thecontent .dfg-app li::before {
  content: none;
}

.dfg-app button,
.dfg-app input,
.dfg-app select {
  font: inherit;
}

.dfg-app input,
.dfg-app select {
  color: inherit;
}

.dfg-app svg {
  display: block;
  max-width: none;
  flex: none;
}

.dfg-app svg[width="16"] { width: 16px; height: 16px; }
.dfg-app svg[width="18"] { width: 18px; height: 18px; }
.dfg-app svg[width="20"] { width: 20px; height: 20px; }
.dfg-app svg[width="32"] { width: 32px; height: 32px; }

.dfg-app fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.dfg-app fieldset:disabled {
  opacity: 0.72;
}

.dfg-app .rbg-rail-group,
.dfg-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dfg-sr,
.dfg-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dfg-file {
  opacity: 0;
  pointer-events: none;
}

.dfg-app [hidden] {
  display: none !important;
}

.dfg-app #dfb-drop[hidden] {
  display: flex !important;
}

/* Hero */
.dfg-hero {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 16px;
}

.dfg-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.dfg-hero-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--dfg-blue-soft);
  color: var(--dfg-blue);
}

.article .dfg-app h1.dfg-title,
.dfg-app h1.dfg-title {
  margin: 0;
  color: var(--dfg-ink);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dfg-lede {
  margin-top: 4px;
  max-width: 62ch;
  color: var(--dfg-body);
  font-size: 1.02rem;
}

.dfg-app .dfg-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-left: auto;
}

.dfg-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dfg-perk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dfg-blue-soft);
  color: var(--dfg-blue);
}

.dfg-perks strong,
.dfg-perks span span {
  display: block;
}

.dfg-perks strong {
  color: var(--dfg-ink);
  font-size: 0.92rem;
}

.dfg-perks span span {
  color: var(--dfg-muted);
  font-size: 0.78rem;
}

/* Grid */
.dfg-grid {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(240px, 280px);
  gap: 14px;
  align-items: stretch;
}

.dfg-card {
  background: var(--dfg-card);
  border: 1px solid var(--dfg-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(23, 37, 84, 0.04);
}

.dfg-options,
.dfg-stage-card,
.dfg-side {
  min-width: 0;
}

.dfg-options,
.dfg-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article .dfg-app h2.dfg-step,
.dfg-app h2.dfg-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--dfg-ink);
  font-size: 1rem;
  font-weight: 800;
}

.dfg-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dfg-blue);
  color: #fff;
  font-size: 0.82rem;
}

.dfg-label {
  color: var(--dfg-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.dfg-hint {
  color: var(--dfg-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.dfg-select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--dfg-line);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
  color: var(--dfg-ink);
  appearance: none;
}

.dfg-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px 14px;
  border: 1.5px dashed #c5d4ee;
  border-radius: 16px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
}

.dfg-drop-ico {
  color: #93a4c3;
}

.dfg-drop-title {
  color: var(--dfg-ink);
  font-weight: 800;
}

.dfg-drop-hint {
  color: var(--dfg-muted);
  font-size: 0.78rem;
}

.dfg-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--dfg-soft);
  color: var(--dfg-ink);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.dfg-btn-block { width: 100%; }
.dfg-btn-primary { background: var(--dfg-blue); color: #fff; }
.dfg-btn-primary:hover:not(:disabled) { background: #1d4ed8; }
.dfg-btn-green { background: var(--dfg-green); color: #fff; }
.dfg-btn-green:hover:not(:disabled) { background: #15803d; }

.dfg-btn-line {
  background: #fff;
  border-color: var(--dfg-line);
  color: var(--dfg-ink);
}

.dfg-btn-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

.dfg-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dfg-app .rbg-btn-label-short { display: none; }

.dfg-app #rbg-btn-run-all { display: none; }
.dfg-app:has(#dfb-batch-list > li + li) #rbg-btn-run-all { display: inline-flex; }

.dfg-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--dfg-blue);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.dfg-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dfg-quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.dfg-app #dfb-status {
  min-height: 1.2em;
  color: var(--dfg-muted);
  font-size: 0.82rem;
}

.dfg-app #dfb-status.is-error { color: #b91c1c; }
.dfg-app #dfb-status.is-ok { color: #15803d; }
.dfg-app #dfb-status.is-loading { color: var(--dfg-blue); }

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

.dfg-mode {
  appearance: none;
  min-height: 36px;
  padding: 4px 2px;
  border: 1px solid var(--dfg-line);
  border-radius: 10px;
  background: #fff;
  color: var(--dfg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.dfg-mode.is-on {
  border-color: transparent;
  background: var(--dfg-blue-soft);
  color: var(--dfg-blue);
}

.dfg-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.dfg-app input[type="range"].dfg-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dfg-blue) var(--dfg-pct, 50%), #e5eaf2 var(--dfg-pct, 50%));
  cursor: pointer;
}

.dfg-app input[type="range"].dfg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--dfg-blue);
  box-shadow: 0 0 0 1px #c9d8f5;
}

.dfg-app input[type="range"].dfg-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e5eaf2;
}

.dfg-app input[type="range"].dfg-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--dfg-blue);
}

.dfg-app input[type="range"].dfg-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--dfg-blue);
  box-shadow: 0 0 0 1px #c9d8f5;
}

/* Run buttons stay in view while the options column scrolls past */
.dfg-action-row {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 -16px;
  padding: 10px 16px;
  background: var(--dfg-card);
}

.dfg-slider-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid var(--dfg-line);
  border-radius: 10px;
  background: var(--dfg-soft);
  color: var(--dfg-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.dfg-advanced {
  border-top: 1px solid var(--dfg-line);
  padding-top: 8px;
}

.dfg-advanced summary {
  color: var(--dfg-ink);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.dfg-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* Stage */
.dfg-stage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 520px;
}

.dfg-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.dfg-stage[hidden] { display: none !important; }

.dfg-stage-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.dfg-tab,
.dfg-app .istudio-view-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dfg-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.dfg-tab.is-static,
.dfg-app .istudio-view-btn.is-active {
  background: var(--dfg-blue-soft);
  color: var(--dfg-blue);
}

.dfg-view-host:has(.istudio-view-toggle:not([hidden])) ~ .dfg-tab.is-static {
  display: none;
}

.dfg-app .istudio-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dfg-app .istudio-view-toggle[hidden] { display: none !important; }
.dfg-app .istudio-view-btn[data-view="split"] { order: 0; }
.dfg-app .istudio-view-btn[data-view="slider"] { order: 1; }
.dfg-app .istudio-view-btn svg { display: none; }

.dfg-empty,
.dfg-panes {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.dfg-app:not(.is-empty) .dfg-empty { display: none; }

.dfg-panes:has(#dfb-result-pane:not([hidden])) .dfg-result-ph { display: none; }

.dfg-app .rbg-compare.clr-compare--dual { display: none !important; }

.dfg-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--dfg-line);
  border-radius: 14px;
  background: #fff;
}

.dfg-pane-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dfg-pane-top strong {
  color: var(--dfg-ink);
  font-size: 0.88rem;
}

.dfg-badge {
  max-width: 58%;
  color: var(--dfg-blue);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.dfg-badge:empty { display: none; }

.dfg-frame,
.dfg-app .clr-ba-frame {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f4f6fb;
  background-image:
    linear-gradient(45deg, #e6ebf4 25%, transparent 25%),
    linear-gradient(-45deg, #e6ebf4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6ebf4 75%),
    linear-gradient(-45deg, transparent 75%, #e6ebf4 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.dfg-frame img#dfb-preview,
.dfg-frame img#dfb-result {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}

.dfg-app .rbg-result-wrap.is-posing > #dfb-result {
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dfg-app .rbg-result-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dfg-pane-foot {
  display: flex;
  justify-content: center;
}

.dfg-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--dfg-line);
  border-radius: 10px;
  background: #fff;
}

.dfg-zoom button {
  appearance: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--dfg-soft);
  color: var(--dfg-ink);
  font-weight: 800;
  cursor: pointer;
}

.dfg-zoom span {
  min-width: 46px;
  color: var(--dfg-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.dfg-app .clr-ba {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  margin: 0;
  user-select: none;
  touch-action: none;
}

.dfg-app .clr-ba[hidden] { display: none !important; }

.dfg-app .clr-ba-frame {
  display: block;
  width: 100%;
  aspect-ratio: var(--ba-ar, 1 / 1);
  max-height: min(62vh, 560px);
  container-type: inline-size;
}

.dfg-app .clr-ba--fit .clr-ba-frame { max-height: none; }

.dfg-app .clr-ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.dfg-app .clr-ba--fit .clr-ba-img { object-fit: fill; }

.dfg-app .clr-ba-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #fff;
}

.dfg-app .clr-ba-clip .clr-ba-img--gray {
  width: 100cqi;
  max-width: none;
  left: 0;
  height: 100%;
}

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

.dfg-app .clr-ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.dfg-app .clr-ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--dfg-line);
  border-radius: 50%;
  background: #fff;
  color: var(--dfg-ink);
  font-size: 14px;
  transform: translate(-50%, -50%);
}

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

.dfg-app .clr-ba-labels {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  color: var(--dfg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dfg-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf2;
}

.dfg-progress-fill {
  height: 100%;
  background: var(--dfg-blue);
}

.dfg-progress-text {
  margin-top: 6px;
  color: var(--dfg-muted);
  font-size: 0.8rem;
}

.dfg-app .dfg-batch:has(.aib-list > :only-child) { display: none !important; }

.dfg-app .aib-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dfg-app .aib-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--dfg-soft);
  cursor: pointer;
}

.dfg-app .aib-item.is-active { outline: 2px solid #b9d0ff; }

.dfg-app .aib-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.dfg-app .aib-name {
  overflow: hidden;
  color: var(--dfg-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dfg-app .aib-meta,
.dfg-app .aib-empty {
  color: var(--dfg-muted);
  font-size: 0.75rem;
}

.dfg-app .rbg-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dfg-app .rbg-next-label {
  color: var(--dfg-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.dfg-app .rbg-next-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--dfg-blue-soft);
  color: var(--dfg-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.dfg-dl { display: flex; flex-direction: column; gap: 8px; }

.dfg-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--dfg-ink);
  font-size: 1rem;
  font-weight: 800;
}

.dfg-title-ico {
  display: inline-flex;
  color: var(--dfg-blue);
}

.dfg-info { display: flex; flex-direction: column; gap: 8px; }

.dfg-info div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dfg-line);
}

.dfg-info dt { color: var(--dfg-muted); font-size: 0.84rem; }
.dfg-info dd { color: var(--dfg-ink); font-size: 0.84rem; font-weight: 800; text-align: right; }

.dfg-tips-card {
  background: #fff8e6;
  border-color: #f3e2b0;
}

.dfg-tips { display: flex; flex-direction: column; gap: 8px; }

.dfg-tips li {
  display: flex;
  gap: 8px;
  color: var(--dfg-body);
  font-size: 0.86rem;
}

.dfg-tips li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: #f5c518 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.6 8.4l1.1-1.1 1.7 1.7 4-4 1.1 1.1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.article .dfg-app .dfg-tips li::before,
.thecontent .dfg-app .dfg-tips li::before {
  content: "";
}

.dfg-app .itool-hist-host { margin-top: 14px; }
.dfg-app .itool-hist-host[hidden] { display: none !important; }

@media (max-width: 1180px) {
  .dfg-grid { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); }
  .dfg-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  body.page-desfocar-fundo-foto-online.is-fullscreen .fs-workspace.dfg-fs { padding: 12px; }
  .dfg-hero { flex-direction: column; align-items: flex-start; }
  .dfg-perks { margin-left: 0; }
  .dfg-grid,
  .dfg-side,
  .dfg-empty,
  .dfg-panes { grid-template-columns: 1fr; }
  .dfg-action-row { position: static; margin: 0; padding: 0; }
  .dfg-stage-card { height: auto; min-height: 0; }
  .dfg-stage,
  .dfg-empty,
  .dfg-panes,
  .dfg-frame { flex: none; }
  .dfg-frame { min-height: 200px; }
}

html[data-theme="dark"] body.page-desfocar-fundo-foto-online.is-fullscreen .fs-workspace.dfg-fs,
html.dark body.page-desfocar-fundo-foto-online.is-fullscreen .fs-workspace.dfg-fs {
  background: transparent;
}

html[data-theme="dark"] .dfg-app,
html.dark .dfg-app {
  --dfg-ink: var(--dica-ink, #e8eaf0);
  --dfg-body: var(--dica-body, #c5cad6);
  --dfg-muted: var(--dica-muted, #9aa3b5);
  --dfg-card: var(--dica-surface, #171b22);
  --dfg-line: var(--dica-border, #2c3444);
  --dfg-soft: #12161d;
  --dfg-blue-soft: rgba(47, 111, 237, 0.16);
}

html[data-theme="dark"] .dfg-app .dfg-btn-primary,
html.dark .dfg-app .dfg-btn-primary,
html[data-theme="dark"] .dfg-app .dfg-btn-green,
html.dark .dfg-app .dfg-btn-green,
html[data-theme="dark"] .dfg-app .dfg-step-n,
html.dark .dfg-app .dfg-step-n {
  color: #fff;
}

html[data-theme="dark"] .dfg-select,
html.dark .dfg-select,
html[data-theme="dark"] .dfg-btn-line,
html.dark .dfg-btn-line,
html[data-theme="dark"] .dfg-mode,
html.dark .dfg-mode,
html[data-theme="dark"] .dfg-pane,
html.dark .dfg-pane,
html[data-theme="dark"] .dfg-zoom,
html.dark .dfg-zoom {
  background: var(--dfg-card);
  color: var(--dfg-ink);
}

html[data-theme="dark"] .dfg-drop,
html.dark .dfg-drop {
  background: rgba(47, 111, 237, 0.08);
  border-color: #34508a;
}

html[data-theme="dark"] .dfg-tips-card,
html.dark .dfg-tips-card {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.28);
}

html[data-theme="dark"] .dfg-app input[type="range"].dfg-range::-moz-range-track,
html.dark .dfg-app input[type="range"].dfg-range::-moz-range-track {
  background: #2c3444;
}

.dfg-modes-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.article .dfg-app img,
.dfg-app img { margin: 0; }

.dfg-app .dfg-drop p { text-align: center; }

.dfg-app .dfg-drop.is-dragover {
  border-color: var(--dfg-blue);
  background: var(--dfg-blue-soft);
}

.dfg-frame,
.dfg-app .clr-ba-frame {
  background-image: none;
  background-color: #f3f6fb;
}

.dfg-btn-green > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.dfg-grid { align-items: start; }

.article .dfg-app h2.dfg-card-title,
.dfg-app h2.dfg-card-title {
  font-size: 1rem;
  line-height: 1.25;
}

.dfg-stage-card { height: auto; min-height: 0; }
.dfg-stage,
.dfg-empty,
.dfg-panes { flex: none; }
.dfg-pane { height: auto; }
.dfg-frame,
.dfg-app .clr-ba-frame {
  flex: none;
  height: 380px;
  min-height: 280px;
}

.dfg-pane-top { align-items: center; }
.dfg-badge {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 800px) {
  .dfg-frame,
  .dfg-app .clr-ba-frame { height: 220px; min-height: 200px; }
}

/* Mockup pass: icon chips, pill badges, pane footers, download menu, info icons */
.dfg-app h1.dfg-title { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.dfg-lede { max-width: none; font-size: 1.05rem; }
.dfg-hero-ico { width: 72px; height: 72px; border-radius: 20px; }

.dfg-mode {
  min-height: 42px;
  padding: 6px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.dfg-mode-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dfg-modes:not(.dfg-modes-2) { grid-template-columns: 1.9fr 1fr 1.2fr; }

.dfg-mode.is-on {
  border-color: #b9d0ff;
  background: var(--dfg-blue-soft);
}

.dfg-btn-primary#dfb-btn-run {
  min-height: 50px;
  font-size: 1.02rem;
  border-radius: 12px;
}

.dfg-pane-top strong { font-size: 0.95rem; }
.dfg-pane-top strong span { font-weight: 700; }

.dfg-badge {
  max-width: 62%;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--dfg-soft);
  color: var(--dfg-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.dfg-pane-foot {
  justify-content: flex-start;
  gap: 8px;
}

.dfg-zoom {
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.dfg-zoom button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--dfg-line);
  background: #fff;
  font-size: 1rem;
}

.dfg-zoom span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  border: 1px solid var(--dfg-line);
  border-radius: 8px;
  background: #fff;
}

.dfg-full {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--dfg-line);
  border-radius: 8px;
  background: #fff;
  color: var(--dfg-ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.dfg-full:hover,
.dfg-zoom button:hover { background: var(--dfg-blue-soft); }

.dfg-frame,
.dfg-app .clr-ba-frame { height: 440px; }

.dfg-frame:fullscreen { height: 100%; background: #0b1020; }

.dfg-btn-outline {
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  border: 1.5px solid #9bbcf5;
  background: #fff;
  color: var(--dfg-blue);
}

.dfg-btn-outline:hover:not(:disabled) { background: var(--dfg-blue-soft); }
.dfg-btn-outline > span { flex: 1; text-align: left; }
.dfg-btn-outline .dfg-chev { margin-left: auto; }

.dfg-dl .dfg-btn-green {
  justify-content: flex-start;
  min-height: 62px;
  padding: 0 18px;
  gap: 14px;
}

.dfg-dl .dfg-btn-green svg { width: 22px; height: 22px; }

.dfg-menu { position: relative; }

.dfg-menu-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--dfg-line);
  border-radius: 12px;
  background: var(--dfg-card);
  box-shadow: 0 12px 28px rgba(23, 37, 84, 0.16);
}

.dfg-menu-list[hidden] { display: none !important; }

.dfg-menu-list button {
  appearance: none;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dfg-ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.dfg-menu-list button:hover { background: var(--dfg-blue-soft); }
.dfg-menu-list small { color: var(--dfg-muted); font-size: 0.72rem; font-weight: 600; }

.dfg-title-ico-fill,
.dfg-title-ico-fill svg { color: var(--dfg-blue); }
.dfg-title-ico-amber { color: #f5b800; }

.dfg-info dt {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dfg-info dt svg { color: #6b7a99; }

.dfg-info div:last-child { border-bottom: 0; padding-bottom: 0; }

.dfg-tips li { font-size: 0.84rem; }

.dfg-advanced summary { padding: 4px 0; }

@media (max-width: 800px) {
  .dfg-frame,
  .dfg-app .clr-ba-frame { height: 260px; }
  .dfg-modes:not(.dfg-modes-2) { grid-template-columns: 1fr 1fr 1fr; }
}

html[data-theme="dark"] .dfg-badge,
html.dark .dfg-badge,
html[data-theme="dark"] .dfg-zoom button,
html.dark .dfg-zoom button,
html[data-theme="dark"] .dfg-zoom span,
html.dark .dfg-zoom span,
html[data-theme="dark"] .dfg-full,
html.dark .dfg-full,
html[data-theme="dark"] .dfg-btn-outline,
html.dark .dfg-btn-outline {
  background: var(--dfg-card);
  color: var(--dfg-ink);
}

html[data-theme="dark"] .dfg-badge,
html.dark .dfg-badge { background: var(--dfg-soft); color: var(--dfg-muted); }
html[data-theme="dark"] .dfg-btn-outline,
html.dark .dfg-btn-outline { color: #8fb4ff; }

.dfg-app h2.dfg-card-title { font-size: 1.12rem; }
.dfg-hero-main { flex: 1 1 auto; }
.dfg-app .dfg-perks { flex: none; flex-wrap: nowrap; gap: 16px 24px; }

@media (max-width: 1100px) {
  .dfg-app .dfg-perks { flex-wrap: wrap; }
}


/* Desfocar fundo specifics */
.dfg-hero-ico { background: #fff1e6; color: #f97316; }
.dfg-app svg[width="34"] { width: 34px; height: 34px; }
.dfg-label-row { display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; }
.dfg-val-blue { color: var(--dfg-blue); font-size: 0.86rem; font-weight: 800; }
.dfg-pane-top { flex-wrap: wrap; align-content: flex-start; min-height: 50px; }
.dfg-pane-top strong { flex: 1 1 auto; }
.dfg-badge { max-width: 100%; }
