/* Página Tutorial do painel: grade de 4 cards e a janela de cada tutorial (panel-tutorial.js). --tc = cor da ferramenta. */
.tut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }

/* ---------- Card ---------- */
.tut-card { --tc: #f05409; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 20px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .07);
    background: radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%), linear-gradient(160deg, #262222 0%, #1b1919 60%, #171515 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px rgba(0, 0, 0, .25); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.tut-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tc) 55%, transparent), transparent) top / 100% 1px no-repeat; opacity: .7; }
.tut-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tc) 45%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--tc) 20%, transparent); }
.tut-card:hover .tut-play { transform: scale(1.1); filter: brightness(1.1); box-shadow: 0 0 0 7px rgba(255, 255, 255, .2), 0 10px 28px rgba(240, 84, 9, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tut-card:focus-visible, .tut-video:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.tut-top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tut-logo { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--orange-light); font-size: 20px; font-weight: 800; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.tut-logo img { width: 100%; height: 100%; object-fit: contain; }
/* Logo sem fundo (ex.: ChatGPT preto): quadrado arredondado na cor de --lbg, como o do Claude Desktop */
.tut-logo-bg { background: var(--lbg); border-radius: 22%; }
.tut-logo-bg img { padding: 9%; }
.tut-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tut-name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tut-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tut-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .04); color: var(--text-body); font-size: 11.5px; font-weight: 700; }
.tut-tag svg { width: 12px; height: 12px; color: var(--tc, var(--orange-light)); }
/* A altura da linha vem só do vídeo (16:9); os quadradinhos se ajustam a ela (contain: size), iguais em todos os cards */
.tut-body { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; align-items: stretch; }
.tut-screen { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; width: 100%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .07);
    background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--tc, #f05409) 14%, #221e1e), #121010 75%); overflow: hidden; }
