/* ==========================================================================
   Section: produto (#produto) — product panel crossfading 3 code-built screens
   (n8n flow canvas · results dashboard · integrations) + auto-advancing tabs.
   Prefix: pd-   Default (no JS / reduced motion) = screen A fully drawn.
   ========================================================================== */

.section--produto {
  --pd-h: 664px;
  --pd-top: 50px;
  overflow-x: clip;
}
.section--produto .pd-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---- Shell / panel --------------------------------------------------------- */
.section--produto .pd-shell { position: relative; }
.section--produto .pd-glow { z-index: 0; }
.section--produto .pd-glow--l { --glow-w: 640px; --glow-h: 420px; --glow-opacity: .45; left: -170px; bottom: -190px; }
.section--produto .pd-glow--r { --glow-w: 640px; --glow-h: 420px; --glow-opacity: .45; right: -170px; bottom: -190px; }
.section--produto .pd-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-family: var(--font-body);
  color: var(--text);
}
.section--produto .pd-panel svg { width: 100%; height: 100%; }

/* top bar */
.section--produto .pd-top {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--pd-top);
  flex: none;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .012);
  font-size: 13.5px;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.section--produto .pd-top__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.section--produto .pd-top__sep { color: var(--text-4); }
.section--produto .pd-top__title { display: grid; min-width: 0; }
.section--produto .pd-top__title > span { grid-area: 1 / 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; transition: opacity .45s var(--ease-out), visibility .45s; }
.section--produto .pd-top__title em { font-style: normal; font-weight: 400; color: var(--text-3); }
.section--produto .pd-swap > span:not(.is-on) { visibility: hidden; opacity: 0; }
.section--produto .pd-top__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.section--produto .pd-tag-ex {
  font-size: 11px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(255, 255, 255, .22);
  color: var(--text-3);
}
.section--produto .pd-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: rgba(52, 211, 153, .08);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .22);
  font-size: 11.5px;
  font-weight: 500;
  color: #9DF0CE;
}
.section--produto .pd-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pd-pulse 2s ease-out infinite;
}
@keyframes pd-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}

/* body + rail */
.section--produto .pd-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  height: calc(var(--pd-h) - var(--pd-top));
}
.section--produto .pd-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.section--produto .pd-rail__i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-3);
  transition: color .4s var(--ease-out), background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.section--produto .pd-rail__i svg { width: 19px; height: 19px; }
.section--produto .pd-rail__i.is-on { color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.section--produto .pd-rail__i--end { margin-top: auto; }

/* stacked screens (same grid cell → panel height = tallest screen) */
.section--produto .pd-screens { display: grid; min-width: 0; min-height: 0; }
.section--produto .pd-screen {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  visibility: hidden;
  opacity: 0;
}
.section--produto .pd-screen.is-active { visibility: visible; opacity: 1; }
.section--produto .pd-h { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }

/* ---- A · Flow canvas ------------------------------------------------------------ */
.section--produto .pd-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  user-select: none;
  -webkit-user-select: none;
}
.section--produto .pd-flow__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  flex: none;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
  white-space: nowrap;
}
.section--produto .pd-flow__name { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.section--produto .pd-flow__name .icon { --size: 18px; color: #EA4B71; }
.section--produto .pd-flow__on { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.section--produto .pd-switch { position: relative; width: 28px; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.section--produto .pd-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.section--produto .pd-switch.is-on { background: var(--orange); box-shadow: 0 0 12px -2px rgba(218, 78, 36, .8); }
.section--produto .pd-switch.is-on::after { transform: translateX(12px); }
.section--produto .pd-flow__meta { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--text-3); }
.section--produto .pd-ok {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .15);
  color: var(--success);
}
.section--produto .pd-ok svg { width: 10px !important; height: 10px !important; }
.section--produto .pd-flow__run { pointer-events: none; }
.section--produto .pd-flow__run .btn__icon { width: 14px; height: 14px; color: var(--orange-bright); }

.section--produto .pd-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(255, 255, 255, .025), transparent 70%),
    radial-gradient(circle at center, rgba(255, 255, 255, .085) 1px, transparent 1.3px) 0 0 / 22px 22px;
}
.section--produto .pd-canvas::after {  /* edge vignette */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 110% at 50% 50%, transparent 60%, rgba(5, 5, 5, .9) 100%);
}
.section--produto .pd-canvas__inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 1100px;
  height: 470px;
  transform-origin: 0 0;
}
.section--produto .pd-edges { position: absolute; inset: 0; width: 100% !important; height: 100% !important; overflow: visible; }
.section--produto .pd-nodes { position: absolute; inset: 0; }
.section--produto .pd-flow__fallback { display: none; }
html.no-js .section--produto .pd-flow__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  counter-reset: pd;
}
html.no-js .section--produto .pd-flow__fallback li {
  padding: 10px 14px;
  border-radius: 12px;
  background: #141416;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 600;
}

