/* ============================================================
   AIDA11 — Redesign Components (2026)
   Classes prefixadas a11-* · só usam var(--a11-*) de design-tokens.css
   Theme-safe (troca com data-theme) e respeita accent do perfil.
   Carregar DEPOIS de design-tokens.css.
   ============================================================ */

/* ---------- helpers ---------- */
.a11-mono   { font-family: var(--a11-font-mono); }
.a11-eyebrow{
  font-family: var(--a11-font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--a11-accent);
}

/* ---------- light-sweep (só em clicáveis) ---------- */
.a11-sweep{ position: relative; overflow: hidden; isolation: isolate; }
.a11-sweep::after{
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, var(--a11-sheen) 48%, transparent 66%);
  transform: translateX(-140%) skewX(-14deg);
  transition: transform var(--a11-sweep-dur) var(--a11-ease), opacity var(--a11-sweep-dur) var(--a11-ease);
}
.a11-sweep:hover::after{ transform: translateX(140%) skewX(-14deg); opacity: .5; }

/* ---------- botão 3D pop-out ---------- */
.a11-btn{
  --lift: 6px;
  font-family: var(--a11-font-ui); font-weight: 600; font-size: 15.5px; letter-spacing: .04em;
  cursor: pointer; border: 0; border-radius: 12px; padding: 12px 22px; color: #fff;
  background: var(--a11-grad); box-shadow: 0 8px 18px -6px var(--a11-ring);
  transform: perspective(700px) translateY(0) rotateX(0); transform-style: preserve-3d;
  transition: transform var(--a11-dur) var(--a11-ease-pop), box-shadow var(--a11-dur);
  display: inline-flex; align-items: center; gap: 8px;
}
.a11-btn:hover{
  transform: perspective(700px) translateY(calc(-1 * var(--lift))) rotateX(11deg) scale(1.02);
  box-shadow: 0 26px 40px -12px var(--a11-ring);
}
.a11-btn:active{ transform: perspective(700px) translateY(-2px) rotateX(5deg) scale(.99); }
.a11-btn.a11-ghost{
  background: var(--a11-surface); color: var(--a11-text);
  border: 1px solid var(--a11-border-2); box-shadow: var(--a11-shadow-card);
}
.a11-btn.a11-ghost:hover{ box-shadow: var(--a11-shadow-lift); }
.a11-btn:focus-visible{ outline: 2px solid var(--a11-ring); outline-offset: 3px; }

/* ---------- card ---------- */
.a11-card{
  background: var(--a11-surface); border: 1px solid var(--a11-border); border-radius: var(--a11-r);
  box-shadow: var(--a11-shadow-card);
  transition: transform var(--a11-dur), box-shadow var(--a11-dur), border-color var(--a11-dur);
}
.a11-card.a11-lift:hover{ transform: translateY(-5px); box-shadow: var(--a11-shadow-lift); border-color: var(--a11-border-2); }

