/* ================================================================
   Lekto V3 — Módulo de Avaliação (ASET). Superfície registros-first.
   Namespace .av-* . Só tokens --lkt-* / aliases; tints via color-mix.
   Carrega depois de styles.css (sobrepõe o .view--avaliacao legado).
   ================================================================ */

/* ---- shell / layout ---- */
.view--avaliacao { max-width: none; padding: 16px 24px 0 8px; }
.av-shell { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 34px); align-items: start; min-height: calc(100dvh - 40px); }
/* landing sem rail: coluna única, o conteúdo central ocupa tudo */
.av-shell--geral { grid-template-columns: 1fr; min-height: 0; }
/* a landing controla o próprio respiro inferior (senão soma 96+48 = 144px) */
.av-shell--geral .av-main { padding-bottom: 0; }
/* o rail já tem o seu próprio compositor; o FAB global de captura some na avaliação */
body:has(.view--avaliacao.is-current) .cap-fab { display: none; }

/* ============================================================
   RAIL — Seus Registros
   ============================================================ */
/* altura cabe abaixo do cabeçalho em linha: base ~92px (16 view-pad + 60 topbar + 16 top) + folga p/ o compositor não sair da tela */
.av-rail { position: sticky; top: 16px; display: flex; flex-direction: column; height: calc(100dvh - 116px);
  background: #fff; border: 1px solid var(--theme-panel-border); border-radius: var(--theme-card-radius); box-shadow: var(--theme-card-shadow); overflow: hidden; }
/* Quem rola é o feed; cabeçalho e compositor ficam presos nas pontas do rail.
   Sem isto a lista crescia livre dentro de um cartão de altura fixa com
   overflow: hidden — com o feed cheio ela passava de 1900px num rail de 784px
   e EMPURRAVA O COMPOSITOR PARA FORA, sem barra de rolagem para alcançá-lo: o
   professor perdia o campo de registro justamente quando tinha mais registros.
   É o arranjo que o próprio comentário de altura do .av-rail já pedia
   ("folga p/ o compositor não sair da tela"), e o mesmo do drawer. */
.av-rail__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.av-rail__head, .av-rail .av-composer { flex: none; }

.av-rail__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; }
.av-rail__title { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 21px; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-rail__list { list-style: none; margin: 0; padding: 4px 16px 8px; display: flex; flex-direction: column; gap: 2px; }
.av-reg__time { font-size: 11.5px; color: var(--color-surface-pure); text-align: center; margin: 2px 0 12px; font-weight: 600; }
/* Autor do registro: só aparece quando o feed é de várias pessoas (visão do
   gestor). Acima da bolha e alinhado à esquerda, como um chat de grupo —
   embaixo competiria com a data, que é a outra meta da mesma bolha. */
.av-reg__by { font-size: 11.5px; font-weight: 800; color: var(--color-primary-dark); margin: 8px 0 3px; letter-spacing: .01em; }
.av-reg__by:first-child { margin-top: 0; }

.av-reg--voice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--border-radius-sm-14);
  background: color-mix(in srgb, var(--color-pastel-aqua) 28%, #fff); border: 1px solid color-mix(in srgb, var(--color-pastel-aqua) 50%, #fff); }
.av-reg__play { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; color: var(--color-primary-pure); box-shadow: var(--theme-card-shadow); }
.av-reg__play svg { width: 16px; height: 16px; fill: currentColor; }
.av-reg__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.av-reg__wave span { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--color-primary-pure) 38%, var(--color-pastel-aqua)); }
.av-reg__meta { flex: none; font-size: 11px; font-weight: 700; color: var(--theme-text-muted); white-space: nowrap; }

.av-reg--text { padding: 12px 14px; border-radius: var(--border-radius-sm-14); background: var(--base-50); border: 1px solid var(--theme-panel-border); min-width: 0; }
.av-reg--text p { font-size: 13.5px; line-height: 1.55; color: var(--theme-text-heading); overflow-wrap: anywhere; word-break: break-word; }

.av-reg--photo { padding: 2px 0; }
.av-reg__photo { display: grid; place-items: center; width: 148px; height: 112px; border-radius: var(--border-radius-sm-14); color: color-mix(in srgb, var(--color-primary-pure) 55%, #fff); overflow: hidden; }
.av-reg__photo svg { width: 30px; height: 30px; }
.av-reg__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* align-items: flex-end e não center porque o campo cresce com o texto: com
   center os botões flutuariam no meio de um campo de 6 linhas; ancorados na
   última linha eles seguem ao lado de onde se está escrevendo. */
.av-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--theme-panel-border); background: #fff; transition: border-color var(--motion-dur-fast) var(--motion-ease), box-shadow var(--motion-dur-fast) var(--motion-ease); }
/* foco refinado: sem retângulo de outline no campo; o rodapé inteiro ganha um
   realce suave de marca quando o campo está ativo (a11y preservada). */
.av-composer:focus-within { border-top-color: color-mix(in srgb, var(--color-primary-pure) 42%, var(--theme-panel-border)); box-shadow: 0 -8px 20px -16px color-mix(in srgb, var(--color-primary-pure) 75%, transparent); }
/* O campo é um textarea de uma linha que ganha altura conforme se escreve,
   até ~6 linhas, quando passa a rolar por dentro (js/composer.js mede e
   aplica). Em repouso mede os mesmos ~36px do input de uma linha que existia
   antes, então o componente parado é idêntico ao de sempre. */
.av-composer__input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--theme-font-family-base); font-size: 14px; color: var(--theme-text-heading); padding: 8px 4px;
  display: block; resize: none; overflow-y: auto; line-height: 1.45; max-height: 132px; }