/* edges */
.section--produto .pd-edge__base { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 2; }
.section--produto .pd-edge__flow { fill: none; stroke: url(#pd-g-flow); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.section--produto [data-layout="m"] .pd-edge__flow { stroke: url(#pd-g-flow-v); }
.section--produto .pd-edge__end { fill: #2a2a2e; stroke: rgba(255, 255, 255, .4); stroke-width: 1.5; }

/* nodes (zero-size anchor at the node centre) */
.section--produto .pd-node { --ns: 64px; position: absolute; width: 0; height: 0; }
[data-layout="m"] .pd-node { --ns: 46px; }
.section--produto .pd-node__box {
  position: absolute;
  left: calc(var(--ns) / -2);
  top: calc(var(--ns) / -2);
  display: grid;
  place-items: center;
  width: var(--ns);
  height: var(--ns);
  border-radius: calc(var(--ns) * .22);
  background: linear-gradient(180deg, #1b1b1e 0%, #0f0f11 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 14px 26px -14px rgba(0, 0, 0, .95);
  color: #fff;
}
.section--produto .pd-node__box > .icon,
.section--produto .pd-node__box > svg { --size: calc(var(--ns) * .42); width: calc(var(--ns) * .42) !important; height: calc(var(--ns) * .42) !important; }
.section--produto .pd-node--trigger .pd-node__box { border-radius: calc(var(--ns) / 2) calc(var(--ns) * .22) calc(var(--ns) * .22) calc(var(--ns) / 2); }
.section--produto .pd-node--trigger .pd-node__box > svg { color: #ffd2b8; }
.section--produto .pd-node--ai .pd-node__box {
  background: linear-gradient(160deg, #36160a 0%, #141012 55%, #0a1824 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 137, 24, .5),
    inset 0 1px 0 rgba(255, 200, 160, .2),
    0 0 26px -6px rgba(218, 78, 36, .65),
    0 14px 26px -14px rgba(0, 0, 0, .95);
}
.section--produto .pd-node--if .pd-node__box > svg { color: #9ED8FF; }
.section--produto .pd-node__ring {
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--ns) * .22 + 5px);
  box-shadow: 0 0 0 1.5px rgba(255, 170, 110, .9), 0 0 22px rgba(218, 78, 36, .75);
  opacity: 0;
  pointer-events: none;
}
.section--produto .pd-node--trigger .pd-node__ring { border-radius: calc(var(--ns) / 2 + 5px) calc(var(--ns) * .22 + 5px) calc(var(--ns) * .22 + 5px) calc(var(--ns) / 2 + 5px); }
.section--produto .pd-node__ok {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  color: #04160e;
  box-shadow: 0 0 0 3px #050505;
}
.section--produto .pd-node__ok svg { width: 11px !important; height: 11px !important; }
[data-layout="m"] .pd-node__ok { width: 15px; height: 15px; top: -6px; right: -6px; }
[data-layout="m"] .pd-node__ok svg { width: 9px !important; height: 9px !important; }
.section--produto .pd-port {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #26262a;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38);
}
.section--produto .pd-port--in { left: -5px; top: calc(50% - 4.5px); border-radius: 2px; width: 6px; left: -3.5px; }
.section--produto .pd-port--out { right: -5px; top: calc(50% - 4.5px); }
.section--produto .pd-node--if .pd-port--o1 { top: calc(50% - 16.5px); }
.section--produto .pd-node--if .pd-port--o2 { top: calc(50% + 7.5px); }
.section--produto .pd-node--trigger .pd-port--in { display: none; }
[data-layout="m"] .pd-port--in { left: calc(50% - 4.5px); top: -3.5px; width: 9px; height: 6px; }
[data-layout="m"] .pd-port--out { right: auto; left: calc(50% - 4.5px); top: auto; bottom: -5px; }
[data-layout="m"] .pd-node--if .pd-port--o1 { top: auto; left: calc(50% - 13.5px); }
[data-layout="m"] .pd-node--if .pd-port--o2 { top: auto; left: calc(50% + 4.5px); }

.section--produto .pd-node__label {
  position: absolute;
  left: -78px;
  top: calc(var(--ns) / 2 + 11px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 156px;
  text-align: center;
  pointer-events: none;
}
.section--produto .pd-node__label b { font-size: 13px; font-weight: 600; line-height: 16px; color: #fff; }
.section--produto .pd-node__label em { font-size: 11.5px; font-style: normal; line-height: 14px; color: var(--text-3); }
[data-layout="m"] .pd-node[data-lab="r"] .pd-node__label { left: calc(var(--ns) / 2 + 12px); top: 50%; width: 170px; transform: translateY(-50%); text-align: left; }
[data-layout="m"] .pd-node[data-lab="b"] .pd-node__label { left: -50px; width: 100px; top: calc(var(--ns) / 2 + 8px); }
[data-layout="m"] .pd-node__label b { font-size: 12.5px; line-height: 15px; }
[data-layout="m"] .pd-node__label em { font-size: 11px; }

.section--produto .pd-count {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #0e0e10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 11px;
  line-height: 14px;
  color: var(--text-3);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  font-variant-numeric: tabular-nums;
}
.section--produto .pd-count b { font-weight: 600; color: #fff; }
[data-layout="m"] .pd-count { transform: translate(0, -50%); }
[data-layout="m"] .pd-count--branch { display: none; }
.section--produto .pd-branch {
  position: absolute;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  transform: translate(-50%, -50%);
  color: var(--orange-bright);
}
.section--produto .pd-branch--no { color: var(--text-3); }
.section--produto .pd-score {
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 1px rgba(218, 78, 36, .4), 0 0 18px -6px rgba(218, 78, 36, .6);
}
.section--produto .pd-score.score--weak { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.section--produto .pd-score b { font-weight: 600; min-width: 14px; }
.section--produto .pd-drop {
  position: absolute;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}

.section--produto .pd-zoom {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}
.section--produto .pd-zoom span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0c0c0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  color: var(--text-3);
}
.section--produto .pd-zoom svg { width: 15px !important; height: 15px !important; }

/* ---- B · Results ------------------------------------------------------------------- */
.section--produto .pd-res {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 20px 22px 22px;
  user-select: none;
  -webkit-user-select: none;
}
.section--produto .pd-res__head,
.section--produto .pd-int__head { display: flex; align-items: center; gap: 12px; flex: none; }
.section--produto .pd-seg {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border-radius: 9px;
  background: #0c0c0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  font-size: 12px;
  color: var(--text-3);
}
.section--produto .pd-seg span { padding: 5px 10px; border-radius: 6px; }
.section--produto .pd-seg .is-on { background: rgba(255, 255, 255, .09); color: #fff; }
.section--produto .pd-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: var(--text-2);
}
.section--produto .pd-btn-ghost svg { width: 14px !important; height: 14px !important; }
.section--produto .pd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: none; }
.section--produto .pd-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 13px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0c0c0d, #080809);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.section--produto .pd-kpi__k { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.section--produto .pd-kpi__k em { font-style: normal; color: var(--text-4); }
.section--produto .pd-kpi__v { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 36px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.section--produto .pd-kpi__d { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #6EE7B7; white-space: nowrap; }
.section--produto .pd-kpi__d svg { width: 12px !important; height: 12px !important; }
.section--produto .pd-kpi--hot {
  background: linear-gradient(160deg, rgba(218, 78, 36, .16), rgba(218, 78, 36, .03) 60%), #0a0706;
  box-shadow: inset 0 0 0 1px rgba(218, 78, 36, .35), 0 0 40px -18px rgba(218, 78, 36, .7);
}
.section--produto .pd-kpi--hot .pd-kpi__d { color: #FFB08D; }

.section--produto .pd-res__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.section--produto .pd-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b0b0c, #070708);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.section--produto .pd-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.section--produto .pd-box__t { font-size: 13px; font-weight: 600; }
.section--produto .pd-box__s { font-size: 11.5px; color: var(--text-4); }
.section--produto .pd-chart { grid-row: 1 / 3; }
.section--produto .pd-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-3); }
.section--produto .pd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.section--produto .pd-legend i { width: 10px; height: 3px; border-radius: 2px; }
.section--produto .pd-legend__o { background: var(--orange); }
.section--produto .pd-legend__b { background: #3DB2FF; }
.section--produto .pd-chart__plot { position: relative; flex: 1; min-height: 120px; }
.section--produto .pd-chart__svg { position: absolute; inset: 0; overflow: visible; }
.section--produto .pd-chart__svg .pd-grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.section--produto .pd-chart__svg .pd-area { fill: url(#pd-g-area); }
.section--produto .pd-chart__svg .pd-line { fill: none; stroke: url(#pd-g-line); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.section--produto .pd-chart__svg .pd-line2 { fill: none; stroke: #3DB2FF; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .9; }
.section--produto .pd-chart__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 137, 24, .45), 0 0 16px rgba(255, 137, 24, .9);
}
.section--produto .pd-chart__tip {
  position: absolute;
  right: 0;
  top: -4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #151517;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 20px -10px rgba(0, 0, 0, .9);
  font-size: 11.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.section--produto .pd-chart__tip b { color: #fff; font-weight: 600; }
.section--produto .pd-chart__x { display: flex; justify-content: space-between; flex: none; font-size: 11px; color: var(--text-4); }

.section--produto .pd-funnel__rows,
.section--produto .pd-top5__rows { display: flex; flex-direction: column; justify-content: space-around; flex: 1; min-height: 0; gap: 6px; }
.section--produto .pd-frow { display: grid; grid-template-columns: 82px minmax(0, 1fr) 42px; align-items: center; gap: 10px; font-size: 12px; line-height: 16px; }
.section--produto .pd-frow__k { color: var(--text-2); }
.section--produto .pd-frow__v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.section--produto .pd-frow__bar,
.section--produto .pd-top5__bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.section--produto .pd-frow__bar i,
.section--produto .pd-top5__bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: max(6px, calc(var(--w) * 100%));
  border-radius: 4px;
  transform-origin: 0 50%;
}
.section--produto .pd-frow__bar i { background: linear-gradient(90deg, #0069A6, #0098F3 45%, #DA4E24 100%); background-size: calc(100% / var(--w)) 100%; }
.section--produto .pd-top5__bar i { background: linear-gradient(90deg, var(--orange-deep), var(--orange) 55%, var(--orange-bright)); box-shadow: 0 0 12px -2px rgba(218, 78, 36, .6); }
.section--produto .pd-top5__rows li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) minmax(40px, 90px) 30px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
}
.section--produto .pd-top5__n { color: var(--text-4); font-variant-numeric: tabular-nums; }
.section--produto .pd-top5__k { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section--produto .pd-top5__rows b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- C · Integrations --------------------------------------------------------------- */
.section--produto .pd-int {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 20px 22px 22px;
}
.section--produto .pd-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  height: 32px;
  margin-left: auto;
  padding: 0 10px;
  border-radius: 8px;
  background: #0c0c0d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: 12.5px;
  color: var(--text-4);
}
.section--produto .pd-search svg { width: 14px !important; height: 14px !important; }
.section--produto .pd-chips { display: flex; gap: 8px; flex: none; }
.section--produto .pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-8);
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.section--produto .pd-chip b { font-size: 11px; font-weight: 600; color: var(--text-4); }
.section--produto .pd-chip:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.section--produto .pd-chip.is-on { color: #fff; background: rgba(218, 78, 36, .12); box-shadow: inset 0 0 0 1px rgba(218, 78, 36, .45); }
.section--produto .pd-chip.is-on b { color: #FFB08D; }
.section--produto .pd-int__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}
.section--produto .pd-app {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 14px 14px 13px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0c0c0d, #080809);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.section--produto .pd-app.is-out { display: none; }
.section--produto .pd-app__ic {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(160deg, #1b1b1e, #0e0e10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: #fff;
}
.section--produto .pd-app__ic .icon { --size: 21px; }
.section--produto .pd-app:not(.is-on) .pd-app__ic { color: var(--text-3); }
.section--produto .pd-app__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.section--produto .pd-app__txt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section--produto .pd-app__txt em { font-size: 11.5px; font-style: normal; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section--produto .pd-toggle {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
}
.section--produto .pd-toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfcfcf;
}
.section--produto .pd-app.is-on .pd-toggle { background: var(--orange); box-shadow: 0 0 12px -3px rgba(218, 78, 36, .8); }
.section--produto .pd-app.is-on .pd-toggle i { background: #fff; left: 17px; }
.section--produto .pd-app__st {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11.5px;
  color: var(--text-4);
}
.section--produto .pd-app__st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.section--produto .pd-app.is-on .pd-app__st { color: #9DF0CE; }
.section--produto .pd-app.is-on .pd-app__st::before { background: var(--success); box-shadow: 0 0 8px rgba(52, 211, 153, .7); }

/* ---- Tabs under the panel -------------------------------------------------------------- */
.section--produto .pd-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.section--produto .pd-tab {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  text-align: left;
  color: var(--text);
  opacity: .72;               /* inactive copy stays readable (≈ 5:1 on black) */
  transition: opacity .45s var(--ease-out);
}
.section--produto .pd-tab:hover { opacity: .88; }
.section--produto .pd-tab.is-active { opacity: 1; }
.section--produto .pd-tab:focus-visible { border-radius: 8px; }
.section--produto .pd-tab__bar {
  position: relative;
  display: block;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(218, 78, 36, .2);
  overflow: hidden;
}
.section--produto .pd-tab__bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(218, 78, 36, .8);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.section--produto .pd-tab.is-active .pd-tab__bar i { transform: scaleX(1); }
.section--produto .pd-tab__txt { font-size: 16px; line-height: 26px; color: var(--text-2); }
.section--produto .pd-tab__txt b { font-weight: 600; color: #fff; }

/* ---- Tablet 810–1199 ---------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .section--produto { --pd-h: 600px; }
  .section--produto .pd-top__title em,
  .section--produto .pd-flow__meta { display: none; }
  .section--produto .pd-flow__on { margin-right: auto; }
  .section--produto .pd-res, .section--produto .pd-int { padding: 16px 16px 18px; }
  .section--produto .pd-kpi { padding: 12px 13px; }
  .section--produto .pd-kpi__v { font-size: 26px; line-height: 32px; }
  .section--produto .pd-kpi__d { white-space: normal; }
  .section--produto .pd-int__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section--produto .pd-app { padding: 12px; }
  .section--produto .pd-search { width: 200px; }
  .section--produto .pd-tabs { gap: 22px; }
  .section--produto .pd-tab__txt { font-size: 15px; line-height: 24px; }
}
@media (min-width: 810px) and (max-width: 999px) {
  .section--produto .pd-res__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .section--produto .pd-kpi__d { display: none; }
  .section--produto .pd-app__st { display: none; }
  .section--produto .pd-app { row-gap: 0; }
}

/* ---- Mobile <= 809 ------------------------------------------------------------------------- */
@media (max-width: 809px) {
  .section--produto { --pd-top: 46px; }
  .section--produto .pd-glow--l, .section--produto .pd-glow--r { --glow-w: 320px; --glow-h: 280px; bottom: -120px; }
  .section--produto .pd-glow--l { left: -110px; }
  .section--produto .pd-glow--r { right: -110px; }
  .section--produto .pd-top { padding: 0 12px; gap: 8px; font-size: 13px; }
  .section--produto .pd-top__brand { display: none; }
  .section--produto .pd-top__sep { display: none; }
  .section--produto .pd-live { display: none; }
  .section--produto .pd-tag-ex { font-size: 10.5px; padding: 5px 8px; }
  .section--produto .pd-body { grid-template-columns: minmax(0, 1fr); height: auto; }
  .section--produto .pd-rail { display: none; }
  .section--produto .pd-flow__bar { height: 50px; padding: 0 12px; gap: 10px; }
  .section--produto .pd-flow__name { font-size: 12.5px; }
  .section--produto .pd-flow__on { display: none; }
  .section--produto .pd-flow__run { margin-left: auto; --btn-h: 34px; --btn-px: 10px; }
  .section--produto .pd-flow__run .btn__label { display: none; }
  .section--produto .pd-flow__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .section--produto .pd-canvas { flex: 1 0 auto; min-height: 560px; }
  .section--produto .pd-zoom { display: none; }
  .section--produto .pd-res, .section--produto .pd-int { padding: 14px 12px 16px; gap: 12px; }
  .section--produto .pd-btn-ghost { display: none; }
  .section--produto .pd-seg { font-size: 11.5px; }
  .section--produto .pd-seg span { padding: 4px 8px; }
  .section--produto .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .section--produto .pd-kpi { padding: 11px 12px; }
  .section--produto .pd-kpi__k { font-size: 11.5px; line-height: 16px; min-height: 32px; white-space: normal; }
  .section--produto .pd-kpi__k em { display: none; }
  .section--produto .pd-kpi__v { font-size: 24px; line-height: 30px; }
  .section--produto .pd-kpi__d { display: none; }
  .section--produto .pd-res__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .section--produto .pd-chart { grid-row: auto; }
  .section--produto .pd-chart__plot { min-height: 130px; }
  .section--produto .pd-legend { display: none; }
  .section--produto .pd-funnel { display: none; }
  .section--produto .pd-top5__rows { gap: 10px; }
  .section--produto .pd-top5__rows li { grid-template-columns: 12px minmax(0, 1fr) 64px 28px; gap: 8px; }
  .section--produto .pd-search { display: none; }
  .section--produto .pd-chips {
    margin-inline: -12px;
    padding: 0 12px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .section--produto .pd-chips::-webkit-scrollbar { display: none; }
  .section--produto .pd-int__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .section--produto .pd-app { grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 9px; padding: 10px 10px 11px; row-gap: 9px; }
  .section--produto .pd-app__ic { grid-row: 1; grid-column: 1; }
  .section--produto .pd-toggle { grid-row: 1; grid-column: 3; }
  .section--produto .pd-app__txt { grid-row: 2; grid-column: 1 / -1; }
  .section--produto .pd-app__ic { width: 32px; height: 32px; border-radius: 9px; }
  .section--produto .pd-app__ic .icon { --size: 17px; }
  .section--produto .pd-app__txt b { font-size: 12.5px; }
  .section--produto .pd-app__txt em, .section--produto .pd-app__st { display: none; }
  .section--produto .pd-toggle { width: 28px; height: 16px; }
  .section--produto .pd-toggle i { width: 10px; height: 10px; }
  .section--produto .pd-app.is-on .pd-toggle i { left: 15px; }

  .section--produto .pd-tabs { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .section--produto .pd-tab { gap: 12px; }
  .section--produto .pd-tab__txt { font-size: 15px; line-height: 23px; }
}