/* ---------- cascata (reveal) ---------- */
@keyframes a11-rise{ from{ opacity: 0; transform: translateY(18px); } to{ opacity: 1; transform: none; } }
@keyframes a11-fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes a11-pop{ from{ opacity: 0; transform: translateY(16px) scale(.95); } to{ opacity: 1; transform: none; } }
.a11-reveal .a11-casc{ opacity: 0; animation: a11-rise .55s var(--a11-ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---------- shell tipo Discord ---------- */
.a11-shell{
  display: grid; grid-template-columns: 74px 216px 1fr;
  border: 1px solid var(--a11-border); border-radius: var(--a11-r); overflow: hidden;
  box-shadow: var(--a11-shadow-card); min-height: 560px;
}
.a11-rail{ background: var(--a11-rail); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.a11-guild{ position: relative; width: 48px; height: 48px; flex: 0 0 auto; cursor: pointer; }
.a11-guild .a11-ico{
  width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; overflow: hidden;
  background: var(--a11-rail-item); color: var(--a11-text);
  font-family: var(--a11-font-mono); font-weight: 600; font-size: 15px;
  transition: border-radius .18s var(--a11-ease), background .18s;
}
.a11-guild.a11-home .a11-ico{ background: var(--a11-grad); color: #fff; }
.a11-guild:hover .a11-ico{ border-radius: 16px; }
.a11-guild.a11-active .a11-ico{ border-radius: 16px; background: var(--a11-grad); color: #fff; }
.a11-guild::before{
  content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--a11-text); transition: height .18s;
}
.a11-guild:hover::before{ height: 20px; }
.a11-guild.a11-active::before{ height: 36px; }
.a11-rail .a11-sep{ width: 34px; height: 2px; border-radius: 2px; background: var(--a11-border-2); margin: 2px 0; }
.a11-guild.a11-add .a11-ico{ background: transparent; border: 1px dashed var(--a11-border-2); color: var(--a11-good); font-size: 22px; }
.a11-guild.a11-add:hover .a11-ico{ background: color-mix(in srgb, var(--a11-good) 12%, transparent); border-style: solid; }
.a11-chan{ background: var(--a11-chan); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.a11-chan .a11-srv-name{
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15.5px; padding: 4px 8px 12px;
  border-bottom: 1px solid var(--a11-border); margin-bottom: 10px;
}
.a11-chan .a11-grp{ font-family: var(--a11-font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--a11-faint); padding: 10px 8px 4px; }
.a11-navi{ display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--a11-muted); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: .15s; }
.a11-navi:hover{ background: var(--a11-surface-2); color: var(--a11-text); }
.a11-navi.a11-on{ background: var(--a11-accent-soft); color: var(--a11-text); }
.a11-navi .a11-h{ color: var(--a11-faint); font-family: var(--a11-font-mono); font-weight: 500; }
.a11-navi.a11-on .a11-h{ color: var(--a11-accent); }
.a11-main{ padding: 20px; background: var(--a11-surface); overflow-x: auto; }

/* ---------- controles de form ---------- */
.a11-field{ display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.a11-field:last-child{ margin-bottom: 0; }
.a11-field label{ font-size: 13px; font-weight: 600; color: var(--a11-muted); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.a11-hint{ font-size: 11.5px; color: var(--a11-faint); font-family: var(--a11-font-mono); }
.a11-inp, .a11-ta, .a11-sel{
  font-family: var(--a11-font-ui); font-size: 15px; font-weight: 500; color: var(--a11-text);
  /* mais escuro que o bloco (--a11-bg em vez de surface-2): campo recuado que
     sobressai em vez de se fundir com o fundo do bloco. */
  background: var(--a11-bg); border: 1px solid var(--a11-border); border-radius: 10px;
  padding: 11px 13px; width: 100%; transition: border-color .18s, box-shadow .18s;
}
.a11-inp:focus, .a11-ta:focus, .a11-sel:focus{ outline: 0; border-color: var(--a11-accent); box-shadow: 0 0 0 3px var(--a11-accent-soft); }
.a11-ta{ resize: vertical; min-height: 88px; line-height: 1.5; }
.a11-two{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a11-count{ font-size: 11px; color: var(--a11-faint); font-family: var(--a11-font-mono); align-self: flex-end; }

.a11-swatches{ display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.a11-swatch{ width: 30px; height: 30px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.a11-swatch:hover{ transform: translateY(-2px); }
.a11-swatch.a11-on{ border-color: var(--a11-text); }
.a11-hexbox{ display: flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--a11-font-mono); font-size: 13px; color: var(--a11-muted); background: var(--a11-surface-2); border: 1px solid var(--a11-border); border-radius: 8px; padding: 6px 10px; }

.a11-trow{ display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--a11-border); }
.a11-trow:first-of-type{ border-top: 0; }
.a11-trow .a11-tt{ font-weight: 600; font-size: 14.5px; }
.a11-trow .a11-ts{ font-size: 12px; color: var(--a11-faint); font-family: var(--a11-font-mono); }

/* toggle switch */
.a11-toggle{ width: 42px; height: 24px; border-radius: 20px; background: var(--a11-grad); position: relative; flex: 0 0 auto; cursor: pointer; margin-left: auto; }
.a11-toggle.a11-off{ background: var(--a11-border-2); }
.a11-toggle::after{ content: ""; position: absolute; top: 3px; left: 21px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .25s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.a11-toggle.a11-off::after{ left: 3px; }

/* campos repetíveis */
.a11-efield{ display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 10px; align-items: center; padding: 11px; background: var(--a11-surface-2); border: 1px solid var(--a11-border); border-radius: 10px; margin-bottom: 9px; }
.a11-efield .a11-rm{ width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--a11-border-2); background: transparent; color: var(--a11-crit); cursor: pointer; font-size: 15px; flex: 0 0 auto; }
.a11-efield .a11-rm:hover{ background: color-mix(in srgb, var(--a11-crit) 12%, transparent); }
.a11-addf{ display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--a11-accent); font-weight: 600; font-size: 14px; background: transparent; border: 1px dashed var(--a11-border-2); border-radius: 10px; padding: 10px; width: 100%; cursor: pointer; transition: .18s; }
.a11-addf:hover{ background: var(--a11-accent-soft); border-style: solid; }

/* chips */
.a11-chips{ display: flex; gap: 8px; flex-wrap: wrap; }
.a11-chip{ font-family: var(--a11-font-ui); font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 20px; border: 1px solid var(--a11-border-2); cursor: pointer; background: var(--a11-surface-2); color: var(--a11-muted); display: flex; gap: 7px; align-items: center; transition: .15s; }
.a11-chip:hover{ color: var(--a11-text); }
.a11-chip.a11-on{ background: var(--a11-accent-soft); border-color: var(--a11-accent); color: var(--a11-accent); }

/* emoji picker */
.a11-emoji{ display: flex; gap: 8px; flex-wrap: wrap; }
.a11-emoji button{ width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--a11-border); background: var(--a11-surface-2); font-size: 18px; cursor: pointer; transition: .15s; }
.a11-emoji button:hover{ border-color: var(--a11-border-2); transform: translateY(-2px); }
.a11-emoji button.a11-on{ border-color: var(--a11-accent); box-shadow: 0 0 0 3px var(--a11-accent-soft); }

/* upload */
.a11-upload{ border: 1px dashed var(--a11-border-2); border-radius: 11px; padding: 20px; text-align: center; color: var(--a11-muted); font-size: 13.5px; background: var(--a11-surface-2); }
.a11-upload b{ color: var(--a11-accent); }

/* ---------- Builder: templates + blocos ---------- */
.a11-seg{ display: inline-flex; background: var(--a11-surface-2); border: 1px solid var(--a11-border); padding: 3px; border-radius: 10px; gap: 2px; }
.a11-seg button{ font-family: var(--a11-font-ui); font-weight: 600; font-size: 13.5px; border: 0; background: transparent; color: var(--a11-muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: .18s; }
.a11-seg button.a11-on{ background: var(--a11-surface); color: var(--a11-text); box-shadow: var(--a11-shadow-card); }

.a11-tmpl-strip{
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: thin; scrollbar-color: var(--a11-accent) transparent;
  -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.a11-tmpl-strip::-webkit-scrollbar{ height: 7px; }
.a11-tmpl-strip::-webkit-scrollbar-track{ background: var(--a11-surface-2); border-radius: 20px; margin: 0 24px; }
.a11-tmpl-strip::-webkit-scrollbar-thumb{ background: var(--a11-grad); border-radius: 20px; }
.a11-tmpl{ flex: 0 0 160px; padding: 13px; cursor: pointer; border: 1px solid var(--a11-border); border-radius: 12px; background: var(--a11-surface); transition: .18s; }
.a11-tmpl:hover{ border-color: var(--a11-border-2); transform: translateY(-2px); }
.a11-tmpl.a11-on{ border-color: var(--a11-accent); box-shadow: 0 0 0 3px var(--a11-accent-soft); }
.a11-tmpl .a11-ti{ width: 32px; height: 32px; border-radius: 9px; background: var(--a11-accent-soft); color: var(--a11-accent); display: grid; place-items: center; font-size: 16px; margin-bottom: 9px; }
.a11-tmpl .a11-tn{ font-weight: 700; font-size: 14.5px; }
.a11-tmpl .a11-td{ font-size: 11.5px; color: var(--a11-faint); font-family: var(--a11-font-mono); margin-top: 2px; }
.a11-tmpl.a11-blank .a11-ti{ background: transparent; border: 1px dashed var(--a11-border-2); color: var(--a11-muted); }

.a11-cont-head{ display: flex; align-items: center; gap: 9px; padding: 8px 12px; margin-bottom: 9px; background: var(--a11-surface-2); border: 1px solid var(--a11-border); border-radius: 12px; }
.a11-cont-head .a11-dot{ width: 11px; height: 11px; border-radius: 4px; background: var(--a11-accent); }
.a11-addwrap{ position: relative; margin-left: auto; }
.a11-addbtn{ font-family: var(--a11-font-ui); font-weight: 600; font-size: 13px; color: #fff; background: var(--a11-grad); border: 0; border-radius: 8px; padding: 7px 12px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.a11-addmenu{ position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 190px; background: var(--a11-surface); border: 1px solid var(--a11-border-2); border-radius: 11px; padding: 6px; box-shadow: var(--a11-shadow-lift); display: none; }
.a11-addmenu.a11-open{ display: block; animation: a11-rise .18s ease; }
.a11-addmenu button{ display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; font-family: var(--a11-font-ui); font-weight: 600; font-size: 14.5px; color: var(--a11-text); background: transparent; border: 0; padding: 9px 11px; border-radius: 8px; cursor: pointer; }
.a11-addmenu button:hover{ background: var(--a11-surface-2); }
.a11-addmenu .a11-mi{ color: var(--a11-accent); font-size: 15px; width: 18px; text-align: center; }

.a11-block{ border: 1px solid var(--a11-border); border-radius: 12px; background: var(--a11-surface-2); margin-bottom: 12px; overflow: hidden; transition: border-color .18s; }
.a11-block.a11-open{ border-color: var(--a11-border-2); }
.a11-block-head{ display: flex; align-items: center; gap: 9px; padding: 13px 14px; cursor: pointer; user-select: none; }
.a11-block-head .a11-chev{ color: var(--a11-faint); font-size: 11px; transition: transform .2s; width: 12px; flex: 0 0 auto; }
.a11-block.a11-open .a11-block-head .a11-chev{ transform: rotate(90deg); }
.a11-block-head .a11-bi{ width: 24px; height: 24px; border-radius: 7px; background: var(--a11-accent-soft); color: var(--a11-accent); display: grid; place-items: center; font-size: 12.5px; flex: 0 0 auto; }
.a11-block-head .a11-bt{ font-weight: 600; font-size: 13.5px; }
.a11-badge{ font-family: var(--a11-font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--a11-faint); background: var(--a11-surface); border: 1px solid var(--a11-border); padding: 2px 7px; border-radius: 20px; }
.a11-badge.a11-warn{ color: var(--a11-warn); border-color: color-mix(in srgb, var(--a11-warn) 30%, transparent); }
.a11-block-actions{ margin-left: auto; display: flex; align-items: center; gap: 2px; opacity: .45; transition: opacity .15s; }
.a11-block-head:hover .a11-block-actions, .a11-block.a11-open .a11-block-actions{ opacity: 1; }
.a11-block-actions button{ width: 24px; height: 24px; border-radius: 6px; border: 0; background: transparent; color: var(--a11-faint); cursor: pointer; font-size: 12px; transition: .15s; }
.a11-block-actions button:hover{ background: var(--a11-surface); color: var(--a11-text); }
.a11-block-actions .a11-del:hover{ background: color-mix(in srgb, var(--a11-crit) 12%, transparent); color: var(--a11-crit); }
.a11-block-body{ padding: 2px 13px 13px; display: none; }
.a11-block.a11-open .a11-block-body{ display: block; animation: a11-rise .22s ease; }

/* ---------- Modal em passos ---------- */
.a11-backdrop{ position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); backdrop-filter: blur(7px); display: none; align-items: center; justify-content: center; padding: 20px; }
.a11-backdrop.a11-open{ display: flex; animation: a11-fade .22s ease; }
.a11-modal{ width: min(660px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: var(--a11-surface); border: 1px solid var(--a11-border-2); border-radius: 18px; overflow: hidden; box-shadow: var(--a11-shadow-lift); animation: a11-pop .3s var(--a11-ease-pop); }
.a11-modal.a11-wide{ width: min(940px, 100%); }
.a11-mhead{ padding: 18px 20px 0; }
.a11-mtop{ display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.a11-mtop h3{ font-size: 21px; margin: 4px 0 0; }
.a11-mtop p{ color: var(--a11-muted); font-size: 13.5px; margin: 4px 0 0; }
.a11-mclose{ width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--a11-border); background: var(--a11-surface-2); color: var(--a11-muted); cursor: pointer; font-size: 16px; flex: 0 0 auto; transition: .18s; }
.a11-mclose:hover{ color: var(--a11-text); border-color: var(--a11-border-2); }
.a11-steps{ display: flex; gap: 6px; padding-bottom: 16px; }
.a11-step{ flex: 1; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--a11-faint); }
.a11-step .a11-num{ width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--a11-font-mono); font-size: 11px; background: var(--a11-surface-2); border: 1px solid var(--a11-border); transition: .2s; }
.a11-step.a11-on{ color: var(--a11-text); }
.a11-step.a11-on .a11-num{ background: var(--a11-grad); color: #fff; border-color: transparent; }
.a11-step.a11-done{ color: var(--a11-muted); }
.a11-step.a11-done .a11-num{ background: var(--a11-accent-soft); color: var(--a11-accent); border-color: transparent; }
.a11-mprog{ height: 3px; background: var(--a11-surface-2); }
.a11-mprog i{ display: block; height: 100%; width: 33%; background: var(--a11-grad); transition: width .35s var(--a11-ease); }
.a11-mbody{ padding: 20px; overflow-y: auto; }
.a11-mstep{ display: none; }
.a11-mstep.a11-on{ display: block; animation: a11-rise .28s ease; }
.a11-mstep > .a11-q{ font-size: 16px; font-weight: 600; margin: 0 0 14px; color: var(--a11-text); }
.a11-msplit{ display: grid; grid-template-columns: 1fr 302px; min-height: 0; flex: 1; overflow: hidden; }
.a11-msplit .a11-mbody{ border-right: 1px solid var(--a11-border); }
.a11-mpreview{ background: var(--a11-surface-2); padding: 18px; overflow-y: auto; }
.a11-mfoot{ padding: 14px 20px; border-top: 1px solid var(--a11-border); display: flex; align-items: center; gap: 12px; background: var(--a11-surface-2); }
.a11-mfoot .a11-cnt{ font-family: var(--a11-font-mono); font-size: 12.5px; color: var(--a11-faint); }
.a11-mfoot .a11-sp{ margin-left: auto; }

/* entrega condicional */
.a11-dseg{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.a11-dseg button{ font-family: var(--a11-font-ui); font-weight: 600; font-size: 12.5px; color: var(--a11-muted); background: var(--a11-surface-2); border: 1px solid var(--a11-border); border-radius: 10px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: .15s; }
.a11-dseg button:hover{ border-color: var(--a11-border-2); color: var(--a11-text); }
.a11-dseg button.a11-on{ border-color: var(--a11-accent); background: var(--a11-accent-soft); color: var(--a11-accent); }
.a11-dpanel{ display: none; }
.a11-dpanel.a11-on{ display: block; animation: a11-rise .2s ease; }

/* recap */
.a11-recap{ background: var(--a11-surface-2); border: 1px solid var(--a11-border); border-radius: 12px; padding: 14px; }
.a11-recap .a11-rrow{ display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--a11-border); font-size: 14px; }
.a11-recap .a11-rrow:first-child{ border-top: 0; }
.a11-recap .a11-rk{ color: var(--a11-faint); font-family: var(--a11-font-mono); font-size: 12.5px; }
.a11-recap .a11-rv{ font-weight: 600; }

/* card de produto (loja) */
.a11-pcard{ background: var(--a11-surface); border: 1px solid var(--a11-border); border-radius: 14px; overflow: hidden; box-shadow: var(--a11-shadow-card); }
.a11-pcard .a11-pimg{ height: 130px; background: var(--a11-grad); position: relative; display: grid; place-items: center; color: #fff; font-size: 34px; }
.a11-pcard .a11-ptag{ position: absolute; top: 10px; left: 10px; font-family: var(--a11-font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; background: rgba(0,0,0,.35); color: #fff; padding: 4px 8px; border-radius: 20px; }
.a11-pcard .a11-pbody{ padding: 14px; }
.a11-pcard .a11-pcat{ font-family: var(--a11-font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--a11-accent); }
.a11-pcard h4{ font-size: 17px; margin: 5px 0 6px; }
.a11-pcard .a11-pdesc{ font-size: 12.5px; color: var(--a11-muted); line-height: 1.45; margin-bottom: 12px; }
.a11-pcard .a11-pfoot{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.a11-pcard .a11-pprice{ font-family: var(--a11-font-mono); font-weight: 600; font-size: 20px; }
.a11-pcard .a11-pprice s{ font-size: 12px; color: var(--a11-faint); font-weight: 400; margin-right: 6px; }
.a11-pcard .a11-pbuy{ font-family: var(--a11-font-ui); font-weight: 600; font-size: 13.5px; color: #fff; background: var(--a11-grad); border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; }

@media (max-width: 820px){
  .a11-shell{ grid-template-columns: 64px 1fr; }
  .a11-chan{ display: none; }
  .a11-two{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .a11-msplit{ grid-template-columns: 1fr; }
  .a11-mpreview{ display: none; }
}
@media (prefers-reduced-motion: reduce){
  .a11-sweep::after{ display: none; }
  .a11-btn, .a11-card, .a11-modal{ transition: none; animation: none; }
  .a11-reveal .a11-casc{ animation: none; opacity: 1; }
}

/* ===== Overlay do Perfil (iframe por cima da dashboard) ===== */
.profile-overlay { position: fixed; inset: 0; z-index: 4000; display: none; background: rgba(0,0,0,.28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.profile-overlay.open { display: block; animation: a11-fade .2s ease; }
.profile-overlay-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
/* pop suave do painel a cada abertura (o iframe é transparente, então só o
   painel central escala+aparece) — sincronizado com o blur do overlay */
.profile-overlay.open .profile-overlay-frame { animation: a11-pop .3s var(--a11-ease-pop, cubic-bezier(.34,1.35,.5,1)) both; }
@media (prefers-reduced-motion: reduce) {
  .profile-overlay.open, .profile-overlay.open .profile-overlay-frame { animation: none; }
}
body.profile-overlay-lock { overflow: hidden; }

/* Remove os badges que repetem o título da seção/página (cara de IA). */
.section-header-badge { display: none !important; }

/* ============================================================
   ACCENT DO PERFIL re-resolvido no BODY (todas as páginas).
   --profile-accent é injetado inline no <body>; os tokens de accent são
   declarados em :root e não enxergariam ele. Redeclarando no body, tudo
   (ramp --p*, --a11-*, aliases --accent/--color-accent) segue a cor/degrade
   escolhida. (No dashboard o 35-zz repete isto; aqui cobre servers/profile.)
   ============================================================ */
body {
  --p400: var(--profile-accent, var(--p400));
  --p700: var(--profile-accent-strong, var(--p700));
  --p500: color-mix(in srgb, var(--p400) 74%, #000);
  --p300: color-mix(in srgb, var(--p400) 62%, #fff);
  --p200: color-mix(in srgb, var(--p400) 38%, #fff);
  --p900: color-mix(in srgb, var(--p700) 55%, #000);
  --grad: linear-gradient(135deg, var(--p400) 0%, var(--p700) 100%);
  --border2: color-mix(in srgb, var(--p400) 20%, transparent);

  --a11-accent: var(--profile-accent, var(--p400));
  --a11-accent-deep: var(--profile-accent-strong, var(--p700));
  --a11-accent-hover: color-mix(in srgb, var(--a11-accent) 78%, #fff);
  --a11-accent-soft: color-mix(in srgb, var(--a11-accent) 14%, transparent);
  --a11-ring: color-mix(in srgb, var(--a11-accent) 50%, transparent);
  --a11-grad: linear-gradient(135deg, var(--a11-accent) 0%, var(--a11-accent-deep) 100%);

  --accent: var(--a11-accent);
  --color-accent: var(--a11-accent);
  --color-accent-hover: var(--a11-accent-hover);
  --primary: var(--a11-accent);
}
