/* Comum aos dois estilos (colorido e limpo): ícones do manual da marca, foguinho e a escolha de estilo. */

/* ---------- ícones duotom: marinho + verde-água, detalhes na cor do fundo ---------- */
:root { --ic-a: #0b2556; --ic-b: #19cdb6; --ic-c: #ffffff; --tile: #ffffff; --tile-borda: #e3e9f6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ic-a: #c7d6fb; --ic-b: #2fd6c1; --ic-c: #16213a; --tile: #1c2945; --tile-borda: #2a3856; } }
:root[data-theme="dark"] { --ic-a: #c7d6fb; --ic-b: #2fd6c1; --ic-c: #16213a; --tile: #1c2945; --tile-borda: #2a3856; }

/* o quadradinho branco do manual (com sombra macia), no lugar dos quadrados pastel */
.acao-icone, .acao-icone.azul, .acao-icone.verde, .acao-icone.laranja, .acao-icone.roxo {
  background: var(--tile) !important; color: inherit !important; border: 1px solid var(--tile-borda);
  display: grid !important; place-items: center !important; place-content: center !important; padding: 0 !important; flex-shrink: 0;
  transition: transform .2s, box-shadow .2s;
}
.acao-icone svg { width: 26px !important; height: 26px !important; margin: 0 !important; padding: 0 !important; background: none !important; }
[data-visual="colorido"] .acao-icone { width: 46px !important; height: 46px !important; border-radius: 14px !important; box-shadow: 0 8px 16px -10px rgb(11 37 86 / .45), 0 1px 0 rgb(11 37 86 / .04); }
[data-visual="colorido"] .linha .acao-icone, [data-visual="colorido"] .banner-osce .acao-icone { width: 42px !important; height: 42px !important; border-radius: 13px !important; }
[data-visual="colorido"] .acao-icone.grande { width: 64px !important; height: 64px !important; border-radius: 18px !important; }
[data-visual="colorido"] .acao-icone.grande svg { width: 32px !important; height: 32px !important; }
/* Limpo (rebranding): ícone de traço sem fundo, na cor do texto secundário */
[data-visual="limpo"] { --ic-duo: none; --ic-linha: inline; }
[data-visual="limpo"] .acao-icone { width: 20px !important; height: 20px !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; border: 0 !important; color: var(--tinta-2) !important; }
[data-visual="limpo"] .acao-icone svg { width: 20px !important; height: 20px !important; stroke-width: 1.6; }
[data-visual="limpo"] .acao-icone.grande { width: 32px !important; height: 32px !important; }
[data-visual="limpo"] .acao-icone.grande svg { width: 32px !important; height: 32px !important; stroke-width: 1.4; }
@media (hover: hover) and (pointer: fine) { [data-visual="colorido"] .acao:hover .acao-icone, [data-visual="colorido"] .banner-osce:hover .acao-icone { transform: translateY(-1px) rotate(-3deg); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acao-icone { box-shadow: none !important; } }
:root[data-theme="dark"] .acao-icone { box-shadow: none !important; }

/* menu: ícone cinza quando parado, marinho + verde-água quando ativo */
.nav-item { --ic-a: currentColor; --ic-b: color-mix(in srgb, currentColor 45%, transparent); --ic-c: var(--folha); }
@media (hover: hover) and (pointer: fine) { .nav-item:hover { --ic-b: var(--acento); } }
.nav-item[aria-current="page"] { --ic-a: var(--marinho); --ic-b: var(--acento); }
.nav-item svg { transition: transform .2s; }
.nav-item[aria-current="page"] svg { animation: icone-pula .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes icone-pula { 50% { transform: scale(1.15); } }

/* abas das ferramentas de estudo e outros lugares em linha */
.ferramentas button { --ic-a: currentColor; --ic-b: color-mix(in srgb, currentColor 45%, transparent); --ic-c: var(--folha); }
.ferramentas button[aria-current="true"] { --ic-a: var(--marinho); --ic-b: var(--acento); }
.entrada-lista svg { --ic-a: #ffffff; --ic-b: #5ff0dc; --ic-c: #0b2556; }
.linha-menu svg { --ic-c: var(--folha); }
.btn-primario svg { --ic-a: currentColor; --ic-b: currentColor; --ic-c: var(--botao); }

/* ---------- foguinho (sequência de dias) ---------- */
.sequencia .fogo { display: none; }
.sequencia { display: inline-flex; align-items: center; gap: 7px; }
.sequencia::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.07-2.14 0-5.5 3-7 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.15.43-2.29 1-3a2.5 2.5 0 0 0 2.5 2.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.07-2.14 0-5.5 3-7 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.15.43-2.29 1-3a2.5 2.5 0 0 0 2.5 2.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sequencia.ativa::before { opacity: 1; background: linear-gradient(180deg, #fde047 0%, #fb923c 50%, #ea580c 100%); filter: drop-shadow(0 0 5px rgb(249 115 22 / .6)); transform-origin: 50% 90%; animation: chama-acende .7s cubic-bezier(.2, 1.6, .4, 1) both, chama-tremula 1.6s ease-in-out .7s infinite; }
.sequencia.ativa { animation: badge-acende 1.1s ease both; }
@keyframes chama-acende { 0% { transform: scale(0) rotate(-25deg); opacity: 0; } 60% { transform: scale(1.4) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes chama-tremula { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.07, .95) rotate(-4deg); } 50% { transform: scale(.96, 1.06) rotate(3deg); } 75% { transform: scale(1.04, .98) rotate(-1deg); } }
@keyframes badge-acende { 0% { box-shadow: 0 0 0 0 rgb(249 115 22 / .5); } 100% { box-shadow: 0 0 0 12px rgb(249 115 22 / 0); } }

/* emojis que viraram vazio */
.v2-vazio:empty, .tour-itens li > span.v2-vazio { display: none; }

/* ---------- escolha de estilo (Perfil > Aparência) ---------- */
.visual-escolha { margin-top: 16px; }
.visual-escolha .rotulo { margin: 0 0 10px; }
.visual-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.visual-opcoes button { display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; border: 1.5px solid var(--linha); border-radius: 14px; background: var(--folha); color: var(--tinta); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
[data-visual="limpo"] .visual-opcoes button { border-radius: 8px; border-width: 1px; }
@media (hover: hover) and (pointer: fine) { .visual-opcoes button:hover { border-color: var(--linha-forte); } }
.visual-opcoes button[aria-checked="true"] { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); }
.visual-opcoes strong { display: block; font-size: .92rem; }
.visual-opcoes small { display: block; font-size: .76rem; color: var(--tinta-3); line-height: 1.3; }
.visual-amostra { width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; }
.visual-amostra i { border-radius: 3px; }
.visual-amostra i:first-child { grid-column: 1 / -1; }
.visual-amostra.colorido { background: linear-gradient(135deg, #0b2556, #1f5fd1); }
.visual-amostra.colorido i:nth-child(1) { background: #19cdb6; } .visual-amostra.colorido i:nth-child(2) { background: #fff; } .visual-amostra.colorido i:nth-child(3) { background: #ffd27a; }
.visual-amostra.limpo { background: #f3f6fb; border: 1px solid #d0d5dd; }
.visual-amostra.limpo i:nth-child(1) { background: #0b2556; } .visual-amostra.limpo i:nth-child(2) { background: #fff; border: 1px solid #d0d5dd; } .visual-amostra.limpo i:nth-child(3) { background: #e4e7ec; }
@media (max-width: 420px) { .visual-opcoes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .sequencia.ativa, .sequencia.ativa::before, .nav-item[aria-current="page"] svg { animation: none; } }

/* ---------- escolha do estilo (conta nova e "roupa nova") ---------- */
.modal-visual { z-index: 1100; animation: aparecer .25s ease both; }
.modal-visual.saindo { animation: sumir .22s ease both; }
@keyframes sumir { to { opacity: 0; } }
.escolha-visual { max-width: 520px !important; width: 100%; text-align: center; gap: 8px !important; padding: 26px 22px 20px !important; }
.escolha-visual h2 { font-size: 1.45rem !important; }
.escolha-visual > p:not(.rotulo):not(.dica) { color: var(--tinta-2); }
.escolha-visual .dica { margin-top: 6px !important; font-size: .8rem !important; color: var(--tinta-3) !important; }
.escolha-cartoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.escolha-cartoes button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 12px 14px; border: 1.5px solid var(--linha); border-radius: 16px; background: var(--folha); color: var(--tinta); font: inherit; cursor: pointer; transition: border-color .2s, transform .15s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .escolha-cartoes button:hover, .escolha-cartoes button:focus-visible { border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 22%, transparent); transform: translateY(-2px); outline: none; } }
.escolha-cartoes strong { font-size: 1rem; margin-top: 6px; }
.escolha-cartoes small { font-size: .78rem; color: var(--tinta-3); line-height: 1.35; }
.previa { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.2fr 1fr; gap: 6px; }
.previa i { display: block; }
.previa .pv-cartao { grid-column: 1 / -1; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; overflow: hidden; }
.previa .pv-cartao b { display: block; height: 5px; border-radius: 3px; width: 60%; }
.previa .pv-cartao b + b { width: 38%; }
.previa .pv-tile { border-radius: 8px; position: relative; }
.previa .pv-tile::before { content: ""; position: absolute; left: 7px; top: 7px; width: 14px; height: 14px; border-radius: 4px; }
.previa-colorido { background: #eef3fd; }
.previa-colorido .pv-cartao { background: linear-gradient(135deg, #0b2556, #1f5fd1); border-radius: 10px; }
.previa-colorido .pv-cartao::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(90deg, #19cdb6, #12a9c6); clip-path: polygon(0 60%, 25% 20%, 50% 55%, 75% 15%, 100% 50%, 100% 100%, 0 100%); }
.previa-colorido .pv-cartao b { background: #fff; } .previa-colorido .pv-cartao b + b { background: #19cdb6; }
.previa-colorido .pv-tile { background: #fff; border-radius: 10px; box-shadow: 0 4px 8px -4px rgb(11 37 86 / .35); }
.previa-colorido .pv-tile::before { background: linear-gradient(135deg, #0b2556 50%, #19cdb6 50%); border-radius: 5px; }
.previa-limpo { background: #f4f5f7; border: 1px solid #e4e7ec; }
.previa-limpo .pv-cartao { background: #fff; border: 1px solid #e4e7ec; border-radius: 6px; }
.previa-limpo .pv-cartao b { background: #0b2556; } .previa-limpo .pv-cartao b + b { background: #12b5a0; }
.previa-limpo .pv-tile { background: #fff; border: 1px solid #e4e7ec; border-radius: 6px; }
.previa-limpo .pv-tile::before { background: #0b2556; border-radius: 3px; width: 12px; height: 12px; }
@media (max-width: 420px) { .escolha-cartoes { gap: 8px; } .escolha-cartoes button { padding: 10px 8px 12px; } }

/* itens do tutorial: marcador da marca no lugar do emoji */
.tour-itens li { position: relative; padding-left: 16px; }
.tour-itens li::before { content: ""; position: absolute; left: 3px; top: .58em; width: 6px; height: 6px; border-radius: 2px; background: var(--acento); }
.tour-itens li > span:first-child:empty { display: none; }

/* Graduação | Pós-graduação: no cadastro (acima do campo de curso) e no topo da lista de cursos */
.segmentado.nivel-curso { display: flex; width: 100%; margin: 6px 0 8px; }
.segmentado.nivel-curso button { flex: 1; }
.segmentado.nivel-folha { margin: 0 0 12px; }