.tut-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tut-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-play { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, #ff8c42 0%, #f05409 55%, #d94400 100%); border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 0 0 5px rgba(255, 255, 255, .14), 0 8px 22px rgba(240, 84, 9, .55), inset 0 1px 0 rgba(255, 255, 255, .45); transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease; }
/* Com imagem de prévia: botão menor no canto de baixo, para não cobrir o título da imagem */
.tut-screen.has-img .tut-play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; }
.tut-screen.has-img .tut-play svg { width: 20px; height: 20px; margin-left: 3px; }
.tut-play svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
/* 3 quadradinhos ao lado da prévia: nível, tempo e sistema */
.tut-facts { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; contain: size; }
.tut-fact { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 0; padding: 4px 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); text-align: center; overflow: hidden; }
.tut-fact small { color: var(--text-muted); font-size: 10.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
/* Nível: 3 barrinhas que sobem; as acesas na cor do nível */
.tut-f-lvl { border-color: color-mix(in srgb, var(--lvl) 30%, transparent); background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--lvl) 16%, transparent), transparent 75%), rgba(255, 255, 255, .02); }
.tut-f-lvl small { color: var(--lvl); font-weight: 800; letter-spacing: .02em; }
.tut-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.tut-bars i { width: 5px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.tut-bars i:nth-child(1) { height: 7px; } .tut-bars i:nth-child(2) { height: 11px; } .tut-bars i:nth-child(3) { height: 16px; }
.tut-bars i.on { background: var(--lvl); box-shadow: 0 0 8px color-mix(in srgb, var(--lvl) 55%, transparent); }
/* Tempo: número grande e a unidade pequena, em tom laranja */
.tut-f-time { --tm: #cbd5e1; border-color: color-mix(in srgb, var(--tm) 30%, transparent); background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--tm) 16%, transparent), transparent 75%), rgba(255, 255, 255, .02); }
.tut-time { display: inline-flex; align-items: baseline; gap: 3px; }
.tut-num { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.tut-f-time small { color: var(--tm); font-weight: 800; }
/* Sistema: só os logos, maiores e nas cores de cada um (Windows azul, Apple prata), em tom azul */
.tut-f-os { border-color: rgba(59, 142, 224, .3); background: radial-gradient(80% 90% at 50% 0%, rgba(59, 142, 224, .16), transparent 75%), rgba(255, 255, 255, .02); }
.tut-os { display: inline-flex; align-items: center; gap: 10px; }
.tut-os-i { display: inline-flex; }
.tut-os-i svg { width: 22px; height: 22px; }
.tut-os-i.win { color: #3ea6ff; filter: drop-shadow(0 0 6px rgba(62, 166, 255, .45)); }
.tut-os-i.mac { color: #e8e8ed; filter: drop-shadow(0 0 6px rgba(232, 232, 237, .3)); }

/* ---------- Janela ---------- */
body.tut-lock { overflow: hidden; }
.tut-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, .74); backdrop-filter: blur(4px); animation: tut-fade 160ms ease-out; }
.tut-modal { position: relative; display: flex; width: min(860px, 100%); max-height: calc(100vh - 48px); border-radius: 22px; border: 1px solid rgba(255, 255, 255, .09); background: #1b1919; box-shadow: 0 30px 90px rgba(0, 0, 0, .65); overflow: hidden; animation: tut-up 200ms ease-out; }
@keyframes tut-fade { from { opacity: 0; } }
@keyframes tut-up { from { opacity: 0; transform: translateY(10px) scale(.99); } }
/* Sem barra fixa: tudo rola junto; o X fica flutuando no canto */
.tut-scroll { --tc: #f05409; flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 22px;
    background: radial-gradient(520px 260px at 0% 0%, color-mix(in srgb, var(--tc) 18%, transparent), transparent 70%);
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.tut-scroll::-webkit-scrollbar { width: 10px; }
.tut-scroll::-webkit-scrollbar-track { background: transparent; margin: 14px 0; }
.tut-scroll::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background: rgba(255, 255, 255, .16) padding-box; }
.tut-scroll::-webkit-scrollbar-thumb:hover { background: rgba(240, 84, 9, .6) padding-box; }
.tut-scroll::-webkit-scrollbar-button { display: none; height: 0; }
.tut-close { position: absolute; top: 14px; right: 16px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(20, 18, 18, .72); backdrop-filter: blur(6px); color: var(--text-body); cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.tut-close:hover { color: #fff; border-color: rgba(240, 84, 9, .6); }
.tut-close svg { width: 18px; height: 18px; }
.tut-close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tut-mhead { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-right: 48px; }
.tut-mhead .tut-logo { width: 52px; height: 52px; }
.tut-mhead .tut-name { font-size: 26px; }
.tut-video { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.tut-video:not(.soon):hover .tut-play { transform: scale(1.1); filter: brightness(1.1); box-shadow: 0 0 0 7px rgba(255, 255, 255, .2), 0 10px 28px rgba(240, 84, 9, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tut-video.soon { cursor: default; }
.tut-video .tut-play { width: 68px; height: 68px; }
.tut-video .tut-screen.has-img .tut-play { right: 18px; bottom: 18px; width: 64px; height: 64px; }
.tut-video .tut-screen.has-img .tut-play svg { width: 26px; height: 26px; }
.tut-video .tut-play svg { width: 28px; height: 28px; }
.tut-sec { margin-top: 26px; }
.tut-sec h3 { margin: 0 0 12px; color: var(--text-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tut-muted { color: var(--text-muted); font-size: 13px; }
.tut-muted code, .tut-mat p code, .tut-short code { padding: 1px 6px; border-radius: 6px; background: var(--bg-code); border: 1px solid var(--border); color: var(--text); font-family: var(--mono); font-size: 12px; }
/* Sua conexão: chave API, IP e URL */
.tut-conn { margin-top: 0; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); overflow: hidden; }
.tut-conn > .tut-muted { padding: 16px; }
.tut-conn-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; }
.tut-conn-row + .tut-conn-row { border-top: 1px solid rgba(255, 255, 255, .06); }
/* Ícone no estilo dos cards do painel (chave e IP): laranja com reflexo, borda e brilho */
.tut-conn-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #ffb07a; border: 1px solid rgba(240, 84, 9, .55);
    background: radial-gradient(circle at 30% 20%, rgba(255, 150, 80, .38), transparent 60%), linear-gradient(145deg, rgba(240, 84, 9, .32), rgba(240, 84, 9, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 4px rgba(240, 84, 9, .07), 0 4px 18px rgba(240, 84, 9, .28); }
.tut-conn-ic svg { width: 19px; height: 19px; filter: drop-shadow(0 0 6px rgba(240, 84, 9, .6)); }
.tut-conn-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; line-height: 1.25; }
.tut-conn-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.tut-conn-v { min-width: 0; overflow-wrap: anywhere; }
.tut-conn-v > code { font-family: var(--mono); font-size: 12.5px; color: var(--text-body); }
.tut-conn-act { display: inline-flex; align-items: center; gap: 6px; }
.tut-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.tut-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tut-pill.ok { color: var(--ok); background: rgba(52, 211, 153, .1); }
.tut-pill.warn { color: var(--warn); background: rgba(250, 204, 21, .1); }
.tut-pill.bad { color: var(--danger); background: rgba(239, 68, 68, .1); }
.tut-pill.off { color: var(--text-muted); background: rgba(255, 255, 255, .05); }
.tut-ib { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--text-body); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background 150ms ease; }
.tut-ib:hover { color: #fff; border-color: rgba(240, 84, 9, .55); }
.tut-ib.done { color: var(--ok); border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); }
.tut-ib svg { width: 16px; height: 16px; }
.tut-lnk { color: var(--orange-light); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.tut-lnk:hover { text-decoration: underline; }
/* Materiais: skill, arquivo e o resumo curto */
.tut-mats { display: grid; gap: 12px; }
.tut-mat { padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.tut-mat-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tut-mat-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 16%, transparent); color: color-mix(in srgb, var(--tc) 70%, #fff); flex-shrink: 0; }
.tut-mat-ic svg { width: 17px; height: 17px; }
.tut-mat-t { flex: 1; min-width: 160px; }
.tut-mat-t b { display: block; font-size: 14.5px; }
.tut-mat-t small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.tut-mat p { margin: 12px 0 0; color: var(--text-body); font-size: 13.5px; line-height: 1.55; }
.tut-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tut-peek { margin-top: 12px; }
.tut-peek summary { width: max-content; color: var(--text-muted); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tut-peek summary:hover { color: var(--text-body); }
.tut-peek pre { margin: 10px 0 0; max-height: 220px; overflow: auto; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-code); color: var(--text-body); font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.tut-short { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: tut; display: grid; gap: 8px; }
.tut-short li { position: relative; padding-left: 32px; color: var(--text-body); font-size: 13.5px; line-height: 1.5; counter-increment: tut; }
.tut-short li::before { content: counter(tut); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--tc) 16%, transparent); color: color-mix(in srgb, var(--tc) 70%, #fff); font-size: 11.5px; font-weight: 800; }

/* Conexão: aviso quando falta a chave ou o IP desta rede não está liberado */
.tut-conn-row.bad { background: rgba(239, 68, 68, .06); }
.tut-conn-row.warn { background: rgba(250, 204, 21, .05); }
.tut-warn-t { color: var(--text-body); font-size: 13px; }
.tut-warn-t code { padding: 1px 6px; border-radius: 6px; background: var(--bg-code); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; }
.tut-go { white-space: nowrap; }
/* Abas da janela (Passo a passo | Skill | Arquivo), no estilo das sub-abas do admin */
.tut-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .25); }
.tut-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 1.5px solid transparent; border-radius: 10px; background: none; color: var(--text-body); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: color 150ms ease, background 150ms ease; }
.tut-tabs button svg { width: 14px; height: 14px; }
.tut-tabs button:hover { color: #fff; }
/* Aba aberta, "Fiz, próximo passo" e Copiar da skill: botão estilo Opus (laranja em degradê, reflexo no topo, borda em degradê e brilho) */
.tut-tabs button[aria-selected="true"], .tut-gfoot [data-gnext], .tut-skillcard [data-copy-skill] { border: 1.5px solid transparent; color: #fff; text-shadow: 0 1px 2px rgba(110, 30, 0, .55);
    background: radial-gradient(ellipse 95% 85% at 50% 0%, rgba(255, 220, 190, .55) 0%, transparent 70%) padding-box, linear-gradient(180deg, #ff7f33 0%, #f05409 60%, #d44704 100%) padding-box, linear-gradient(180deg, #ffd9bd 0%, #ff8c42 45%, #b23d03 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px rgba(240, 84, 9, .14), 0 0 18px rgba(240, 84, 9, .45); transition: filter 150ms ease, transform 150ms ease; }
.tut-gfoot [data-gnext], .tut-skillcard [data-copy-skill] { font-weight: 800; }
.tut-gfoot [data-gnext]:hover, .tut-skillcard [data-copy-skill]:hover { filter: brightness(1.08); }
.tut-gfoot [data-gnext]:active, .tut-skillcard [data-copy-skill]:active { transform: translateY(1px); }
.tut-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tut-panel { margin-top: 14px; }
.tut-panel[hidden] { display: none; }
/* Abas empilhadas na mesma célula e com altura fixa (a da Conexão: 3 linhas), igual em todas as janelas.
   Junto com o vídeo (ou o bloco do PowerShell) em 16:9, toda janela tem o mesmo tamanho em qualquer aba;
   o que passar disso rola dentro da aba. */
.tut-panels { display: grid; height: 220px; }
.tut-panels > .tut-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
@media (max-width: 640px) { .tut-panels { height: auto; } .tut-panels > .tut-panel { overflow: visible; } }
/* Card da skill no lugar do vídeo (tutorial sem vídeo): recolhido; clicar abre o texto com rolagem */
.tut-skillcard { margin-bottom: 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.tut-skillcard summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; list-style: none; cursor: pointer; border-radius: 16px; }
.tut-skillcard summary::-webkit-details-marker { display: none; }
.tut-skillcard summary:hover { background: rgba(255, 255, 255, .025); }
.tut-skillcard summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tut-skillcard .tut-mat-t small { font-weight: 500; color: var(--text-body); }
.tut-skill-chev { display: grid; place-items: center; width: 28px; height: 28px; color: var(--text-muted); transition: transform 180ms ease; }
.tut-skill-chev svg { width: 18px; height: 18px; }
.tut-skillcard[open] .tut-skill-chev { transform: rotate(180deg); }
.tut-skillcard[open] summary { border-radius: 16px 16px 0 0; }
.tut-skillcard .tut-skill-pre { margin: 0 16px 16px; }
/* Bloco do tamanho do vídeo (16:9): a janela fica com a mesma altura das outras em qualquer passo.
   Com a skill aberta, o texto ocupa o bloco (com rolagem) e o passo a passo some até fechar. */
.tut-novideo { display: flex; flex-direction: column; gap: 12px; aspect-ratio: 16 / 9; width: 100%; min-height: 0; overflow: hidden; }
.tut-novideo > .tut-skillcard { flex-shrink: 0; margin: 0; }
.tut-novideo > .tut-skillcard[open] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tut-novideo > .tut-skillcard[open] .tut-skill-pre { flex: 1; min-height: 0; }
.tut-novideo > .tut-guia { flex: 1; min-height: 0; overflow-y: auto; }
.tut-novideo > .tut-skillcard[open] ~ .tut-guia { display: none; }
.tut-novideo .tut-gfoot { margin-top: auto; }
@media (max-width: 640px) { .tut-novideo { aspect-ratio: auto; } .tut-novideo > .tut-skillcard[open] { flex: none; } .tut-novideo > .tut-skillcard[open] .tut-skill-pre { max-height: 50vh; } }
.tut-skill-pre { margin: 0; padding: 14px; overflow: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .3);
    color: var(--text-body); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.tut-skill-pre:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tut-panels > .tut-panel { grid-area: 1 / 1; min-width: 0; }
.tut-panels > .tut-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.tut-panel > .tut-short { margin: 0; padding: 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }

@media (max-width: 900px) { .tut-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .tut-overlay { padding: 0; align-items: flex-end; }
    .tut-modal { max-height: 94vh; border-radius: 22px 22px 0 0; }
    .tut-scroll { padding: 22px 18px 26px; }
    .tut-body { grid-template-columns: 1fr; }
    .tut-facts { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); contain: none; }
    .tut-fact { padding: 8px 6px; }
    .tut-name, .tut-mhead .tut-name { font-size: 22px; }
    .tut-logo { width: 48px; height: 48px; }
    .tut-conn-row { grid-template-columns: 32px minmax(0, 1fr); }
    .tut-conn-act { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .tut-card, .tut-play, .tut-overlay, .tut-modal { transition: none; animation: none; } }

/* Card do topo igual ao do painel: brilho laranja à esquerda e banner do admin no lado direito */
.page-head { background: radial-gradient(520px 220px at 0% 0%, rgba(240, 84, 9, 0.16), transparent 70%), linear-gradient(180deg, #242020 0%, #1c1a1a 100%); }
.page-head::before { -webkit-mask-image: radial-gradient(420px 200px at 10% 0%, #000, transparent 75%); mask-image: radial-gradient(420px 200px at 10% 0%, #000, transparent 75%); }
.ph-banner { position: relative; aspect-ratio: 17 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: rgba(20, 18, 18, 0.6); }
.ph-banner[hidden] { display: none; }
.pb-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.pb-slide.on { opacity: 1; visibility: visible; }
.pb-slide img, .pb-slide canvas, .pb-slide iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
a.pb-slide iframe { pointer-events: none; }
.pb-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.pb-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.4); cursor: pointer; }
.pb-dots button[aria-current="true"] { background: var(--orange); }
@media (min-width: 960px) {
    .page-head.has-banner { padding-right: 50%; }
    .page-head.has-banner .ph-banner { position: absolute; top: 14px; bottom: 14px; right: 14px; left: 50%; height: auto; width: auto; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { .pb-slide { transition: none; } }

/* Play "glow" (playTipo: 'glow'): círculo escuro translúcido com borda laranja; no hover, brilho laranja por fora */
.tut-play.glow, .tut-screen.has-img .tut-play.glow { width: 50px; height: 50px; border-radius: 50%; background: rgba(20, 20, 20, .7); border: 1px solid rgba(255, 122, 0, .4); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; filter: none; transition: all .3s ease; }
.tut-screen.has-img .tut-play.glow { right: 12px; bottom: 12px; }
.tut-video .tut-screen.has-img .tut-play.glow { right: 18px; bottom: 18px; width: 64px; height: 64px; }
.tut-play.glow svg, .tut-screen.has-img .tut-play.glow svg, .tut-video .tut-screen.has-img .tut-play.glow svg { width: 62%; height: 62%; margin-left: 4px; fill: #ff7a00; stroke: #ff7a00; stroke-width: 2; stroke-linejoin: round; filter: none; }
.tut-card:hover .tut-play.glow, .tut-video:not(.soon):hover .tut-play.glow { border-color: #ff7a00; box-shadow: 0 0 15px rgba(255, 122, 0, .6); transform: scale(1.05); filter: none; background: rgba(20, 20, 20, .7); }

/* Botão "Abrir" no canto de cima à direita do card (o card todo continua clicável); o play só existe dentro da janela */
.tut-card .tut-name { margin-right: 84px; }
.tut-card .tut-tags { flex-wrap: nowrap; }
/* Botão "Abrir" no estilo Opus (fundo): CORES-OPUS-E-FABLE.pdf */
.tut-open { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1.5px solid transparent; background: radial-gradient(ellipse 95% 85% at 50% 0%, rgba(255, 220, 190, .55) 0%, transparent 70%) padding-box, linear-gradient(180deg, #ff7f33 0%, #f05409 60%, #d44704 100%) padding-box, linear-gradient(180deg, #ffd9bd 0%, #ff8c42 45%, #b23d03 100%) border-box; color: #fff; text-shadow: 0 1px 2px rgba(110, 30, 0, .55); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 4px rgba(240, 84, 9, .16), 0 0 24px 0 rgba(240, 84, 9, .6), 0 0 56px 6px rgba(240, 84, 9, .28); transition: filter 150ms ease, transform 150ms ease; }
.tut-card:hover .tut-open, .tut-card:focus-visible .tut-open { filter: brightness(1.12); transform: translateY(-1px); }
/* Card "Em breve": mais tutoriais vindo (não abre nada) */
.tut-card.tut-soon { flex-direction: row; align-items: center; justify-content: center; gap: 16px; min-height: 160px; cursor: default; border-style: dashed; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .02); box-shadow: none; }
.tut-card.tut-soon:hover { transform: none; border-color: rgba(255, 255, 255, .2); box-shadow: none; }
.tut-card.tut-soon::after { display: none; }
.tut-soon-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--text-body); font-size: 28px; font-weight: 300; line-height: 1; }
.tut-soon-t { display: flex; flex-direction: column; gap: 2px; }
.tut-soon-t b { font-size: 18px; font-weight: 800; color: var(--text); }
.tut-soon-t small { font-size: 13px; color: var(--text-body); }
/* Passo a passo clicável (guia): passos à esquerda, o passo aberto à direita */
.tut-guia { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.tut-gsteps { display: grid; align-content: start; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tut-gsteps button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--text-body); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.tut-gsteps button:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.tut-gsteps button.on { background: rgba(240, 84, 9, .14); border-color: rgba(240, 84, 9, .5); color: #fff; }
.tut-gsteps i { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); font-style: normal; font-size: 12px; font-weight: 800; }
.tut-gsteps button.on i { border-color: var(--orange); background: var(--orange); color: #fff; }
.tut-gsteps button.done { color: var(--text-muted); }
.tut-gsteps button.done i { border-color: rgba(240, 84, 9, .4); background: rgba(240, 84, 9, .1); color: var(--orange-light); }
.tut-gsteps i svg { width: 13px; height: 13px; stroke-width: 3; }
.tut-gbody { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tut-gnum { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-light); }
.tut-gtitle { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.tut-gtext { margin: 0; color: var(--text-body); font-size: 13.5px; line-height: 1.6; }
.tut-gtext code, .tut-gwarn code { padding: 1px 6px; border-radius: 6px; background: var(--bg-code); border: 1px solid var(--border); color: var(--text); font-family: var(--mono); font-size: 12px; }
.tut-cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .35); }
.tut-cmd code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.tut-gwarn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(250, 204, 21, .35); background: rgba(250, 204, 21, .07); color: var(--text-body); font-size: 13px; }
.tut-gwarn .tut-go { margin-left: auto; }
.tut-gfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.tut-gtext { white-space: pre-line; }
/* Linha das abas: as abas, a barra das etapas (com o Passo a passo aberto) e as setas ‹ › no fim */
.tut-tabrow { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.tut-tabrow > .tut-tabs { flex-shrink: 0; margin-top: 0; }
.tut-gnav { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tut-gnav[hidden] { display: none; }
/* Etapas coladas numa barra só (mesmo fundo das abas): as que já passaram ficam apagadas, a aberta mostra o título */
.tut-gbar { display: flex; align-items: center; gap: 2px; min-width: 0; margin: 0; padding: 4px; list-style: none; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .25); }
.tut-gbar li { flex-shrink: 0; }
/* Se faltar espaço, só o título da etapa aberta encurta (com reticências); a barra nunca quebra de linha */
.tut-gbar li:has(> .on) { flex-shrink: 1; min-width: 0; }
.tut-gbar button.on { max-width: 100%; }
.tut-gbar button.on span { min-width: 0; }
.tut-gbar button { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--text-body); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: color 150ms ease, background 150ms ease, opacity 150ms ease; }
.tut-gbar button i { font-style: normal; font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.tut-gbar button i svg { width: 14px; height: 14px; stroke-width: 3; vertical-align: -2px; }
.tut-gbar button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.tut-gbar button.past { color: var(--text-muted); opacity: .45; }
.tut-gbar button.past:hover { opacity: 1; }
.tut-gbar button.on { padding: 0 12px 0 5px; border-color: rgba(240, 84, 9, .4); background: rgba(240, 84, 9, .1); color: #fff; box-shadow: 0 0 14px rgba(240, 84, 9, .18); }
.tut-gbar button.on i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--orange); color: #fff; }
.tut-gbar button.on span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-gbar button:focus-visible, .tut-garr:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tut-garrows { display: inline-flex; gap: 6px; flex-shrink: 0; }
.tut-garr { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--border-strong, #3d3939); background: var(--bg-soft, #211f1f); color: var(--text-body); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, filter 150ms ease, transform 150ms ease; }
.tut-garr svg { width: 18px; height: 18px; stroke-width: 2.6; }
.tut-garr:hover:not(:disabled) { color: #fff; border-color: rgba(240, 84, 9, .6); }
.tut-garr:disabled { opacity: .35; cursor: default; }
.tut-garr:active:not(:disabled) { transform: scale(.97); }
/* Seta de avançar no estilo Opus */
.tut-garr.next { border: 1.5px solid transparent; color: #fff; filter: drop-shadow(0 1px 1px rgba(110, 30, 0, .4));
    background: radial-gradient(ellipse 95% 85% at 50% 0%, rgba(255, 220, 190, .55) 0%, transparent 70%) padding-box, linear-gradient(180deg, #ff7f33 0%, #f05409 60%, #d44704 100%) padding-box, linear-gradient(180deg, #ffd9bd 0%, #ff8c42 45%, #b23d03 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px rgba(240, 84, 9, .14), 0 0 18px rgba(240, 84, 9, .45); }
.tut-garr.next:hover { filter: brightness(1.08); border-color: transparent; }
/* Passo aberto dentro da aba (altura fixa): sem rolagem; os passos são escritos para caber */
.tut-panel > .tut-guia { display: block; height: 100%; padding: 14px 18px; overflow: hidden; }
.tut-gcont { display: flex; flex-direction: column; gap: 12px; }
/* Blocos do passo (cores do painel: fundo escuro, borda fina, laranja só no que é ação) */
.tut-crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; vertical-align: middle; }
.tut-crumbs b { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border-strong, #3d3939); background: var(--bg-soft, #211f1f); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.tut-crumbs i { font-style: normal; color: var(--orange-light); font-weight: 800; }
.tut-gmenu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tut-gmenu small { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.tut-gos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tut-gos > div { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); }
.tut-gos p { margin: 0; color: var(--text-body); font-size: 13px; line-height: 1.5; }
.tut-gos-h { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tut-gos-h svg { width: 14px; height: 14px; }
.tut-gos-h.win svg { color: #3ea6ff; } .tut-gos-h.mac svg { color: #e8e8ed; }
.tut-glist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: g; }
.tut-glist li { position: relative; padding-left: 34px; min-height: 26px; color: var(--text-body); font-size: 13.5px; line-height: 26px; counter-increment: g; }
.tut-glist li::before { content: counter(g); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(240, 84, 9, .12); border: 1px solid rgba(240, 84, 9, .4); color: var(--orange-light); font-family: var(--mono); font-size: 11.5px; font-weight: 700; line-height: 1; }
.tut-glist code, .tut-gos code { padding: 1px 6px; border-radius: 6px; background: var(--bg-code); border: 1px solid var(--border); color: var(--text); font-family: var(--mono); font-size: 12px; }
.tut-gfields { display: grid; gap: 8px; }
.tut-gfield { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .08); background: var(--bg-code, #0f0e0e); }
.tut-gfield .tut-conn-ic { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; }
.tut-gfield .tut-conn-ic svg { width: 17px; height: 17px; }
.tut-gfield-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.tut-gfield-t small { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tut-gfield-t code { font-family: var(--mono); font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-gnote { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, .22); background: rgba(34, 211, 238, .05); color: var(--text-body); font-size: 13px; line-height: 1.45; }
.tut-gnote > b { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: rgba(34, 211, 238, .16); color: #67e8f9; font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.tut-gnote.warn { border-color: rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .05); }
.tut-gnote.warn > b { background: rgba(250, 204, 21, .16); color: #fde68a; }
/* Status da conexão (passo 1): dois cards no estilo da Conexão e o resultado embaixo */
.tut-gstat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tut-gst { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: var(--bg-code, #0f0e0e); }
.tut-gst .tut-conn-ic { width: 38px; height: 38px; flex-shrink: 0; }
.tut-gst-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.tut-gst-t small, .tut-gscr > .tut-gos-h { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tut-gst-t code { font-family: var(--mono); font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tut-gres { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-body); }
.tut-gres b { color: #fff; }
.tut-gres-ic { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; font-weight: 900; }
.tut-gres-ic svg { width: 16px; height: 16px; stroke-width: 3; }
.tut-gres.ok { border: 1px solid rgba(240, 84, 9, .35); background: linear-gradient(120deg, rgba(240, 84, 9, .12), rgba(240, 84, 9, .02) 60%); }
.tut-gres.ok .tut-gres-ic { color: #fff; border: 1px solid transparent; background: radial-gradient(ellipse 95% 85% at 50% 0%, rgba(255, 220, 190, .55), transparent 70%) padding-box, linear-gradient(180deg, #ff7f33, #f05409 60%, #d44704) padding-box, linear-gradient(180deg, #ffd9bd, #ff8c42 45%, #b23d03) border-box; box-shadow: 0 0 14px rgba(240, 84, 9, .45); }
.tut-gres.bad { border: 1px solid rgba(250, 204, 21, .35); background: rgba(250, 204, 21, .06); }
.tut-gres.bad .tut-gres-ic { background: rgba(250, 204, 21, .18); color: #fde68a; }
/* Tela de mentira do Windows e do Mac: o lugar de clicar fica aceso e pulsando */
.tut-gscr { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tut-gscr > small { color: var(--text-body); font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tut-gscr > small code { padding: 0 5px; border-radius: 5px; background: var(--bg-code); border: 1px solid var(--border); color: var(--text); font-size: 12px; }
.tut-mk { border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: #121010; overflow: hidden; }
.tut-mk-bar { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 8px; background: #26221f; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--text-muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.tut-mk-bar b { color: var(--text); font-weight: 800; }
.tut-mk-bar em { margin-left: auto; font-style: normal; color: var(--text-muted); font-size: 11px; }
.tut-mk-bar.mac { gap: 12px; padding: 0 10px; }
.tut-mk-apple svg { width: 12px; height: 12px; color: #e8e8ed; vertical-align: -1px; }
.tut-mk-hot { position: relative; display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--orange); color: #fff !important; font-weight: 800; box-shadow: 0 0 0 3px rgba(240, 84, 9, .3), 0 0 14px rgba(240, 84, 9, .6); animation: tut-hot 1.6s ease-in-out infinite; }
@keyframes tut-hot { 50% { box-shadow: 0 0 0 5px rgba(240, 84, 9, .12), 0 0 20px rgba(240, 84, 9, .75); } }
.tut-mk-body { display: grid; gap: 6px; padding: 7px 10px 8px; }
.tut-mk-body i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); }
.tut-mk-body i { width: 55%; }
.tut-mk-body i + i { display: none; }
/* Caminho do menu: sequência numerada, a última parte (onde clicar no fim) em laranja */
.tut-gflow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tut-gflow > small { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.tut-gfi { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 5px; border-radius: 10px; border: 1px solid var(--border-strong, #3d3939); background: var(--bg-soft, #211f1f); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.tut-gfi em { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--text-body); font-family: var(--mono); font-size: 11.5px; font-style: normal; font-weight: 700; }
.tut-gfi.last { border-color: rgba(240, 84, 9, .55); background: rgba(240, 84, 9, .12); box-shadow: 0 0 16px rgba(240, 84, 9, .18); }
.tut-gfi.last em { background: var(--orange); color: #fff; }
.tut-gfarr { display: inline-grid; place-items: center; color: var(--orange-light); }
.tut-gfarr svg { width: 15px; height: 15px; stroke-width: 2.8; }
/* Onde está escrito → troque para */
.tut-gba { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 8px 10px; }
.tut-gba > small { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.tut-gdd { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; }
.tut-gdd.old { border: 1px dashed var(--border-strong, #3d3939); background: rgba(255, 255, 255, .02); color: var(--text-body); }
.tut-gdd.new { border: 1px solid rgba(240, 84, 9, .55); background: linear-gradient(120deg, rgba(240, 84, 9, .14), rgba(240, 84, 9, .03)); color: #fff; box-shadow: 0 0 16px rgba(240, 84, 9, .14); }
.tut-gdd.new svg { width: 16px; height: 16px; stroke-width: 3; color: var(--orange-light); }
.tut-gba > .tut-gfarr { justify-self: center; }
/* Ações em cards numerados ligados por setas */
.tut-gacts { display: flex; align-items: stretch; gap: 8px; }
.tut-gact { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 6px 8px; padding: 9px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)); }
.tut-gact > em { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--text-body); font-family: var(--mono); font-size: 11.5px; font-weight: 700; font-style: normal; }
.tut-gbtn { display: inline-flex; align-items: center; height: 30px; min-width: 0; max-width: calc(100% - 30px); padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong, #3d3939); background: var(--bg-soft, #211f1f); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tut-gbtn.main { border: 1.5px solid transparent; text-shadow: 0 1px 2px rgba(110, 30, 0, .55); background: radial-gradient(ellipse 95% 85% at 50% 0%, rgba(255, 220, 190, .55), transparent 70%) padding-box, linear-gradient(180deg, #ff7f33, #f05409 60%, #d44704) padding-box, linear-gradient(180deg, #ffd9bd, #ff8c42 45%, #b23d03) border-box; box-shadow: 0 0 14px rgba(240, 84, 9, .35); }
.tut-gact > small { flex-basis: 100%; color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.tut-gacts > .tut-gfarr { align-self: center; }
.tut-gfield .tut-conn-act { display: inline-flex; gap: 6px; }
@media (max-width: 640px) { .tut-gacts { flex-direction: column; } .tut-gacts > .tut-gfarr { transform: rotate(90deg); } .tut-gba { grid-template-columns: 1fr; } .tut-gba > .tut-gfarr, .tut-gba > span:empty { display: none; } }
@media (max-width: 640px) { .tut-tabrow { flex-wrap: wrap; } .tut-gnav { flex-basis: 100%; } .tut-gbar { overflow-x: auto; } .tut-guia { grid-template-columns: 1fr; } .tut-gsteps { grid-auto-flow: row; } .tut-panel > .tut-guia { height: auto; } .tut-gos, .tut-gset, .tut-gstat { grid-template-columns: 1fr; } }

/* ---------- Acabamento do passo a passo (mesmo estilo do painel e do botão Opus) ----------
   Vidro: degradê branco sutil, borda clara, reflexo em cima e sombra; no hover fica laranja com brilho.
   Opus: laranja em degradê com reflexo no topo, borda em degradê e brilho (aba aberta, etapa aberta, ação final, avançar). */
.tut-tabs button:not([aria-selected="true"]), .tut-ib, .tut-gfield .btn, .tut-garr:not(.next), .tut-gbtn:not(.main) {
    border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 8px rgba(0, 0, 0, .35); color: var(--text-body);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.tut-tabs button:not([aria-selected="true"]):hover, .tut-ib:hover, .tut-gfield .btn:hover, .tut-garr:not(.next):hover:not(:disabled) {
    color: #fff; border-color: var(--orange); background: linear-gradient(180deg, rgba(240, 84, 9, .4), rgba(240, 84, 9, .16)); box-shadow: 0 0 16px rgba(240, 84, 9, .35); transform: translateY(-1px); }
.tut-ib { width: 38px; height: 38px; border-radius: 11px; }
.tut-ib svg { width: 17px; height: 17px; }
.tut-ib.done, .tut-gfield .btn:disabled { color: var(--ok) !important; border-color: rgba(34, 240, 138, .55) !important; background: rgba(34, 240, 138, .12) !important; box-shadow: none !important; transform: none !important; }
.tut-gfield .btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 700; text-decoration: none; }
.tut-gfield .btn svg { width: 16px; height: 16px; }
.tut-tabs { padding: 5px; gap: 6px; }
.tut-tabs button { min-height: 36px; border-radius: 10px; }
/* Etapas: cada número num quadradinho de vidro; a aberta no estilo Opus com o título */
.tut-gbar { gap: 5px; padding: 5px; }
.tut-gbar button { height: 34px; min-width: 34px; justify-content: center; padding: 0 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 6px rgba(0, 0, 0, .3); color: var(--text); }
.tut-gbar button:hover { border-color: rgba(240, 84, 9, .6); background: linear-gradient(180deg, rgba(240, 84, 9, .3), rgba(240, 84, 9, .1)); color: #fff; }
.tut-gbar button.past { opacity: .4; box-shadow: none; background: rgba(255, 255, 255, .03); }
.tut-gbar button.on, .tut-gact-n.main { border: 1.5px solid transparent; color: #fff; text-shadow: 0 1px 2px rgba(110, 30, 0, .55); opacity: 1;
    background: radial-gradient(ellipse 95% 85% at 50% 0%, rgba(255, 220, 190, .55) 0%, transparent 70%) padding-box, linear-gradient(180deg, #ff7f33 0%, #f05409 60%, #d44704 100%) padding-box, linear-gradient(180deg, #ffd9bd 0%, #ff8c42 45%, #b23d03 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px rgba(240, 84, 9, .14), 0 0 18px rgba(240, 84, 9, .45); }
.tut-gbar button.on { padding: 0 14px 0 6px; gap: 9px; }
.tut-gbar button.on i { width: 24px; height: 24px; border-radius: 7px; background: rgba(110, 30, 0, .35); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); color: #fff; }
.tut-gbar button.on span { font-weight: 800; }
.tut-garr { border-radius: 12px; }
/* Texto do passo: frase de abertura com a faixa laranja ao lado */
.tut-gcont > .tut-gtext { position: relative; padding-left: 14px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: -.005em; }
.tut-gcont > .tut-gtext::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #ff8c42, #f05409); box-shadow: 0 0 10px rgba(240, 84, 9, .6); }
/* Campos e arquivos: card do painel (borda em degradê laranja, fundo com brilho e a faixa laranja à esquerda) */
.tut-gfield, .tut-gst { position: relative; overflow: hidden; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1px solid transparent;
    background: linear-gradient(120deg, rgba(240, 84, 9, .1), rgba(240, 84, 9, 0) 55%) padding-box, linear-gradient(var(--bg-code, #0f0e0e), var(--bg-code, #0f0e0e)) padding-box, linear-gradient(120deg, rgba(240, 84, 9, .6), rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, .08)) border-box; }
.tut-gfield::before, .tut-gst::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.tut-gfield-t small, .tut-gst-t small { color: color-mix(in srgb, var(--orange-light) 70%, var(--text-muted)); }
.tut-gfield-t code, .tut-gst-t code { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
/* Ações: cards de vidro; número em quadradinho, botão do Claude desenhado e a legenda alinhada embaixo do botão */
.tut-gact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; gap: 7px 10px; padding: 12px 14px; border-radius: 15px; border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)) padding-box, linear-gradient(var(--bg-deep, #141212), var(--bg-deep, #141212)) padding-box, linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 50%, rgba(240, 84, 9, .25)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 18px rgba(0, 0, 0, .25); }
.tut-gact > em { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); color: var(--orange-light); font-size: 12px; }
.tut-gact:has(.tut-gbtn.main) > em { border-color: rgba(240, 84, 9, .6); background: linear-gradient(180deg, rgba(240, 84, 9, .4), rgba(240, 84, 9, .14)); color: #fff; box-shadow: 0 0 12px rgba(240, 84, 9, .35); }
.tut-gact > .tut-gbtn { justify-self: start; max-width: 100%; height: 32px; padding: 0 13px; border-radius: 9px; font-size: 13px; }
.tut-gact > .tut-gbtn:not(.main) { color: #fff; }
.tut-gact > small { grid-column: 2; color: var(--text-body); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.tut-gfarr { width: 22px; height: 22px; border-radius: 50%; background: rgba(240, 84, 9, .12); box-shadow: 0 0 10px rgba(240, 84, 9, .2); }
.tut-gfarr svg { width: 13px; height: 13px; }
/* Dica e aviso: card com brilho da cor, ícone em quadradinho com brilho e o texto mais claro */
.tut-gnote { padding: 11px 14px; border-radius: 14px; border: 1px solid transparent; color: var(--text); font-size: 13.5px; font-weight: 500;
    background: linear-gradient(120deg, rgba(34, 211, 238, .12), rgba(34, 211, 238, .02) 60%) padding-box, linear-gradient(var(--bg-deep, #141212), var(--bg-deep, #141212)) padding-box, linear-gradient(120deg, rgba(34, 211, 238, .5), rgba(34, 211, 238, .1) 60%) border-box; }
.tut-gnote > b { width: 24px; height: 24px; border-radius: 8px; border: 1px solid rgba(34, 211, 238, .5); background: linear-gradient(180deg, rgba(34, 211, 238, .35), rgba(34, 211, 238, .12)); color: #cffafe; box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
.tut-gnote.warn { background: linear-gradient(120deg, rgba(250, 204, 21, .12), rgba(250, 204, 21, .02) 60%) padding-box, linear-gradient(var(--bg-deep, #141212), var(--bg-deep, #141212)) padding-box, linear-gradient(120deg, rgba(250, 204, 21, .5), rgba(250, 204, 21, .1) 60%) border-box; }
.tut-gnote.warn > b { border-color: rgba(250, 204, 21, .5); background: linear-gradient(180deg, rgba(250, 204, 21, .35), rgba(250, 204, 21, .12)); color: #fef9c3; box-shadow: 0 0 12px rgba(250, 204, 21, .3); }
/* Caminho do menu e "troque para" no mesmo acabamento */
.tut-gfi:not(.last), .tut-gdd.old { border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .3); }
.tut-gfi.last, .tut-gdd.new { border: 1.5px solid transparent; text-shadow: 0 1px 2px rgba(110, 30, 0, .45);
    background: linear-gradient(180deg, rgba(240, 84, 9, .32), rgba(240, 84, 9, .1)) padding-box, linear-gradient(var(--bg, #1a1818), var(--bg, #1a1818)) padding-box, linear-gradient(180deg, #ffd9bd, #ff8c42 45%, #b23d03) border-box; box-shadow: 0 0 18px rgba(240, 84, 9, .3); }
.tut-gfi.last em { background: linear-gradient(180deg, #ff7f33, #d44704); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.tut-gdd.new svg { color: #ffd2b3; }
/* Etapas compactas: as que já passaram viram tracinhos (vão sumindo) e sobra espaço para o título da aberta */
.tut-gbar { gap: 3px; padding: 4px; }
.tut-gbar button { height: 30px; min-width: 28px; padding: 0 4px; border-radius: 8px; font-size: 12.5px; }
.tut-gbar button.past { width: 10px; min-width: 10px; padding: 0; opacity: .5; border-color: rgba(240, 84, 9, .35); background: linear-gradient(180deg, rgba(240, 84, 9, .35), rgba(240, 84, 9, .12)); }
.tut-gbar button.past i { display: none; }
.tut-gbar button.past:hover { opacity: 1; }
.tut-gbar button.on { padding: 0 12px 0 4px; gap: 8px; }
.tut-gbar button.on i { width: 22px; height: 22px; border-radius: 6px; }
.tut-gact { padding: 9px 12px; gap: 5px 10px; }
.tut-gnote { padding: 9px 13px; }
.tut-gcont { gap: 11px; }
/* Botão desenhado + baixar de novo na mesma linha; legenda com quebra (\n) e etiquetas ligadas por + */
.tut-gbrow { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.tut-gbrow > .tut-gbtn { min-width: 0; }
.tut-gact > .tut-gbrow { justify-self: start; }
.tut-gdl { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; text-decoration: none; }
.tut-gdl svg { width: 15px; height: 15px; }
.tut-gact > small { white-space: pre-line; }
.tut-gchips { grid-column: 2; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tut-gchips b { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; border: 1px solid rgba(240, 84, 9, .4); background: linear-gradient(180deg, rgba(240, 84, 9, .2), rgba(240, 84, 9, .06)); color: #ffd2b3; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.tut-gchips i { font-style: normal; font-weight: 800; color: var(--orange-light); font-size: 12px; }
.tut-gbrow > .tut-gbtn { max-width: 100%; }
.tut-gbrow > .tut-gbtn:only-child { overflow: visible; }
.tut-gchips { gap: 3px; flex-wrap: nowrap; }
.tut-gchips b { height: 21px; padding: 0 6px; font-size: 10.5px; }
.tut-gchips i { font-size: 11px; }
.tut-gchips { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-start; }
.tut-gchips b { font-family: inherit; font-size: 11.5px; padding: 0 7px; }
.tut-gdl { width: auto; gap: 6px; padding: 0 11px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; }
/* "Ver tutorial": mesma posição em todos os cards, centralizado na linha do nome e alinhado à margem do card (as etiquetas embaixo ficam livres) */
.tut-card .tut-open { top: 20px; right: 20px; height: 30px; padding: 0 14px; font-size: 12.5px; font-weight: 800; }
.tut-card .tut-name { margin-right: 112px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Nota ao lado do nome no topo da janela (ex.: Antigravity usa o vídeo do VS Code): pílula de vidro, sem mudar a altura */
.tut-mhead .tut-id { flex-shrink: 0; }
.tut-mnote { display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 13px 6px 7px; border-radius: 12px; border: 1px solid transparent; color: var(--text-body); font-size: 12.5px; font-weight: 600; line-height: 1.35;
    background: linear-gradient(120deg, rgba(42, 166, 240, .14), rgba(42, 166, 240, .03) 70%) padding-box, linear-gradient(var(--bg-deep, #141212), var(--bg-deep, #141212)) padding-box, linear-gradient(120deg, rgba(42, 166, 240, .55), rgba(255, 255, 255, .08) 70%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 18px rgba(42, 166, 240, .12); }
.tut-mnote img { width: 26px; height: 26px; flex-shrink: 0; padding: 4px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 640px) { .tut-mhead { flex-wrap: wrap; } }