.av-composer__input::placeholder { color: var(--color-surface-pure); }
.av-composer__input:focus, .av-composer__input:focus-visible { outline: none; box-shadow: none; }
.av-composer__input:focus::placeholder { color: color-mix(in srgb, var(--color-surface-pure) 70%, transparent); }
.av-composer__add, .av-composer__mic { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--theme-panel-border); background: #fff; color: var(--theme-text-muted); cursor: pointer; display: grid; place-items: center; transition: background var(--motion-dur-fast) var(--motion-ease), color var(--motion-dur-fast) var(--motion-ease), transform var(--motion-dur-fast) var(--motion-ease); }
.av-composer__add:hover, .av-composer__mic:hover { background: var(--theme-surface-muted); color: var(--theme-text-heading); transform: translateY(-1px); }
.av-composer__add svg, .av-composer__mic svg { width: 18px; height: 18px; }
.av-composer__send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--color-primary-pure); color: #fff; box-shadow: var(--theme-panel-shadow); transition: background var(--motion-dur-fast) var(--motion-ease), transform var(--motion-dur-fast) var(--motion-ease); }
.av-composer__send:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.av-composer__send svg { width: 18px; height: 18px; }

/* ============================================================
   MAIN / header de escopo
   ============================================================ */
.av-main { display: flex; flex-direction: column; gap: 18px; padding-bottom: 96px; }
/* cabeçalho das visões com escopo: dropdowns à esquerda, CTAs à direita — em
   linha, no fluxo (não flutuante), como o cabeçalho das demais páginas. */
.av-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 0 20px; }
.av-scopebar { display: flex; gap: 10px; flex-wrap: wrap; }
.av-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.av-dd__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--border-radius-pill);
  background: #fff; border: 1px solid var(--theme-panel-border); color: var(--theme-text-heading); font-family: var(--theme-font-family-base); font-weight: 700; font-size: 13.5px; cursor: pointer;
  box-shadow: var(--theme-card-shadow); transition: transform var(--motion-dur-fast) var(--motion-ease), box-shadow var(--motion-dur-fast) var(--motion-ease), background var(--motion-dur-fast) var(--motion-ease); }
.av-dd__btn:hover { transform: translateY(-1px); box-shadow: var(--theme-panel-shadow); }
.av-dd__btn svg { width: 16px; height: 16px; opacity: .7; }
.av-dd__lbl b { font-weight: 800; }
.av-dd.is-active .av-dd__btn { background: var(--color-primary-pure); color: #fff; border-color: transparent; box-shadow: var(--lkt-shadow-level4); }
.av-dd.is-active .av-dd__btn svg { opacity: .9; }

.av-dd__menu { position: fixed; z-index: 200; min-width: 240px; max-width: 320px; max-height: 50vh; overflow-y: auto; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--theme-panel-border); border-radius: var(--border-radius-xs); box-shadow: var(--theme-shadow-lg);
  opacity: 0; transform: translateY(-6px); transition: opacity var(--motion-dur-fast) var(--motion-ease), transform var(--motion-dur-fast) var(--motion-ease); }
