/* Site: nota em palavras, o que melhorar primeiro, detalhes recolhidos. Dicas: três colunas leves com cartões curtos. */

/* ---------- análise do site ---------- */
.audit-form { padding: 20px 22px; margin-bottom: 16px; }
.audit-form-label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.audit-form-row { display: flex; gap: 10px; }
.audit-form-row .input { flex: 1; height: 44px; font-size: 15px; }
.audit-form-row .btn { height: 44px; padding: 0 20px; flex: none; }
.audit-form > p { margin: 8px 0 0; }
.audit-running { padding: 18px 22px; margin-bottom: 16px; border-color: var(--orange-line); }
.audit-running-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; }
.audit-running-top .spinner { color: var(--orange); }
.audit-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.audit-steps li { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.audit-steps li span { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); }
.audit-steps li.is-done { color: var(--ink-2); } .audit-steps li.is-done span { background: var(--ok); }
.audit-steps li.is-current { color: var(--ink); } .audit-steps li.is-current span { background: var(--orange); animation: pulse 1s ease-in-out infinite alternate; }

.audit-main { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.audit-details { display: flex; flex-direction: column; gap: 10px; }
.audit-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 10px 0 4px; }
.audit-more summary::-webkit-details-marker { display: none; }
.audit-more summary .icon { transition: transform .15s; }
.audit-more[open] summary .icon { transform: rotate(180deg); }
.audit-issue-page { text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.audit-score { display: flex; gap: 22px; align-items: center; padding: 24px; }
.audit-ring { width: 112px; height: 112px; border-radius: 50%; border: 9px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; line-height: 1; }
.audit-ring strong { font: 800 36px/1 var(--font-display); letter-spacing: -.04em; }
.audit-ring small { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.audit-score.is-good .audit-ring { border-color: var(--ok); } .audit-score.is-good .audit-word { color: var(--ok); background: var(--ok-soft); }
.audit-score.is-mid .audit-ring { border-color: #e2b23a; } .audit-score.is-mid .audit-word { color: var(--warn); background: var(--warn-soft); }
.audit-score.is-bad .audit-ring { border-color: var(--err); } .audit-score.is-bad .audit-word { color: var(--err); background: var(--err-soft); }
.audit-score-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.audit-word { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.audit-score.is-good .audit-word { color: var(--ok); background: none; } .audit-score.is-mid .audit-word { color: var(--warn); background: none; } .audit-score.is-bad .audit-word { color: var(--err); background: none; }
.audit-summary { margin: 0; font-size: 16px; line-height: 1.5; }
.audit-score-text > .btn { margin-top: 4px; }
.audit-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.audit-list li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.audit-list .icon { color: var(--ok); margin-top: 3px; }
.audit-list-wins .icon { color: var(--orange); }
.audit-issues { list-style: none; margin: 0; padding: 0; }
.audit-issue { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.audit-issue:last-child { border-bottom: 0; padding-bottom: 4px; }
.audit-issue strong { display: block; font-size: 14.5px; }
.audit-issue p { margin: 3px 0 8px; color: var(--ink-2); font-size: 13.5px; }
.audit-issue-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-issue-meta a { text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.audit-prio { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 700; align-self: start; white-space: nowrap; }
.audit-prio .dot { background: currentColor; width: 7px; height: 7px; }
.prio-dot-alta { background: var(--err); } .prio-dot-media { background: var(--warn); } .prio-dot-baixa { background: var(--ok); }
.audit-fold { padding: 0; }
.audit-fold > summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
.audit-fold > summary::-webkit-details-marker { display: none; }
.audit-fold-chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.audit-fold[open] > summary .audit-fold-chev { transform: rotate(180deg); }
.audit-fold-body { padding: 0 20px 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.audit-check { border-bottom: 1px solid var(--line); padding: 9px 0; }
.audit-check:last-child { border-bottom: 0; }
.audit-check summary { cursor: pointer; display: flex; gap: 10px; align-items: center; font-weight: 500; list-style: none; font-size: 14px; }
.audit-check summary::-webkit-details-marker { display: none; }
.audit-check summary small { margin-left: auto; font-size: 12px; }
.audit-check p { margin: 8px 0 4px 18px; color: var(--ink-2); font-size: 13.5px; }
.audit-check .bullets { margin-left: 18px; }
.audit-psi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 520px; }
.audit-psi-item { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.audit-psi-score { width: 60px; height: 60px; border-radius: 50%; border: 5px solid var(--line); display: grid; place-items: center; font: 700 18px var(--font-display); }
.audit-psi-score.is-good { border-color: var(--ok); color: var(--ok); } .audit-psi-score.is-mid { border-color: #e2b23a; color: var(--warn); } .audit-psi-score.is-bad { border-color: var(--err); color: var(--err); }
.audit-sub { margin-top: 12px; font-size: 13px; }
.audit-sub summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.audit-metrics { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 13px; max-width: 420px; }
.audit-metrics dt { color: var(--muted); } .audit-metrics dd { margin: 0; font-weight: 600; text-align: right; }
.audit-pages { list-style: none; padding: 0; margin: 0 0 10px; max-height: 360px; overflow-y: auto; }
.audit-pages li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.audit-pages li:last-child { border-bottom: 0; }
.audit-pages li div { display: flex; flex-direction: column; min-width: 0; }
.audit-pages strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-pages small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.audit-flags { display: flex; gap: 14px; margin: 0; }
.audit-flags span { display: inline-flex; align-items: center; gap: 4px; }
.audit-history { list-style: none; padding: 0; margin: 0; }
.audit-history li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.audit-history li:last-child { border-bottom: 0; }
.audit-history li.is-current a { font-weight: 700; }
.audit-history a { text-decoration: none; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; }
.audit-history a:hover { text-decoration: underline; }
.audit-history small { font-size: 12px; }

/* ---------- tarefas ---------- */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.kanban-col { border-radius: var(--radius-lg); padding: 6px; min-height: 260px; transition: background .15s, box-shadow .15s; }
.kanban-col.is-over { background: var(--orange-soft); box-shadow: inset 0 0 0 2px var(--orange-line); }
.kanban-col header { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 0 6px; }
.kanban-col h3 { font-size: 13px; margin: 0; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kanban-col[data-status="doing"] h3 { color: var(--warn); }
.kanban-col[data-status="done"] h3 { color: var(--ok); }
.kanban-count { background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; color: var(--muted); }
.kanban-list { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.kanban-empty { margin: 0; padding: 14px 10px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; }
.kanban-list .task-card ~ .kanban-empty { display: none; }
.task-card { background: var(--surface); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); cursor: grab; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow-sm); }
.task-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.task-card.is-dragging { opacity: .45; }
.task-card h4 { font-size: 14px; font-weight: 600; margin: 0; line-height: 1.35; }
.task-card .task-prio { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; background: transparent; border: 0; padding: 0; }
.task-prio .dot { width: 7px; height: 7px; background: currentColor; }
.task-cat, .task-src { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.task-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; }
.task-foot { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--muted); align-items: center; margin-top: 3px; }
.task-due { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin-left: auto; }
.task-due.is-late { color: var(--err); }
.kanban-col[data-status="done"] .task-card { opacity: .7; box-shadow: none; }
.kanban-col[data-status="done"] .task-card h4 { text-decoration: line-through; color: var(--muted); }
#task-modal .modal-head h3 { font-size: 18px; }

@media (max-width: 960px) { .kanban { grid-template-columns: 1fr; } .kanban-col { min-height: 0; } .kanban-list { min-height: 60px; } .audit-form-row { flex-direction: column; } .audit-score { flex-direction: column; align-items: flex-start; } .audit-issue { grid-template-columns: 1fr; gap: 6px; } .audit-steps { grid-template-columns: repeat(2, 1fr); } .audit-psi { grid-template-columns: repeat(2, 1fr); } }
