/* Poster Lab — seção da home (depois de Projetos) + editor de cartazes.
   Tudo fica dentro de .plab-section / .plab: nenhuma regra global, e os
   controles do editor têm reset próprio (o CSS do site não vaza para dentro).
   Direção de arte: a imagem aprovada do kit (editor escuro, prancheta marfim,
   inspetor à direita, vinho nos destaques), com tokens do Design System. */

/* ---------------------------------------------
   Seção
   --------------------------------------------- */
.plab-section { position: relative; background: transparent; }
@media (min-width: 901px) {
  .page-home .plab-section > .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: var(--home-gutter);
  }
}
.plab-intro h2 { margin: 0; text-wrap: balance; }
.plab-intro h2 em { color: var(--vinho, #a32d32); font-style: italic; }
/* texto de apoio embaixo do título, em duas linhas equilibradas */
.plab-intro__copy { max-width: none; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--clr-text, #10233f); text-wrap: balance; }
@media (min-width: 1180px) {
  .plab-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .plab-intro .section-label { grid-column: 1 / -1; }
  .plab-intro h2 { grid-column: 1 / span 7; }
  .plab-intro__copy { grid-column: 1 / -1; }
}

/* Telas menores: prévia + botão para abrir o editor em tela cheia */
.plab-launch {
  display: none;
  gap: 24px;
  margin-top: 36px;
  padding: 18px;
  color: #f0ece5;
  background:
    linear-gradient(rgba(149, 169, 194, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(149, 169, 194, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    #0b1525;
  border: 1px solid #10233f;
  border-radius: 12px;
}
.plab-launch__art { display: grid; place-items: center; min-height: 300px; }
.plab-launch__art canvas { display: block; max-width: 100%; height: auto; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.plab-launch__copy { display: grid; align-content: center; gap: 16px; }
.plab-launch__copy p { margin: 0; color: #c2cede; font-family: 'Cabin', sans-serif; font-size: 15px; line-height: 1.55; }
.plab-launch__copy strong { color: #f0ece5; font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 400; line-height: 1.25; }
.plab-launch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  font: 600 15px/1 'Cabin', sans-serif;
  background: #a32d32;
  border-radius: 999px;
  justify-self: start;
  transition: background-color 0.2s ease;
}
.plab-launch__btn:disabled { opacity: 0.6; cursor: progress; }
.plab-launch__btn:focus-visible { outline: 2px solid #f0ece5; outline-offset: 3px; }
@media (hover: hover) { .plab-launch__btn:not(:disabled):hover { background: #b8353a; } }

@media (max-width: 1179.98px) {
  .plab-launch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .plab:not(.is-full) { display: none; }
}
@media (max-width: 719.98px) {
  .plab-launch { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .plab-launch__art { min-height: 0; }
}

/* ---------------------------------------------
   Editor
   --------------------------------------------- */
.plab,
.plab-float {
  --pl-bg: #0b1525;
  --pl-top: #091222;
  --pl-panel: #101b2d;
  --pl-panel-2: #14243a;
  --pl-field: #0c1829;
  --pl-line: rgba(240, 236, 229, 0.12);
  --pl-line-2: rgba(240, 236, 229, 0.22);
  --pl-text: #f0ece5;
  --pl-muted: #9ba9ba;
  --pl-soft: #c2cede;
  --pl-wine: #a32d32;
  --pl-wine-2: #b8353a;
  --pl-wine-light: #e0676c;
  --pl-sand: #c7b49a;
  --pl-ui: 'Cabin', 'Segoe UI', system-ui, sans-serif;
  --pl-serif: 'Noto Serif', Georgia, serif;
}
.plab {
  position: relative;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr) 30px;
  /* mais horizontal: cabe com a abertura da seção sem rolar tanto */
  height: clamp(540px, calc(100svh - 280px), 660px);
  margin-top: 36px;
  /* clip (não hidden): o painel escondido abaixo da tela não vira rolagem
     interna — foco ou scrollIntoView não deslocam a área de trabalho */
  overflow: hidden;
  overflow: clip;
  color: var(--pl-text);
  background: var(--pl-bg);
  border: 1px solid #10233f;
  border-radius: 12px;
  font-family: var(--pl-ui);
  font-size: 13px;
  line-height: 1.35;
  isolation: isolate;
}
.plab :where(button),
.plab-float :where(button) { margin: 0; padding: 0; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
.plab :where(button:disabled),
.plab-float :where(button:disabled) { cursor: not-allowed; opacity: 0.38; }
.plab :where(input, select, textarea) { margin: 0; color: inherit; font: inherit; }
.plab p,
.plab-float p { margin: 0; color: inherit; line-height: inherit; }
.plab :focus-visible,
.plab-float :focus-visible { outline: 2px solid var(--pl-wine-light); outline-offset: 2px; }
.plab-ico { display: block; flex: none; width: 18px; height: 18px; fill: currentColor; }
.plab-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barra do topo */
.plab__top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 14px 0 18px;
  background: var(--pl-top);
  border-bottom: 1px solid var(--pl-line);
  white-space: nowrap;
}
.plab__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plab__brand img { display: block; width: 31px; height: 22px; }
.plab__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.plab__desc { padding-left: 14px; color: var(--pl-muted); font-size: 13px; border-left: 1px solid var(--pl-line); }
.plab__spacer { flex: 1; }
.plab__group { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--pl-line-2); border-radius: 10px; }
.plab__icon {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 6px;
  color: var(--pl-soft);
  border-radius: 7px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.plab__zoom { min-width: 58px; font-size: 13px; font-variant-numeric: tabular-nums; }
.plab__export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  color: #fff;
  font-weight: 600;
  background: var(--pl-wine);
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.plab__close { display: none; }
@media (hover: hover) {
  .plab__icon:not(:disabled):hover { color: #fff; background: rgba(240, 236, 229, 0.08); }
  .plab__export:hover { background: var(--pl-wine-2); }
}

/* Corpo: ferramentas | área de trabalho | inspetor */
.plab__body { display: grid; grid-template-columns: 62px minmax(0, 1fr) 296px; min-height: 0; }
.plab__tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  background: var(--pl-panel);
  border-right: 1px solid var(--pl-line);
  overflow-y: auto;
  scrollbar-width: none;
}
.plab__tool {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--pl-soft);
  border-radius: 10px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.plab__tool .plab-ico { width: 21px; height: 21px; }
.plab__tool.is-on { color: #fff; background: rgba(163, 45, 50, 0.62); box-shadow: inset 0 0 0 1px rgba(224, 103, 108, 0.55); }
.plab__tools-sep { flex: none; width: 28px; height: 1px; margin: 4px 0; background: var(--pl-line); }
.plab__tools-push { flex: 1; }
@media (hover: hover) { .plab__tool:not(.is-on):hover { color: #fff; background: rgba(240, 236, 229, 0.08); } }

.plab__stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; overflow: clip; background: var(--pl-bg); }
/* duplo clique na prancheta não seleciona textos da interface ao redor
   (o editor de texto da prancheta é um textarea: continua selecionável) */
.plab__stage,
.plab__tools,
.plab__status { -webkit-user-select: none; user-select: none; }
.plab__canvas { position: absolute; inset: 0; display: block; touch-action: none; outline: none; }
.plab__canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(224, 103, 108, 0.6); }
.plab__stage.is-drop::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--pl-wine-light);
  border-radius: 12px;
  pointer-events: none;
}
.plab__dock {
  position: absolute;
  left: 34px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(16, 27, 45, 0.94);
  border: 1px solid var(--pl-line-2);
  border-radius: 12px;
}
.plab__dock-label { padding: 0 10px; color: var(--pl-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.plab__dock .plab__icon.is-on { color: #fff; background: rgba(163, 45, 50, 0.55); }
.plab__notice {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  max-width: min(520px, calc(100% - 32px));
  padding: 10px 16px;
  color: #fff;
  font-size: 12.5px;
  background: #14283e;
  border: 1px solid #56708b;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.plab__notice.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Edição de texto na prancheta */
.plab-textedit {
  position: absolute;
  z-index: 4;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
  background: transparent;
  border: 0;
  outline: 1px dashed rgba(224, 103, 108, 0.85);
  outline-offset: 2px;
  resize: none;
  transform-origin: center;
}

/* Inspetor */
.plab__inspector { display: flex; flex-direction: column; min-height: 0; background: var(--pl-panel); border-left: 1px solid var(--pl-line); }
.plab__tabs { display: flex; align-items: flex-end; gap: 20px; padding: 14px 18px 0; border-bottom: 1px solid var(--pl-line); }
.plab__tabs [data-tab] { padding: 0 0 12px; color: var(--pl-muted); font-size: 14px; border-bottom: 2px solid transparent; }
.plab__tabs [data-tab].is-on { color: #fff; border-bottom-color: var(--pl-wine-light); }
.plab__sheet-close { display: none; margin-left: auto; }
.plab__panel { flex: 1; min-height: 0; padding: 16px 18px 24px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(240, 236, 229, 0.2) transparent; }
.plab-panel__title { margin: 2px 0 14px !important; color: #fff !important; font-size: 13px; font-weight: 600; }
.plab-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 12px; }
.plab-field > span:first-child { color: var(--pl-soft); font-size: 12px; }
.plab-field input,
.plab-field select,
.plab-field textarea,
.plab-num,
.plab-row > select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  color: var(--pl-text);
  background: var(--pl-field);
  border: 1px solid #33445c;
  border-radius: 7px;
}
.plab-field textarea { height: auto; min-height: 64px; padding: 8px 10px; line-height: 1.45; resize: vertical; }
.plab-field select,
.plab-row > select {
  padding-right: 30px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23c2cede' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 8px;
}
.plab-field select option,
.plab-row > select option { color: #10233f; background: #f0ece5; }
.plab-num { display: flex; align-items: center; padding: 0; }
.plab-num input { flex: 1; height: 100%; padding: 0 10px; background: none; border: 0; }
.plab-num i { padding-right: 10px; color: var(--pl-muted); font-size: 11px; font-style: normal; }
.plab-num:focus-within { border-color: var(--pl-wine-light); }
.plab-field input:focus-visible,
.plab-field select:focus-visible,
.plab-field textarea:focus-visible { outline: none; border-color: var(--pl-wine-light); }
.plab-num input:focus-visible { outline: none; }
.plab-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.plab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.plab-note { color: var(--pl-muted) !important; font-size: 11.5px; line-height: 1.5 !important; }
.plab-field .plab-note { display: flex; align-items: center; min-height: 38px; }
.plab-sep { height: 1px; margin: 16px 0; background: var(--pl-line); }

.plab-color {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 10px 0 6px;
  background: var(--pl-field);
  border: 1px solid #33445c;
  border-radius: 7px;
  text-align: left;
}
.plab-color__sw {
  width: 26px;
  height: 26px;
  flex: none;
  background: linear-gradient(var(--sw), var(--sw)), repeating-conic-gradient(#c8ccd2 0 25%, #fff 0 50%) 0 0 / 10px 10px;
  border: 1px solid rgba(240, 236, 229, 0.35);
  border-radius: 50%;
}
.plab-color__sw.is-none { background: linear-gradient(135deg, transparent 46%, var(--pl-wine-light) 46% 54%, transparent 54%), #fff; }
.plab-color__hex { flex: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.plab-color .plab-ico { width: 16px; height: 16px; color: var(--pl-muted); }

.plab-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; border: 1px solid #33445c; border-radius: 7px; }
.plab-seg--6 { grid-template-columns: repeat(6, 1fr); grid-auto-flow: row; }
.plab-seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; color: var(--pl-soft); font-size: 12px; background: var(--pl-field); }
.plab-seg button + button { border-left: 1px solid #33445c; }
.plab-seg button.is-on { color: #fff; background: rgba(163, 45, 50, 0.62); }
.plab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--pl-soft);
  font-size: 12px;
  background: var(--pl-field);
  border: 1px solid #33445c !important;
  border-radius: 999px;
}
.plab-toggle .plab-ico { width: 15px; height: 15px; }
.plab-toggle.is-on { color: #fff; background: rgba(163, 45, 50, 0.55); border-color: rgba(224, 103, 108, 0.7) !important; }
.plab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--pl-text);
  font-size: 12.5px;
  font-weight: 600;
  background: #1a2c43;
  border: 1px solid #40536d !important;
  border-radius: 999px;
}
.plab-btn--accent { color: #fff; background: var(--pl-wine); border-color: #b94149 !important; }
.plab-btn--block { display: flex; width: 100%; margin: 2px 0 12px; }
.plab-btn .plab-ico { width: 16px; height: 16px; }
.plab-link { color: var(--pl-soft); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.plab-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 12px; }
.plab-actions button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--pl-soft);
  font-size: 12px;
  background: #16273d;
  border: 1px solid #33445c !important;
  border-radius: 7px;
}
.plab-actions button .plab-ico { width: 15px; height: 15px; }
.plab-actions .is-danger { color: #f3b3b6; }
@media (hover: hover) {
  .plab-seg button:not(.is-on):not(:disabled):hover,
  .plab-actions button:not(:disabled):hover,
  .plab-toggle:not(.is-on):hover { color: #fff; background: #1d3049; }
}

/* Seções recolhíveis (Transformar / Aparência / Avançado) */
.plab-sec { border-top: 1px solid var(--pl-line); }
.plab-sec:last-child { border-bottom: 1px solid var(--pl-line); }
.plab-sec summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: #fff;
  font-size: 14px;
  list-style: none;
  cursor: pointer;
}
.plab-sec summary::-webkit-details-marker { display: none; }
.plab-sec summary .plab-ico { width: 15px; height: 15px; color: var(--pl-muted); transition: transform 0.2s ease; }
.plab-sec[open] summary .plab-ico { transform: rotate(90deg); }
.plab-sec__body { padding-bottom: 6px; }

/* Formato: Adaptar × Manter, com prévia */
.plab-adapt { margin-bottom: 14px; padding: 12px; background: #0e1c30; border: 1px solid rgba(224, 103, 108, 0.45); border-radius: 10px; }
.plab-adapt p { margin-bottom: 10px; color: var(--pl-soft); font-size: 12px; }
.plab-adapt__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.plab-adapt__opts button { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; font-size: 12px; font-weight: 600; background: var(--pl-field); border: 1px solid #33445c !important; border-radius: 8px; }
.plab-adapt__opts small { color: var(--pl-muted); font-size: 10.5px; font-weight: 400; }
.plab-adapt__thumb { display: grid; place-items: center; width: 100%; height: 96px; }
.plab-adapt__thumb canvas { max-width: 100%; max-height: 96px; box-shadow: 0 0 0 1px rgba(240, 236, 229, 0.25); }

/* Camadas */
.plab-layers { display: grid; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; }
.plab-layer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 4px 0 2px;
  color: var(--pl-soft);
  background: #14243a;
  border: 1px solid #2c3d55;
  border-radius: 8px;
  cursor: pointer;
}
.plab-layer .plab-ico { width: 16px; height: 16px; }
.plab-layer.is-on { color: #fff; background: #3a2131; border-color: #b9575e; }
.plab-layer.is-nested { margin-left: 18px; }
.plab-layer--group { background: #101d30; }
.plab-layer.is-hidden .plab-layer__name { opacity: 0.45; text-decoration: line-through; }
.plab-layer.is-dragging { opacity: 0.55; }
.plab-layer.is-drop-before::before,
.plab-layer.is-drop-end::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--pl-wine-light); }
.plab-layer.is-drop-before::before { top: -4px; }
.plab-layer.is-drop-end::after { bottom: -4px; }
.plab-layer__grip { display: grid; place-items: center; width: 22px; height: 30px; color: var(--pl-muted); cursor: grab; touch-action: none; }
.plab-layer__name { flex: 1; min-width: 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.plab-layer__btn { display: grid; place-items: center; width: 30px; height: 30px; color: var(--pl-muted); border-radius: 6px; }
.plab-layer__btn.is-on { color: var(--pl-wine-light); }
.plab-layer__rename { flex: 1; min-width: 0; height: 28px; padding: 0 6px; color: #fff; background: var(--pl-field); border: 1px solid var(--pl-wine-light); border-radius: 5px; }

/* Barra de status */
.plab__status {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 18px;
  color: var(--pl-muted);
  font-size: 11px;
  background: var(--pl-top);
  border-top: 1px solid var(--pl-line);
  white-space: nowrap;
}
.plab__status > span { overflow: hidden; text-overflow: ellipsis; }
.plab__status [data-status="hint"] { margin-left: auto; }
.plab__replay { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 22px; padding: 0 9px 0 6px; color: var(--pl-soft); font: 600 11px/1 var(--pl-ui); border: 1px solid var(--pl-line-2) !important; border-radius: 999px; }
.plab__replay .plab-ico { width: 14px; height: 14px; }
@media (hover: hover) { .plab__replay:hover { color: #fff; background: rgba(240, 236, 229, 0.08); } }
.plab-link--font { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 12px; }
.plab-link--font .plab-ico { width: 15px; height: 15px; }

/* Demonstração: cursor do Design System (marfim com contorno azul-noturno, o
   padrão do DS sobre fundo escuro). O ponto (0,0) é a ponta da seta / do dedo. */
.plab-demo-cursor {
  --cursor: 28px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.plab-demo-cursor.is-on { opacity: 1; }
.plab-demo-cursor__icon {
  position: absolute;
  width: var(--cursor);
  height: var(--cursor);
  overflow: visible;
  fill: #f0ece5;
  stroke: #10233f;
  stroke-width: 17;
  stroke-linejoin: round;
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 8px rgba(6, 12, 24, 0.45));
  transition: opacity 0.16s ease;
}
.plab-demo-cursor__icon--seta { left: calc(var(--cursor) * -0.125); top: calc(var(--cursor) * -0.125); }
.plab-demo-cursor__icon--mao { left: calc(var(--cursor) * -0.4375); top: calc(var(--cursor) * -0.07); opacity: 0; }
.plab-demo-cursor.is-hand .plab-demo-cursor__icon--seta { opacity: 0; }
.plab-demo-cursor.is-hand .plab-demo-cursor__icon--mao { opacity: 1; }
/* o clique: um anel vinho sai da ponta */
.plab-demo-cursor::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--pl-wine-light);
  border-radius: 50%;
  opacity: 0;
}
.plab-demo-cursor.is-click::after { animation: plab-demo-click 0.45s ease-out; }
@keyframes plab-demo-click {
  from { opacity: 0.95; transform: scale(0.35); }
  to { opacity: 0; transform: scale(1.6); }
}
.plab-demo-caption {
  position: absolute;
  bottom: 44px;
  left: 50%;
  z-index: 30;
  max-width: calc(100% - 32px);
  margin: 0 !important;
  padding: 8px 15px;
  color: #fff !important;
  font: 600 12.5px/1.3 var(--pl-ui);
  text-align: center;
  background: rgba(16, 35, 63, 0.94);
  border: 1px solid rgba(224, 103, 108, 0.6);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(6, 12, 24, 0.4);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.plab-demo-caption.is-on { opacity: 1; transform: translate(-50%, 0); }
.plab__tool.is-demo { color: #fff; background: rgba(163, 45, 50, 0.55); }

/* Menus e seletor de cor (posicionados pelo script dentro de .plab) */
.plab-menu,
.plab-cp {
  position: absolute;
  z-index: 30;
  color: var(--pl-text);
  background: #13213a;
  border: 1px solid #4a5c76;
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}
.plab-menu { display: grid; min-width: 220px; padding: 6px; }
.plab-menu button { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-height: 36px; padding: 0 10px; font-size: 13px; text-align: left; border-radius: 7px; }
.plab-menu small { color: var(--pl-muted); font-size: 11px; }
.plab-menu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--pl-line); }
@media (hover: hover) { .plab-menu button:hover { background: rgba(240, 236, 229, 0.08); } }
.plab-menu button:focus-visible { outline-offset: -2px; }

.plab-cp { width: 248px; max-height: calc(100% - 16px); padding: 12px; overflow-y: auto; }
.plab-cp__sv {
  position: relative;
  height: 140px;
  border-radius: 8px;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--hue));
  cursor: crosshair;
  touch-action: none;
}
.plab-cp__sv i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.plab-cp__range { display: block; margin-top: 10px; }
.plab-cp__range input { width: 100%; height: 12px; margin: 0; appearance: none; border-radius: 6px; cursor: pointer; }
.plab-cp__range--hue input { background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.plab-cp__range--alpha input { background: linear-gradient(90deg, transparent, var(--solid)), repeating-conic-gradient(#c8ccd2 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.plab-cp__range input::-webkit-slider-thumb { width: 16px; height: 16px; appearance: none; background: #fff; border: 2px solid #10233f; border-radius: 50%; }
.plab-cp__range input::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 2px solid #10233f; border-radius: 50%; }
.plab-cp__row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.plab-cp__preview { width: 30px; height: 30px; flex: none; background: linear-gradient(var(--sw), var(--sw)), repeating-conic-gradient(#c8ccd2 0 25%, #fff 0 50%) 0 0 / 10px 10px; border: 1px solid rgba(240, 236, 229, 0.35); border-radius: 50%; }
.plab-cp__row select { flex: 1; height: 32px; padding: 0 8px; color: var(--pl-text); background: var(--pl-field); border: 1px solid #33445c; border-radius: 6px; }
.plab-cp__row select option { color: #10233f; }
.plab-iconbtn { display: grid; place-items: center; width: 32px; height: 32px; color: var(--pl-soft); background: var(--pl-field); border: 1px solid #33445c !important; border-radius: 6px; }
.plab-cp__fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.plab-cp__fields > input[data-hex] { grid-column: span 3; }
.plab-cp__fields input { width: 100%; min-width: 0; height: 32px; padding: 0 6px; color: var(--pl-text); font-size: 12px; background: var(--pl-field); border: 1px solid #33445c; border-radius: 6px; }
.plab-cp__fields label { display: grid; gap: 2px; }
.plab-cp__fields label span { color: var(--pl-muted); font-size: 10px; text-align: center; }
.plab-cp__fields .plab-cp__alpha-num { grid-column: 4; }
.plab-cp__none { width: 100%; min-height: 30px; margin-top: 8px; color: var(--pl-soft); font-size: 12px; border: 1px dashed #4a5c76 !important; border-radius: 6px; }
.plab-cp__none.is-on { color: #fff; border-color: var(--pl-wine-light) !important; }
.plab-cp__label { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px !important; color: var(--pl-muted) !important; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.plab-cp__fav { color: var(--pl-wine-light); font-size: 10.5px; letter-spacing: 0; text-transform: none; }
.plab-cp__swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.plab-cp__sw { width: 24px; height: 24px; background: linear-gradient(var(--sw), var(--sw)), repeating-conic-gradient(#c8ccd2 0 25%, #fff 0 50%) 0 0 / 8px 8px; border: 1px solid rgba(240, 236, 229, 0.35) !important; border-radius: 50%; }
.plab-cp__empty { color: var(--pl-muted); font-size: 11px; }

/* Carregando (antes do script): esqueleto estável, sem pulo de layout */
.plab.is-loading .plab__stage::before,
.plab:not(.is-ready) .plab__stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(149, 169, 194, 0.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(149, 169, 194, 0.07) 1px, transparent 1px) 0 0 / 24px 24px;
}
.plab__noscript { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--pl-soft); text-align: center; }

/* ---------------------------------------------
   Tela cheia (botão no desktop; no celular, o único modo de editar)
   --------------------------------------------- */
.plab.is-full {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.plab.is-full .plab__close { display: grid; }
.plab.is-full [data-action="fullscreen"] .plab-ico { transform: rotate(180deg); }

/* Celular e tablet em tela cheia: área de trabalho em cima, ferramentas
   embaixo e o inspetor num painel que sobe da base */
@media (max-width: 899.98px) {
  .plab.is-full { grid-template-rows: 52px minmax(0, 1fr) 60px; }
  .plab.is-full .plab__top { gap: 8px; padding: 0 8px 0 12px; }
  .plab.is-full .plab__desc,
  .plab.is-full [data-action="fullscreen"],
  .plab.is-full .plab__group--zoom [data-action="zoom-out"],
  .plab.is-full .plab__group--zoom [data-action="zoom-in"] { display: none; }
  .plab.is-full .plab__name { font-size: 16px; }
  .plab.is-full .plab__export { height: 34px; padding: 0 12px; }
  .plab.is-full .plab__export span { display: none; }
  .plab.is-full .plab__body { grid-template-columns: minmax(0, 1fr); grid-row: 2; }
  .plab.is-full .plab__tools {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    flex-direction: row;
    height: 60px;
    padding: 0 8px;
    overflow-x: auto;
    border-top: 1px solid var(--pl-line);
    border-right: 0;
  }
  .plab.is-full .plab__tools-sep { width: 1px; height: 28px; margin: 0 4px; }
  .plab.is-full .plab__tools-push { display: none; }
  .plab.is-full .plab__status { display: none; }
  .plab.is-full .plab__dock { left: 12px; bottom: 12px; }
  .plab.is-full .plab__inspector {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 8;
    max-height: 62%;
    border-top: 1px solid var(--pl-line-2);
    border-left: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(100% + 60px));
    transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
  }
  .plab.is-full.is-sheet .plab__inspector { transform: none; }
  .plab.is-full .plab__sheet-close { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; color: var(--pl-soft); }
  .plab.is-full [data-action="sheet"] { display: grid; }
}
[data-action="sheet"] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .plab *,
  .plab-launch * { animation-duration: 0.01ms !important; }
  /* (as transições de cor e opacidade continuam: versão suave, style.css §27) */
}

/* ---------------------------------------------
   Grupo de formas: um botão + menu (clique direito / toque longo)
   --------------------------------------------- */
.plab__tool--group { position: relative; }
.plab__tool-corner {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-bottom: 5px solid currentColor;
  opacity: 0.7;
}
.plab-flyout {
  position: absolute;
  z-index: 30;
  display: grid;
  min-width: 196px;
  padding: 6px;
  background: #13213a;
  border: 1px solid #4a5c76;
  border-radius: 12px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  animation: plab-flyout-in 0.16s ease-out;
}
@keyframes plab-flyout-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}
.plab-flyout button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--pl-soft);
  font-size: 13px;
  text-align: left;
  border-radius: 8px;
}
.plab-flyout button span { flex: 1; }
.plab-flyout button.is-on { color: #fff; background: rgba(163, 45, 50, 0.55); }
.plab-flyout kbd {
  min-width: 22px;
  padding: 2px 6px;
  color: var(--pl-muted);
  font: 600 11px/1.2 var(--pl-ui);
  text-align: center;
  border: 1px solid #33445c;
  border-radius: 5px;
}
.plab-flyout button:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .plab-flyout button:not(.is-on):hover { color: #fff; background: rgba(240, 236, 229, 0.08); } }

/* ---------------------------------------------
   Modo de criação (topo): Criar livremente [chave] Criar com orientação
   (a bolinha vai para o lado do modo ativo: direita = com orientação)
   --------------------------------------------- */
.plab__mode { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--pl-line-2); border-radius: 999px; }
.plab__mode-btn { padding: 6px 10px; color: var(--pl-muted); font-size: 13px; border-radius: 999px; transition: color 0.15s ease; }
.plab__mode-btn.is-on { color: #fff; }
.plab__switch { position: relative; width: 40px; height: 22px; flex: none; background: #2b3a50; border-radius: 999px; transition: background-color 0.2s ease; }
.plab__switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #f0ece5; border-radius: 50%; transition: transform 0.2s ease; }
.plab__switch[aria-checked="true"] { background: var(--pl-wine); }
.plab__switch[aria-checked="true"] i { transform: translateX(18px); }
.plab__tool--mentor { color: #f3b3b6; }
@media (max-width: 1399.98px) {
  .plab__desc { display: none; }
  .plab__top { gap: 10px; }
}
@media (max-width: 899.98px) {
  .plab.is-full .plab__mode { padding: 4px; border: 0; }
  .plab.is-full .plab__mode-btn { display: none; }
}
/* Celular: sem espaço para o nome ao lado da chave; o monograma fica */
@media (max-width: 559.98px) {
  .plab.is-full .plab__name { display: none; }
}

/* ---------------------------------------------
   Mentor de composição: janela flutuante, botão "Mentor", conector e faixa
   de prévia. A janela fica numa camada (.plab-float) FORA do editor, que cobre
   a seção (pode ir para a página); em tela cheia a camada entra no editor.
   --------------------------------------------- */
/* a camada cobre a seção inteira: a janela anda livre, mas não sai da seção */
.plab-float {
  position: absolute;
  inset: 0;
  z-index: 8;
  color: var(--pl-text);
  font-family: var(--pl-ui);
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
}
.plab-float > .plab-mentor,
.plab-float > .plab-mentor-pill { pointer-events: auto; }
.plab.is-full > .plab-float { z-index: 9; }
/* telas menores: fora da tela cheia o editor não aparece, nem a janela */
@media (max-width: 1179.98px) {
  .plab-section > .plab-float { display: none; }
}
.plab-mentor[hidden],
.plab-mentor-pill[hidden],
.plab-mentor-banner[hidden] { display: none !important; }
/* Três camadas, como os cards do Contato: a janela (posição; o arraste mexe
   em left/top e na inclinação) › a flutuação › o painel (reage ao hover) */
.plab-mentor {
  position: absolute;
  z-index: 6;
  width: min(560px, calc(100% - 24px));
}
.plab-mentor.is-entering { animation: plab-mentor-in 0.32s cubic-bezier(0.22, 0.72, 0.22, 1); }
@keyframes plab-mentor-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.plab-mentor__float {
  display: block;
  animation: plab-float 5.8s ease-in-out -1.6s infinite alternate;
  will-change: transform;
}
@keyframes plab-float {
  from { transform: translate(-1.5px, -4px) rotate(-0.25deg); }
  to { transform: translate(1.5px, 4px) rotate(0.25deg); }
}
.plab-mentor__panel {
  max-height: min(660px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 13px 16px 0;
  color: var(--pl-text);
  background: linear-gradient(150deg, #1a2438, #111a2b 60%, #161e30);
  border: 1px solid rgba(224, 103, 108, 0.55);
  border-radius: 18px;
  /* sombra de janela: ela flutua acima do editor e da página */
  box-shadow: 0 34px 80px rgba(6, 12, 24, 0.6), 0 10px 24px rgba(6, 12, 24, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 236, 229, 0.2) transparent;
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), border-color 0.25s ease;
}
/* hover: sobe um pouco e a borda acende (a flutuação pausa) */
@media (hover: hover) and (pointer: fine) {
  .plab-mentor:hover .plab-mentor__float { animation-play-state: paused; }
  .plab-mentor:hover .plab-mentor__panel {
    border-color: rgba(224, 103, 108, 0.85);
    box-shadow: 0 0 0 1px rgba(224, 103, 108, 0.25), 0 42px 90px rgba(6, 12, 24, 0.62), 0 12px 26px rgba(6, 12, 24, 0.38);
    transform: translateY(-4px) scale(1.01);
  }
}
/* arrastando: "sai da mesa" — sobe mais, sombra mais longa */
.plab-mentor.is-grabbed .plab-mentor__float { animation-play-state: paused; }
.plab-mentor.is-grabbed .plab-mentor__panel {
  border-color: rgba(224, 103, 108, 0.95);
  box-shadow: 0 0 0 1px rgba(224, 103, 108, 0.32), 0 56px 100px rgba(6, 12, 24, 0.66), 0 16px 32px rgba(6, 12, 24, 0.4);
  transform: translateY(-8px) scale(1.02);
  transition-duration: 0.2s;
}
.plab-mentor__progress { display: flex; gap: 6px; margin-bottom: 10px; }
.plab-mentor__progress i { width: 30px; height: 3px; background: rgba(240, 236, 229, 0.16); border-radius: 2px; transition: background-color 0.3s ease; }
.plab-mentor__progress i.is-on { background: var(--pl-wine-light); }
/* a janela inteira se arrasta (menos os controles); a alça ⠿ sinaliza isso */
.plab-mentor { cursor: grab; user-select: none; }
.plab-mentor :is(button, figure) { cursor: pointer; }
.plab-mentor__head { display: flex; align-items: flex-start; gap: 10px; }
.plab-mentor__grip {
  display: grid;
  place-items: center;
  width: 22px;
  height: 38px;
  flex: none;
  margin-left: -6px;
  color: var(--pl-muted);
  border-radius: 6px;
  cursor: grab !important;
  touch-action: none;
}
.plab-mentor__grip .plab-ico { width: 18px; height: 18px; }
.plab-mentor.is-dragging,
.plab-mentor.is-dragging * { cursor: grabbing !important; }
@media (hover: hover) { .plab-mentor__grip:hover { color: #fff; background: rgba(240, 236, 229, 0.08); } }
.plab-mentor__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: #fff; background: #6b2630; border-radius: 9px; }
.plab-mentor__icon .plab-ico { width: 21px; height: 21px; }
.plab-mentor__titles { flex: 1; min-width: 0; padding-top: 2px; }
.plab-mentor h3 { margin: 0; color: #fff; font: 400 19px/1.15 var(--pl-serif); }
.plab-mentor__eyebrow { margin-top: 3px !important; color: var(--pl-muted) !important; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; }
.plab-mentor__x { display: grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--pl-soft); border-radius: 8px; }
.plab-mentor__x .plab-ico { width: 16px; height: 16px; }
/* duas colunas: o que aprender | Antes/Depois */
.plab-mentor__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--pl-line);
}
.plab-mentor__see { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* micro-dica da ação que a pessoa acabou de fazer */
.plab-mentor__now { margin-top: 7px; padding: 8px 10px; background: rgba(163, 45, 50, 0.16); border: 1px solid rgba(224, 103, 108, 0.35); border-radius: 10px; }
.plab-mentor__now-label { display: inline-flex; align-items: center; gap: 5px; color: #f2b6b8; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.plab-mentor__now-label .plab-ico { width: 12px; height: 12px; }
.plab-mentor__now p { margin: 4px 0 0 !important; color: #f0ece5 !important; font-size: 12.5px; line-height: 1.45 !important; }
/* sem sugestão para a arte: o Antes/Depois é o exemplo do tema */
.plab-mentor__example-tag { display: inline-flex; align-items: center; gap: 5px; margin: 0 !important; color: var(--pl-muted) !important; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.plab-mentor__example-tag .plab-ico { width: 13px; height: 13px; }
.plab-mentor__q { margin-top: 0 !important; color: #fff !important; font-size: 14px; font-weight: 600; line-height: 1.35 !important; }
.plab-mentor__text { margin-top: 5px !important; color: #d1dae5 !important; font-size: 12px; line-height: 1.5 !important; }
.plab-mentor__compare {
  display: grid;
  grid-template-columns: 1fr 26px 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  padding: 0;
}
.plab-mentor__compare figure {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  margin: 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.2s ease;
}
.plab-mentor__compare figure.is-on { border-color: var(--pl-wine-light); }
.plab-mentor__compare canvas { display: block; border-radius: 3px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7); }
.plab-mentor__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 3px 7px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #283547;
  border-radius: 6px;
}
.plab-mentor__tag--after { background: var(--pl-wine); }
.plab-mentor__arrow { display: grid; place-items: center; color: var(--pl-wine-light); }
.plab-mentor__arrow .plab-ico { width: 18px; height: 18px; transform: rotate(45deg); }
.plab-mentor__metric { color: var(--pl-muted) !important; font-size: 11px; line-height: 1.5 !important; }
.plab-mentor__label { margin-top: 11px !important; color: #c9d2de !important; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.plab-mentor__tips { display: grid; gap: 6px; margin: 8px 0 2px; padding: 0; list-style: none; }
.plab-mentor__tips li { display: flex; align-items: flex-start; gap: 9px; color: #e3e6ec; font-size: 12px; line-height: 1.4; }
.plab-mentor__tips .plab-ico { width: 16px; height: 16px; flex: none; padding: 3px; color: #fff; background: #8d2e38; border-radius: 50%; }
.plab-mentor__done { display: flex; align-items: center; gap: 10px; margin: 14px 0 0 !important; color: #fff !important; font-size: 13px; line-height: 1.45 !important; }
.plab-mentor__done .plab-ico { width: 20px; height: 20px; padding: 3px; background: var(--pl-wine); border-radius: 50%; }
/* Ações sempre à vista no pé do card (o conteúdo rola por cima) */
.plab-mentor__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 -16px;
  padding: 10px 16px 13px;
  background: linear-gradient(rgba(19, 28, 44, 0), #131c2c 14px);
}
.plab-mentor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(240, 236, 229, 0.38) !important;
  border-radius: 999px;
}
.plab-mentor__btn .plab-ico { width: 15px; height: 15px; }
.plab-mentor__btn--ghost { color: var(--pl-soft); border-color: transparent !important; }
.plab-mentor__btn--primary { margin-left: auto; background: var(--pl-wine); border-color: #b94149 !important; }
.plab-mentor__btn:disabled { opacity: 0.4; }
@media (hover: hover) {
  .plab-mentor__x:hover { color: #fff; background: rgba(240, 236, 229, 0.08); }
  .plab-mentor__btn:not(:disabled):hover { background: rgba(240, 236, 229, 0.08); }
  .plab-mentor__btn--primary:not(:disabled):hover { background: var(--pl-wine-2); }
}

.plab-mentor-pill {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 12px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  background: #18263c;
  border: 1px solid rgba(224, 103, 108, 0.55) !important;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  animation: plab-mentor-in 0.3s cubic-bezier(0.22, 0.72, 0.22, 1);
}
.plab-mentor-pill .plab-ico { width: 16px; height: 16px; color: var(--pl-wine-light); }
/* há uma dica para a arte: o botão ganha o vinho e um pulso discreto */
.plab-mentor-pill.is-alert { background: var(--pl-wine); border-color: #c55b64 !important; }
.plab-mentor-pill.is-alert .plab-ico { color: #fff; }
.plab-mentor-pill.is-alert::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(224, 103, 108, 0.55);
  animation: plab-pill-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes plab-pill-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 103, 108, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(224, 103, 108, 0); }
}
@media (hover: hover) { .plab-mentor-pill:hover { filter: brightness(1.12); } }

.plab-mentor-link { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* O fio (como no Contato): "S" pontilhado em vinho claro, porta quadrada
   vazada no objeto (pulsa) e circular vazada na janela; no hover, fica
   tracejado e a porta cresce; faísca e sinal correm por ele */
.plab-mentor-link__glow { fill: none; stroke: var(--pl-wine-light); stroke-width: 8; stroke-linecap: round; opacity: 0; transition: opacity 0.35s ease; }
.plab-mentor-link__path { fill: none; stroke: var(--pl-wine-light); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.1 7; transition: stroke-width 0.25s ease; }
.plab-mentor-link__spark,
.plab-mentor-link__signal { fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0; }
.plab-mentor-link__spark { stroke: #f6d5d6; stroke-width: 3.2; filter: drop-shadow(0 0 5px rgba(224, 103, 108, 0.95)); }
.plab-mentor-link__signal { stroke: #f0ece5; stroke-width: 3.6; filter: drop-shadow(0 0 6px rgba(224, 103, 108, 0.95)); }
.plab-mentor-link__dot,
.plab-mentor-link__end {
  fill: #151d2e;
  stroke: var(--pl-wine-light);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.plab-mentor-link__dot { animation: plab-origin 1.6s ease-in-out infinite; }
/* a porta da janela: maior e com brilho, visível sobre o editor e sobre a página */
.plab-mentor-link__end { stroke-width: 2; filter: drop-shadow(0 0 4px rgba(224, 103, 108, 0.75)); }
.plab-mentor-link.is-hover .plab-mentor-link__end { fill: var(--pl-wine-light); }
@keyframes plab-origin { 50% { transform: scale(1.5); } }
.plab-mentor-link.is-hover .plab-mentor-link__path { stroke-width: 1.9; stroke-dasharray: 3 5; }
.plab-mentor-link.is-hover .plab-mentor-link__glow { opacity: 0.2; }
.plab-mentor-link.is-hover .plab-mentor-link__dot { animation: none; fill: var(--pl-wine-light); transform: scale(1.5); }

.plab-mentor-banner {
  position: absolute;
  top: 30px;
  left: 34px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: rgba(16, 27, 45, 0.96);
  border: 1px solid rgba(224, 103, 108, 0.6);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.plab-mentor-banner__label { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12.5px; font-weight: 600; }
.plab-mentor-banner__label .plab-ico { width: 15px; height: 15px; color: var(--pl-wine-light); }
.plab-mentor-banner .plab-seg { border-radius: 999px; }
.plab-mentor-banner .plab-seg button { min-height: 32px; padding: 0 12px; }
.plab-mentor-banner .plab-mentor__btn { min-height: 34px; }
.plab-mentor-banner .plab-mentor__btn--primary { margin-left: 0; }

/* Celular/tablet em tela cheia: o card vira um painel que sobe da base */
@media (max-width: 899.98px) {
  .plab.is-full .plab-mentor {
    left: 0 !important;
    right: 0;
    top: auto !important;
    bottom: 60px;
    width: auto;
    rotate: none !important;
  }
  .plab.is-full .plab-mentor__float { animation: none; }
  .plab.is-full .plab-mentor__panel {
    max-height: 62vh;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    transform: none !important;
  }
  .plab.is-full .plab-mentor,
  .plab.is-full .plab-mentor__head { cursor: default; }
  .plab.is-full .plab-mentor__grip { display: none; }
  .plab.is-full .plab-mentor__compare figure { min-height: 120px; }
  .plab.is-full .plab-mentor__cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* experimentando: o painel encolhe para a prévia aparecer na prancheta */
  .plab.is-full .plab-mentor[data-phase="experiment"] :is(.plab-mentor__progress, .plab-mentor__q, .plab-mentor__text, .plab-mentor__label, .plab-mentor__tips, .plab-mentor__compare) { display: none; }
  .plab.is-full .plab-mentor[data-phase="experiment"] .plab-mentor__panel { padding-top: 12px; }
  .plab.is-full .plab-mentor-banner { top: 12px; left: 12px; right: 12px; justify-content: center; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .plab-demo-caption,
  .plab-demo-cursor { transition: none; }
  .plab-mentor.is-entering,
  .plab-mentor__float,
  .plab-mentor-link__dot,
  .plab-mentor-pill,
  .plab-mentor-pill.is-alert::after { animation: none; }
  .plab-mentor__panel { transition: none; }
}