.av-dd__menu.is-open { opacity: 1; transform: none; }
.av-dd__opt { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; padding: 8px 12px; border-radius: var(--border-radius-sm); cursor: pointer; }
.av-dd__opt:focus-visible { outline-offset: -2px; }
.av-dd__opt b { font-size: 14px; font-weight: 700; color: var(--theme-text-heading); }
.av-dd__opt span { font-size: 12px; color: var(--color-surface-pure); }
.av-dd__opt:hover { background: var(--theme-surface-muted); }
.av-dd__opt.is-sel { background: color-mix(in srgb, var(--color-primary-pure) 10%, #fff); }
.av-dd__opt.is-sel b { color: var(--color-primary-dark); }

/* cabeçalho imersivo da landing — mesma linguagem de biblioteca/atribuições */
.av-head { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--border-radius-md);
  padding: clamp(20px, 2.6vw, 30px) clamp(24px, 4vw, 44px);
  background: var(--grain), radial-gradient(120% 170% at 88% -10%, #4A1A66 0%, var(--color-surface-deep) 55%, var(--color-surface-deepest) 100%);
  box-shadow: var(--theme-shadow-lg); display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  margin-bottom: clamp(20px, 2.6vw, 32px); }
.av-head__art { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.av-head__art .doodle { left: auto; stroke-width: 2.6; }
.av-head__art .doodle--sparkle { width: 17px; top: 22%; right: 20%; stroke: var(--color-pastel-lavender); }
.av-head__art .doodle--ring { width: 26px; top: 30%; right: 8%; stroke: var(--color-pastel-butter); }
.av-head__art .doodle--wave-dot { width: 96px; top: 62%; right: 6%; stroke: var(--color-pastel-aqua); stroke-width: 4; stroke-dasharray: 0.1 9; }
.av-head__art .doodle--dots { width: 42px; top: 46%; right: 22%; fill: var(--color-pastel-mint); stroke: none; }
.av-head__title { font-family: var(--theme-font-family-heading); font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.04; letter-spacing: -.02em; color: #fff; }
.av-head__lead { color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.55; max-width: 64ch; }
/* no mobile os doodles não competem com o texto (mesmo padrão das demais páginas) */
@media (max-width: 600px) {
  .av-head__art .doodle--sparkle, .av-head__art .doodle--wave-dot, .av-head__art .doodle--dots { display: none; }
}

/* landing (Visão geral): caminho de 3 passos + escolha de visão — subido no topo */
.av-landing { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: clamp(30px, 5vh, 60px); padding: 8px 16px 48px; text-align: center; }

.av-path { position: relative; width: 100%; max-width: 900px; }
.av-path__track { position: absolute; top: 38px; left: 16.66%; right: 16.66%; height: 3px; border-radius: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--color-pastel-lavender-deep), var(--color-pastel-aqua) 50%, var(--color-primary-pure)); opacity: .45; }
.av-path__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 28px); position: relative; z-index: 1; }
.av-path__step { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 8px; }
.av-path__node { position: relative; width: 124px; height: 76px; border-radius: var(--border-radius-sm-14); display: grid; place-items: center; box-shadow: var(--theme-card-shadow); transition: transform var(--motion-dur-fast) var(--motion-ease), box-shadow var(--motion-dur-fast) var(--motion-ease); }
.av-path__node--reg { background: color-mix(in srgb, var(--color-pastel-lavender) 50%, #fff); }
.av-path__node--ref { background: color-mix(in srgb, var(--color-pastel-aqua) 58%, #fff); }
.av-path__node--ava { background: color-mix(in srgb, var(--color-primary-pure) 12%, #fff); }
.av-path__num { font-family: var(--theme-font-family-heading); position: absolute; top: -9px; left: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary-pure); color: #fff; font-style: normal; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: var(--theme-panel-shadow); z-index: 2; }
.av-path__title { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-path__desc { font-size: 13.5px; line-height: 1.5; color: var(--theme-text-muted); max-width: 230px; }
.av-path__step:hover .av-path__node { transform: translateY(-3px); box-shadow: var(--theme-panel-shadow); }

/* mini-mockups dos componentes do sistema dentro de cada passo */
.av-mock { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.av-mock--reg { gap: 8px; }
.av-mock__play { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--theme-card-shadow); }
.av-mock__play svg { width: 11px; height: 11px; fill: var(--color-primary-pure); }
.av-mock__wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; }
.av-mock__wave i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--color-primary-pure) 48%, var(--color-pastel-lavender)); }
.av-mock--ref { flex-direction: column; gap: 9px; padding: 0 16px; }
.av-mock__ticks { display: flex; justify-content: space-between; width: 100%; }
.av-mock__ticks i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--color-accent-pure) 28%, #fff); }
.av-mock__ticks i.is-on { background: var(--color-primary-pure); }
.av-mock__track { position: relative; width: 100%; height: 14px; }
.av-mock__rail { position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 2px; background: color-mix(in srgb, var(--color-accent-pure) 22%, #fff); }
.av-mock__knob { position: absolute; top: 50%; left: 62.5%; transform: translate(-50%, -50%); width: 24px; height: 14px; border-radius: var(--border-radius-pill); background: var(--color-primary-pure); box-shadow: var(--theme-card-shadow); }
.av-mock--ava svg { width: 58px; height: 58px; overflow: visible; }
.av-mock__ring { fill: none; stroke: color-mix(in srgb, var(--color-primary-pure) 24%, #fff); stroke-width: 1.6; }
.av-mock__poly { fill: color-mix(in srgb, var(--color-primary-pure) 24%, transparent); stroke: var(--color-primary-pure); stroke-width: 2.2; stroke-linejoin: round; }

.av-landing__choose { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.av-landing__title { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.015em; color: var(--theme-text-heading); }
.av-landing__scopes { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.av-dd--lg .av-dd__btn { min-height: 46px; font-size: 14.5px; padding: 0 18px; }

/* entrada em cascata dos passos */
.view--avaliacao.is-current .av-path__step { animation: avPathIn .5s var(--motion-ease) both; }
.view--avaliacao.is-current .av-path__step:nth-child(2) { animation-delay: .09s; }
.view--avaliacao.is-current .av-path__step:nth-child(3) { animation-delay: .18s; }
@keyframes avPathIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Cards / resumo / atividades / radar
   ============================================================ */
.av-sum { position: relative; border-radius: var(--theme-card-radius); padding: 22px 26px; display: flex; flex-direction: column; gap: 14px;
  border: 1.5px solid transparent; box-shadow: var(--theme-card-shadow); }
/* IA (não editado): fundo em gradiente pastel — sinaliza conteúdo gerado por IA (igual às pranchas) */
.av-sum--ai {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--color-pastel-peach) 30%, #fff) 0%, color-mix(in srgb, var(--color-pastel-aqua) 34%, #fff) 46%, color-mix(in srgb, var(--color-pastel-lavender) 40%, #fff) 100%) padding-box,
    linear-gradient(118deg, var(--color-primary-pure), var(--color-pastel-lavender-deep) 36%, var(--color-pastel-aqua) 70%, var(--color-success-soft)) border-box; }
/* Editado pelo professor: volta a branco — sinaliza que não é mais um resumo de IA puro */
.av-sum--edited {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(118deg, var(--color-primary-pure), var(--color-pastel-lavender-deep) 36%, var(--color-pastel-aqua) 70%, var(--color-success-soft)) border-box; }
.av-sum.is-empty { background: #fff; border: 1px solid var(--theme-panel-border); }
.av-sum__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.av-sum__title { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-sum__sub { font-size: 13.5px; color: var(--theme-text-muted); margin-top: 4px; }
.av-sum__flag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--color-primary-pure) 70%, var(--theme-text-muted)); }
.av-sum__flag svg { width: 14px; height: 14px; fill: var(--color-primary-pure); }
.av-sum__flag--edited { color: var(--theme-text-muted); }
.av-sum__flag--edited svg { fill: none; stroke: var(--color-surface-pure); stroke-width: 1.8; }
.av-sum__text { color: var(--theme-text-heading); font-size: 14.5px; line-height: 1.62; display: flex; flex-direction: column; gap: 10px; }
.av-sum__text b { font-weight: 800; }
.av-sum__empty { color: var(--color-surface-pure); font-size: 14px; line-height: 1.6; max-width: 560px; }

.av-grid2 { display: grid; grid-template-columns: 1fr 1.18fr; gap: 18px; align-items: start; }
.av-card { background: #fff; border: 1px solid var(--theme-panel-border); border-radius: var(--theme-card-radius); padding: 20px 22px; box-shadow: var(--theme-card-shadow); }
/* cabeçalho dos av-cards: DS:CardHead (.card-hd) em css/styles.css */

/* DS:Log — o item deste card é o .atr-feed__item de css/styles.css, sem
   variante local. Existia aqui um componente paralelo (.av-act, .av-act__ic,
   .av-act__body, .av-act__time) que copiava a geometria mas trazia glifos e
   paleta próprios: era ele que fazia a lista destoar do feed do painel e do
   Histórico completo. Foi removido — sobra só o que é desta tela, o
   enquadramento da lista dentro do card e o estado vazio. */
.av-act--empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--color-surface-pure); font-size: 13.5px; padding: 20px 0 12px; border: 0; }

/* ---- radar ---- */
.av-radar__plot { display: grid; place-items: center; padding: 16px 18px 10px; }
.av-radar__svg { width: 100%; max-width: 470px; height: auto; overflow: visible; }
.av-radar__ring { fill: none; stroke: var(--color-surface-mist); stroke-width: .35; }
.av-radar__spoke { stroke: var(--color-surface-mist); stroke-width: .35; }
.av-radar__bead { fill: var(--color-surface-light); }
.av-radar__lbl { font-family: var(--theme-font-family-base); font-size: 3.1px; font-weight: 700; fill: var(--color-surface-dark); }
/* preenchimento em gradiente pastel suave (aproxima o design de referência) */
.av-radar__g0 { stop-color: var(--color-pastel-lavender); stop-opacity: .55; }
.av-radar__g1 { stop-color: var(--color-pastel-aqua); stop-opacity: .5; }
.av-radar__g2 { stop-color: var(--color-pastel-butter); stop-opacity: .62; }
.av-radar__post { fill: url(#avRadarFill); stroke: color-mix(in srgb, var(--color-primary-pure) 32%, transparent); stroke-width: .7; stroke-linejoin: round; }
.av-radar__post--solo { fill: url(#avRadarFill); }
.av-radar__ante { fill: none; stroke: var(--color-accent-pure); stroke-width: .7; stroke-dasharray: 2 2; stroke-linejoin: round; }
.av-radar__dot { fill: color-mix(in srgb, var(--color-primary-pure) 62%, #fff); stroke: #fff; stroke-width: .35; }
.av-radar__svg.is-anim .av-radar__data { transform-origin: 50% 50%; animation: avRadarIn .7s var(--motion-ease) both; }
@keyframes avRadarIn { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
.av-radar__legend { display: flex; gap: 16px; justify-content: center; margin-top: 4px; }
.av-radar__lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--theme-text-muted); }
.av-radar__lg::before { content: ""; width: 14px; height: 9px; border-radius: 3px; }
.av-radar__lg--ante::before { background: #fff; border: 1px dashed var(--color-accent-pure); }
.av-radar__lg--post::before { background: linear-gradient(120deg, var(--color-pastel-lavender), var(--color-pastel-aqua) 55%, var(--color-pastel-butter)); }
.av-radar__empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 12px 6px; }
.av-radar__empty p { font-size: 13.5px; line-height: 1.55; color: var(--theme-text-muted); max-width: 320px; }


/* ============================================================
   Botões / pílulas comuns do módulo
   ============================================================ */
.av-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--border-radius-pill);
  font-family: var(--theme-font-family-base); font-weight: 700; font-size: 14px; cursor: pointer; border: 0; transition: transform var(--motion-dur-fast) var(--motion-ease), background var(--motion-dur-fast) var(--motion-ease), box-shadow var(--motion-dur-fast) var(--motion-ease); }
.av-btn svg { width: 17px; height: 17px; }
.av-btn--primary { background: var(--color-primary-pure); color: #fff; box-shadow: var(--theme-panel-shadow); }
.av-btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.av-btn--primary svg { fill: none; stroke: currentColor; }
.av-btn--ghost { background: #fff; color: var(--color-primary-pure); border: 1.5px solid color-mix(in srgb, var(--color-primary-pure) 35%, #fff); }
.av-btn--ghost:hover { border-color: var(--color-primary-pure); transform: translateY(-1px); }
.av-btn--ghost svg { fill: none; stroke: currentColor; }
.av-btn--lg { min-height: 52px; padding: 0 30px; font-size: 15px; }
.av-btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.av-btn--block { width: 100%; justify-content: center; }
.av-btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.av-btn:disabled:hover { transform: none; background: var(--color-primary-pure); border-color: color-mix(in srgb, var(--color-primary-pure) 35%, #fff); }
.av-btn--ghost:disabled { background: #fff; }
.av-btn--ghost:disabled:hover { background: #fff; }

.av-pill-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--border-radius-pill);
  background: var(--color-primary-pure); color: #fff; border: 0; font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--theme-card-shadow);
  transition: transform var(--motion-dur-fast) var(--motion-ease), background var(--motion-dur-fast) var(--motion-ease); }
.av-pill-btn:hover { transform: translateY(-1px); background: var(--color-primary-dark); }
.av-pill-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.av-pill-btn--ghost { background: #fff; color: var(--color-primary-pure); border: 1.5px solid color-mix(in srgb, var(--color-primary-pure) 35%, #fff); box-shadow: none; }
.av-pill-btn--ghost:hover { background: color-mix(in srgb, var(--color-primary-pure) 8%, #fff); border-color: var(--color-primary-pure); }

.av-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--theme-text-muted); padding: 5px 12px; border-radius: var(--border-radius-pill); background: var(--theme-surface-muted); }
.av-tag svg { width: 14px; height: 14px; fill: none; stroke: var(--color-surface-pure); stroke-width: 1.7; }

/* estados vazios: ícone esmaecido e sutil */
.av-empty-ic { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb, var(--theme-surface-muted) 70%, #fff); color: var(--base-400); }
.av-empty-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .9; }
.av-sum__emptywrap { display: flex; gap: 18px; align-items: center; }

/* ============================================================
   Tela de loading "AI-like" ao re-gerar a avaliação (5s)
   ============================================================ */
.av-regen { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; }
.av-regen__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-surface-deepest) 44%, transparent); backdrop-filter: blur(10px); }
.av-regen__panel { position: relative; z-index: 1; width: min(468px, 92vw); padding: 40px 38px 34px; border-radius: var(--border-radius-lg); background: #fff; opacity: 1; box-shadow: var(--theme-modal-shadow); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: avRegenIn .42s var(--motion-ease); }
/* entrada só com transform (nunca anima opacidade) para o painel jamais ficar transparente */
@keyframes avRegenIn { from { transform: translateY(14px) scale(.985); } to { transform: none; } }
.av-regen.is-out { animation: avRegenOut .28s var(--motion-ease) forwards; }
@keyframes avRegenOut { to { opacity: 0; } }

.av-regen__orb { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 10px; }
.av-regen__ring { position: absolute; inset: 24px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--color-primary-pure) 45%, #fff); animation: avRegenPulse 2.2s var(--motion-ease) infinite; }
.av-regen__ring:nth-child(2) { animation-delay: .6s; }
.av-regen__ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes avRegenPulse { 0% { transform: scale(.55); opacity: .85; } 100% { transform: scale(1.7); opacity: 0; } }
.av-regen__core { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-primary-pure), var(--color-pastel-lavender-deep) 52%, var(--color-accent-pure));
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--color-primary-pure) 55%, transparent); animation: avRegenGlow 2s ease-in-out infinite; }
.av-regen__core svg { width: 30px; height: 30px; fill: #fff; animation: avRegenSpin 3.6s linear infinite; }
@keyframes avRegenGlow { 0%, 100% { box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--color-primary-pure) 45%, transparent); } 50% { box-shadow: 0 12px 38px -4px color-mix(in srgb, var(--color-primary-pure) 72%, transparent); } }
@keyframes avRegenSpin { to { transform: rotate(360deg); } }
.av-regen__orb.is-static .av-regen__ring, .av-regen__orb.is-static .av-regen__core, .av-regen__orb.is-static .av-regen__core svg { animation: none; }

.av-regen__title { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 23px; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-regen__sub { font-size: 13.5px; line-height: 1.5; color: var(--color-surface-pure); max-width: 320px; }
.av-regen__list { list-style: none; margin: 16px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 11px; width: 100%; text-align: left; }
.av-regen__li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--color-surface-soft); transition: color .3s var(--motion-ease); }
.av-regen__dot { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--theme-panel-border); display: grid; place-items: center; box-sizing: border-box; transition: background .3s var(--motion-ease), border-color .3s var(--motion-ease); }
.av-regen__dot svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.4; opacity: 0; }
.av-regen__li.is-active { color: var(--theme-text-heading); font-weight: 700; }
.av-regen__li.is-active .av-regen__dot { border-color: var(--theme-panel-border); border-top-color: var(--color-primary-pure); animation: avRegenSpin .8s linear infinite; }
.av-regen__li.is-done { color: var(--theme-text-muted); }
.av-regen__li.is-done .av-regen__dot { background: var(--color-primary-pure); border-color: var(--color-primary-pure); animation: none; }
.av-regen__li.is-done .av-regen__dot svg { opacity: 1; }
.av-regen__bar { width: 100%; height: 5px; border-radius: 3px; background: var(--theme-surface-muted); overflow: hidden; margin-top: 16px; }
.av-regen__bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--color-primary-pure), var(--color-pastel-lavender-deep) 55%, var(--color-pastel-aqua)); animation: avRegenBar 5s linear forwards; }
@keyframes avRegenBar { to { width: 100%; } }

/* entrada da view */
.view--avaliacao.is-current .av-rail { animation: avRise .5s var(--motion-ease) both; }
.view--avaliacao.is-current .av-main { animation: avRise .55s var(--motion-ease) .06s both; }
@keyframes avRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   MODAL — Editor de ASET (matriz / aluno) + seletor stepped
   ============================================================ */
.av-modal { position: fixed; inset: 0; z-index: 180; display: flex; justify-content: center; align-items: flex-start; padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.av-modal[hidden] { display: none; }
.av-aset__backdrop { position: fixed; inset: 0; background: var(--theme-modal-overlay-bg); backdrop-filter: blur(var(--theme-modal-overlay-blur)); }
.av-aset__card { position: relative; z-index: 1; width: min(1320px, 96vw); margin: auto 0; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--border-radius-md); box-shadow: var(--theme-modal-shadow); animation: avPop .4s var(--motion-ease) both; }
@keyframes avPop { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.av-aset__top { display: flex; align-items: center; justify-content: space-between; padding: 26px 30px 14px; }
.av-aset__title { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; color: var(--color-primary-deep); }
.av-aset__close { width: 38px; height: 38px; border-radius: var(--border-radius-sm); border: 0; background: var(--theme-surface-muted); color: var(--theme-text-muted); cursor: pointer; display: grid; place-items: center; transition: transform var(--motion-dur-fast) var(--motion-ease), background var(--motion-dur-fast) var(--motion-ease); }
.av-aset__close:hover { background: var(--color-surface-mist); transform: rotate(90deg); }
.av-aset__close svg { width: 16px; height: 16px; }

.av-aset__tabs { display: flex; gap: 6px; padding: 12px 30px 0; overflow-x: auto; border-bottom: 1px solid var(--theme-panel-border); scrollbar-width: thin; scroll-behavior: smooth; }
.av-tab { position: relative; flex: none; padding: 11px 15px 13px; border: 0; border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0; background: transparent; cursor: pointer;
  font-family: var(--theme-font-family-base); font-weight: 600; font-size: 12.5px; line-height: 1.32; color: var(--color-surface-pure); max-width: 138px; text-align: left;
  transition: color var(--motion-dur-fast) var(--motion-ease), background var(--motion-dur-fast) var(--motion-ease); }
.av-tab::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2.5px; border-radius: 2px; background: transparent; transition: background var(--motion-dur-fast) var(--motion-ease); }
.av-tab:hover { color: var(--theme-text-heading); background: color-mix(in srgb, var(--theme-surface-muted) 70%, #fff); }
.av-tab.is-on { color: var(--color-primary-deep); font-weight: 800; background: color-mix(in srgb, var(--color-pastel-lavender) 22%, #fff); }
.av-tab.is-on::after { left: 0; right: 0; background: var(--color-primary-pure); }

.av-aset__scroller { padding: 8px 30px 6px; }
.av-aset__marker { padding: 6px 30px; }
.av-aset__foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 16px 30px 22px; border-top: 1px solid var(--theme-panel-border); }

/* matriz */
.av-matrix__head { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 18px 0 22px; }
.av-matrix__namecol {}
.av-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.av-col { position: relative; text-align: center; padding: 0 14px; border-radius: var(--border-radius-sm-14); transition: background var(--motion-dur-fast) var(--motion-ease); }
.av-col__anchor { font-size: 11.5px; line-height: 1.45; color: var(--theme-text-muted); min-height: 74px; }
.av-col__num { display: block; font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 44px; line-height: 1; color: var(--color-surface-soft); margin-top: 8px; transition: color var(--motion-dur-fast) var(--motion-ease), transform var(--motion-dur-fast) var(--motion-ease); }
.av-col--target .av-col__num { color: var(--base-400); }
.av-col__tag { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--color-success-darker); }
.av-col--avg { background: color-mix(in srgb, var(--color-primary-pure) 6%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary-pure) 16%, #fff); padding-top: 8px; }
.av-col--avg .av-col__num { color: var(--color-primary-pure); }
.av-col__avg { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--color-primary-pure); margin-bottom: 6px; }
.av-col.is-hit { background: color-mix(in srgb, var(--color-primary-pure) 12%, #fff); }
.av-col.is-hit .av-col__num { color: var(--color-primary-pure); transform: translateY(-2px); }

.av-matrix__rows { display: flex; flex-direction: column; }
.av-srow { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--color-surface-pale); }
.av-srow__name { font-family: var(--theme-font-family-heading); display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--theme-text-heading); }
.av-srow__ava { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--theme-text-heading); }

/* trilha + knob (seletor) */
.av-track { position: relative; height: 56px; }
.av-track__rail { position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: 2px;
  background: linear-gradient(90deg, var(--color-surface-mist), var(--color-surface-mist)); }
.av-knob { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 24px; border-radius: var(--border-radius-pill); border: 0; cursor: grab;
  background: var(--color-primary-pure); box-shadow: var(--theme-panel-shadow); touch-action: none;
  transition: left .42s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--motion-dur-fast) var(--motion-ease), background var(--motion-dur-fast) var(--motion-ease); }
.av-knob:focus-visible { outline: 3px solid var(--color-accent-pure); outline-offset: 3px; }
.av-knob.is-grab { cursor: grabbing; box-shadow: var(--lkt-shadow-level4); }
.av-knob.is-pop { animation: avKnobPop .36s var(--motion-ease); }
@keyframes avKnobPop { 0% { transform: translate(-50%, -50%) scale(1.28); } 100% { transform: translate(-50%, -50%) scale(1); } }
.av-knob--ai { background: color-mix(in srgb, var(--color-primary-pure) 18%, #fff); box-shadow: inset 0 0 0 2px var(--color-primary-pure); }
.av-knob--default { background: color-mix(in srgb, var(--color-primary-pure) 70%, #fff); }
.av-knob--exante { background: color-mix(in srgb, var(--color-primary-pure) 82%, #fff); }
/* origem do movimento: contorno tracejado, no formato do knob, no lugar de onde saiu */
.av-ghost { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 22px; border-radius: var(--border-radius-pill);
  border: 1.5px dashed color-mix(in srgb, var(--color-primary-pure) 55%, #fff); background: color-mix(in srgb, var(--color-primary-pure) 6%, #fff); z-index: 1; }

/* rastro (trail): faixa em gradiente ligando a origem à nova posição sugerida pela IA.
   A seta do sentido viaja sobre o rastro; o rótulo fica logo abaixo, centrado no rastro. */
.av-trail { position: absolute; top: 50%; height: 8px; border-radius: var(--border-radius-pill); z-index: 2;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-primary-pure) 20%, #fff), var(--color-primary-pure));
  box-shadow: 0 3px 12px -3px color-mix(in srgb, var(--color-primary-pure) 55%, transparent);
  transform: translateY(-50%); transform-origin: left center; animation: avTrailGrow .5s var(--motion-ease) both; }
.av-trail--rev { transform-origin: right center;
  background: linear-gradient(270deg, color-mix(in srgb, var(--color-primary-pure) 20%, #fff), var(--color-primary-pure)); }
@keyframes avTrailGrow { from { transform: translateY(-50%) scaleX(0); } to { transform: translateY(-50%) scaleX(1); } }
.av-trail__arrow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--color-primary-pure);
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--color-primary-deep) 42%, transparent), 0 0 0 3px color-mix(in srgb, var(--color-primary-pure) 14%, transparent); }
.av-trail__arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.av-trail--rev .av-trail__arrow { transform: translate(-50%, -50%) scaleX(-1); }
/* rótulo do movimento sugerido por IA, centrado no rastro, logo abaixo da trilha */
.av-aimove { position: absolute; top: calc(50% + 16px); transform: translateX(-50%); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--color-primary-pure) 60%, var(--color-surface-pure)); white-space: nowrap; pointer-events: none; z-index: 2; }
/* chip "Confirma?" com borda em gradiente (roxo -> indigo -> verde), como as pranchas */
.av-confirm { position: absolute; top: calc(50% - 32px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--border-radius-pill); border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, var(--color-primary-pure), var(--color-accent-pure) 48%, var(--color-success-soft)) border-box;
  color: var(--color-primary-deep); font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: var(--theme-panel-shadow); white-space: nowrap; z-index: 3;
  transition: transform var(--motion-dur-fast) var(--motion-ease), box-shadow var(--motion-dur-fast) var(--motion-ease); }
.av-confirm:hover { transform: translateX(-50%) translateY(-1px); box-shadow: var(--theme-shadow-lg); }
.av-confirm svg { width: 14px; height: 14px; fill: var(--color-primary-pure); }

/* tooltip do "Confirma?": contexto que motivou a movimentação da IA (hover/focus) */
.av-confirm__tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 264px;
  background: var(--theme-text-heading); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.45; text-align: left; white-space: normal;
  padding: 9px 12px; border-radius: var(--border-radius-sm-14); box-shadow: var(--theme-modal-shadow);
  opacity: 0; pointer-events: none; z-index: 20;
  transition: opacity .16s var(--motion-ease), transform .16s var(--motion-ease); }
.av-confirm__tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--theme-text-heading); }
.av-confirm__tip b { font-weight: 800; }
.av-confirm__tipmeta { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: color-mix(in srgb, #fff 68%, var(--color-pastel-lavender)); }
.av-confirm:hover .av-confirm__tip,
.av-confirm:focus-visible .av-confirm__tip { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .av-confirm__tip { transition: none; } }

/* ============================================================
   MODAIS — Lembrete, Registro rápido, Edição do resumo
   (usam a base .modal/.modal__card de styles.css)
   ============================================================ */
.av-lembrete__card { width: min(440px, 100%); text-align: left; gap: 0; padding: 26px 28px 24px; }
.av-lembrete__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--border-radius-sm-14); margin-bottom: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--color-pastel-lavender) 45%, #fff); color: var(--color-primary-pure); }
.av-lembrete__mark svg { width: 26px; height: 26px; fill: currentColor; }
.av-lembrete__mark img { width: 100%; height: 100%; object-fit: cover; }
.av-lembrete__card h2 { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 23px; line-height: 1.18; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-lembrete__rule { border: 0; border-top: 1px solid var(--theme-panel-border); margin: 20px 0; }
.av-lembrete__no { display: block; width: 100%; margin-top: 10px; background: transparent; border: 0; cursor: pointer; font-family: var(--theme-font-family-base); font-weight: 700; font-size: 15px; color: var(--theme-text-heading); padding: 10px; }
.av-lembrete__no:hover { color: var(--color-primary-pure); }

.av-regmodal__card { width: min(560px, 100%); text-align: left; gap: 0; padding: 26px 28px 22px; align-items: stretch; }
.av-regmodal__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--border-radius-sm-14); margin-bottom: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--color-pastel-lavender) 45%, #fff); color: var(--color-primary-pure); }
.av-regmodal__mark svg { width: 26px; height: 26px; fill: currentColor; }
.av-regmodal__mark img { width: 100%; height: 100%; object-fit: cover; }
.av-regmodal__card h2 { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 24px; line-height: 1.16; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-regmodal__ctx { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 3px; }
.av-regmodal__ctx p { font-size: 15px; color: var(--color-surface-darker); }
.av-regmodal__ctx b { color: var(--theme-text-heading); font-weight: 700; }
.av-composer--modal { border: 1px solid var(--theme-panel-border); border-top: 1px solid var(--theme-panel-border); border-radius: var(--border-radius-xs); padding: 10px 12px; }

.av-resumo__card { width: min(900px, 96vw); margin: auto 0; gap: 0; padding: 0; text-align: left;
  border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(118deg, var(--color-primary-pure), var(--color-pastel-lavender-deep) 36%, var(--color-pastel-aqua) 70%, var(--color-success-soft)) border-box; }
.av-resumo__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 14px; }
.av-resumo__id h2 { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 24px; letter-spacing: -.01em; color: var(--theme-text-heading); }
.av-resumo__id p { font-size: 13px; color: var(--theme-text-muted); margin-top: 3px; }
.av-resumo__actions { display: flex; gap: 10px; flex: none; }
.av-resumo__toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 26px; border-top: 1px solid var(--theme-panel-border); border-bottom: 1px solid var(--theme-panel-border); flex-wrap: wrap; }
.av-tbtn { min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--border-radius-nano); border: 1px solid transparent; background: transparent; cursor: pointer; font-family: var(--theme-font-family-base); font-weight: 800; font-size: 15px; color: var(--theme-text-heading); }
.av-tbtn--i { font-style: italic; }
.av-tbtn--u { text-decoration: underline; }
.av-tbtn:hover { background: var(--theme-surface-muted); border-color: var(--theme-panel-border); }
.av-resumo__div { width: 1px; height: 20px; background: var(--color-surface-mist); margin: 0 6px; }
.av-resumo__edit { padding: 22px 26px 28px; font-size: 15px; line-height: 1.65; color: var(--theme-text-heading); }
.av-resumo__edit:focus { outline: none; }
.av-resumo__edit p { margin: 0 0 12px; }
.av-resumo__edit h3 { font-family: var(--theme-font-family-heading); font-weight: 800; font-size: 18px; margin: 0 0 8px; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1080px) {
  .av-shell { grid-template-columns: 1fr; }
  .av-rail { position: relative; top: 0; height: auto; max-height: 68vh; }
  .av-grid2 { grid-template-columns: 1fr; }
  .av-path__steps { grid-template-columns: 1fr; gap: 22px; max-width: 360px; margin: 0 auto; }
  .av-path__track { display: none; }
  .av-path__desc { max-width: none; }
  .av-landing__scopes { justify-content: center; }
}
@media (max-width: 768px) {
  /* limpa a mobile-bar fixa no topo do fluxo */
  .view--avaliacao { padding: 76px 14px 0; }
  /* CTAs ocupam uma linha inteira abaixo dos dropdowns */
  .av-ctas { width: 100%; }
  .av-ctas .av-btn { flex: 1; justify-content: center; }
  .av-aset__card { width: 100%; height: 100%; border-radius: 0; }
  .av-matrix__head, .av-srow { grid-template-columns: 96px 1fr; gap: 8px; }
  .av-col { padding: 0 6px; }
  .av-col__anchor { font-size: 10px; min-height: 96px; }
  .av-col__num { font-size: 32px; }
  .av-aset__tabs, .av-aset__scroller, .av-aset__top, .av-aset__foot, .av-aset__marker { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .view--avaliacao.is-current .av-rail, .view--avaliacao.is-current .av-main,
  .view--avaliacao.is-current .av-path__step,
  .av-aset__card, .av-dd__menu, .av-radar__svg.is-anim .av-radar__data { animation: none; }
  .av-knob, .av-path__node { transition: none; }
  .av-knob.is-pop { animation: none; }
  .av-trail { animation: none; }
  .av-btn, .av-pill-btn, .av-dd__btn, .av-composer__send { transition: none; }
  .av-aset__close:hover { transform: none; }
  .av-regen__panel, .av-regen__ring, .av-regen__core, .av-regen__core svg,
  .av-regen__li.is-active .av-regen__dot, .av-regen__bar span { animation: none; }
  .av-regen__bar span { width: 100%; }
}

/* foco visível consistente em todos os controles interativos do módulo */
.av-dd__btn:focus-visible, .av-dd__opt:focus-visible, .av-tab:focus-visible,
.av-tbtn:focus-visible, .av-btn:focus-visible, .av-pill-btn:focus-visible,
.av-confirm:focus-visible, .av-composer__add:focus-visible, .av-composer__mic:focus-visible,
.av-composer__send:focus-visible, .av-reg__play:focus-visible, .av-rail__collapse:focus-visible,
.av-aset__close:focus-visible, .av-aset__tabs .av-tab:focus-visible,
.av-resumo__edit:focus-visible {
  outline: 3px solid var(--color-accent-pure); outline-offset: 2px;
}
