/*
 * Ferramentas online (aplicativos no layout do site).
 * Base visual comum: cores do modo claro/escuro do site, componentes
 * (cartoes, abas, botoes, campos, area de soltar arquivos), guia e anuncios.
 * Cada aplicativo traz so o estilo do que e exclusivo dele.
 */

.tu-main {
    --tu-bg: var(--bg-body, #f8fafc);
    --tu-surface: #ffffff;
    --tu-surface-2: #f8fafc;
    --tu-sunken: #f1f5f9;
    --tu-line: #e2e8f0;
    --tu-line-2: #cbd5e1;
    --tu-fg: #0f172a;
    --tu-fg-2: #334155;
    --tu-muted: #64748b;
    --tu-accent: #2563eb;
    --tu-accent-hover: #1d4ed8;
    --tu-accent-soft: #eff6ff;
    --tu-accent-line: #bfdbfe;
    --tu-on-accent: #ffffff;
    --tu-ok: #15803d;
    --tu-ok-soft: #f0fdf4;
    --tu-warn: #b45309;
    --tu-warn-soft: #fffbeb;
    --tu-bad: #b91c1c;
    --tu-bad-soft: #fef2f2;
    --tu-stage: #0b1220;
    --tu-radius: 14px;
    --tu-radius-sm: 10px;
    --tu-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.05);
    --tu-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
    --tu-ring: 0 0 0 3px rgba(37, 99, 235, 0.25);
    --tu-sticky: calc(var(--mdi-adminbar-h, 0px) + var(--mdi-topbar-h, 0px) + var(--mdi-promo-h, 0px) + var(--mdi-header-h, 90px) + 16px);
    --tu-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --tu-display: "Outfit", "Inter", Arial, sans-serif;
    color: var(--tu-fg-2);
    padding-bottom: 32px;
}

[data-theme="dark"] .tu-main {
    --tu-surface: #0f172a;
    --tu-surface-2: #111a2e;
    --tu-sunken: #0b1324;
    --tu-line: rgba(148, 163, 184, 0.16);
    --tu-line-2: rgba(148, 163, 184, 0.3);
    --tu-fg: #f1f5f9;
    --tu-fg-2: #cbd5e1;
    --tu-muted: #94a3b8;
    --tu-accent: #3b82f6;
    --tu-accent-hover: #60a5fa;
    --tu-accent-soft: rgba(59, 130, 246, 0.12);
    --tu-accent-line: rgba(59, 130, 246, 0.4);
    --tu-ok: #4ade80;
    --tu-ok-soft: rgba(34, 197, 94, 0.12);
    --tu-warn: #fbbf24;
    --tu-warn-soft: rgba(245, 158, 11, 0.12);
    --tu-bad: #f87171;
    --tu-bad-soft: rgba(239, 68, 68, 0.12);
    --tu-stage: #020617;
    --tu-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --tu-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
    --tu-ring: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

/* ---------- Base (so dentro das ferramentas) ---------- */
.mdi-app,
.mdi-app *,
.mdi-app *::before,
.mdi-app *::after { box-sizing: border-box; }
.mdi-app *, .mdi-app ::before, .mdi-app ::after { border-width: 0; border-style: solid; border-color: var(--tu-line); }
.mdi-app { font-family: "Inter", Arial, sans-serif; font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.mdi-app h1, .mdi-app h2, .mdi-app h3, .mdi-app h4, .mdi-app h5, .mdi-app h6 { font-size: inherit; font-weight: inherit; }
.mdi-app img, .mdi-app video, .mdi-app canvas { display: block; vertical-align: middle; }
.mdi-app img, .mdi-app video { max-width: 100%; height: auto; }
.mdi-app a { text-decoration: inherit; }
.mdi-app table { border-collapse: collapse; }
.mdi-app b, .mdi-app strong { font-weight: 700; }
.mdi-app button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; line-height: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
.mdi-app button:disabled { cursor: not-allowed; }
.mdi-app input, .mdi-app select, .mdi-app textarea { font: inherit; color: inherit; margin: 0; }
.mdi-app h1, .mdi-app h2, .mdi-app h3, .mdi-app h4 { color: var(--tu-fg); font-family: var(--tu-display); letter-spacing: -0.01em; margin: 0; }
.mdi-app p { margin: 0; }
.mdi-app ul, .mdi-app ol { margin: 0; padding: 0; list-style: none; }
.mdi-app img, .mdi-app canvas, .mdi-app video, .mdi-app svg { max-width: 100%; }
.mdi-app a { color: var(--tu-accent); }
.mdi-app [hidden] { display: none !important; }
.mdi-app :focus-visible { outline: none; box-shadow: var(--tu-ring); border-radius: 8px; }
.mdi-app .tu-num { font-variant-numeric: tabular-nums; }
.mdi-app .tu-mono { font-family: var(--tu-mono); }
.tu-ico { width: 20px; height: 20px; flex: none; }

.tu-wrap { width: min(1400px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Cabecalho da ferramenta ---------- */
.tu-hero { padding: 22px 0 18px; }
.tu-hero .breadcrumb { margin-bottom: 14px; }
.tu-hero-row { display: flex; align-items: flex-start; gap: 16px; }
.tu-hero-ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--tu-accent-soft); color: var(--tu-accent); border: 1px solid var(--tu-accent-line); }
.tu-hero-ico .tu-ico { width: 26px; height: 26px; }
.mdi-app .tu-title { font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 800; line-height: 1.15; }
.tu-lead { margin-top: 8px !important; max-width: 820px; font-size: 1.05rem; color: var(--tu-fg-2); }
.tu-trust { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px !important; list-style: none; }
.tu-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--tu-muted); }
.tu-trust .tu-ico { width: 16px; height: 16px; color: var(--tu-ok); }

/* ---------- Layout com coluna de anuncio ---------- */
.tu-layout, .tu-guide-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.tu-rail { display: none; }
@media (min-width: 1200px) {
    .tu-layout:has(> .tu-rail), .tu-guide-layout:has(> .tu-rail) { grid-template-columns: minmax(0, 1fr) 300px; }
    .tu-rail { display: block; align-self: stretch; }
    .tu-rail-sticky { position: sticky; top: var(--tu-sticky); }
    .tu-rail .ad-slot { margin: 0; padding: 0; max-width: 300px; }
    .tu-rail .ad-slot-inner > ins, .tu-rail .ad-slot-inner > .adsbygoogle { min-width: 160px; }
    .tu-rail .mdi-ad-lazy { min-height: 600px; }
}
/* Ferramentas largas (teclado, monitor): coluna do anuncio so em telas grandes. */
@media (min-width: 1200px) and (max-width: 1519px) {
    .tu-layout[data-rail="wide"] { grid-template-columns: minmax(0, 1fr) !important; }
    .tu-layout[data-rail="wide"] > .tu-rail { display: none; }
}
.tu-ad { margin: 26px 0; }
.tu-ad .ad-slot { margin: 0 auto; }

/* ---------- Cartao principal ---------- */
.tu-card { background: var(--tu-surface); border: 1px solid var(--tu-line); border-radius: var(--tu-radius); box-shadow: var(--tu-shadow); min-width: 0; }
.tu-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--tu-line); }
.tu-card-body { padding: 20px; }
.tu-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--tu-line); background: var(--tu-surface-2); border-radius: 0 0 var(--tu-radius) var(--tu-radius); }
.tu-panel { background: var(--tu-surface-2); border: 1px solid var(--tu-line); border-radius: var(--tu-radius-sm); padding: 16px; min-width: 0; }
.tu-h { font-size: 1rem; font-weight: 700; color: var(--tu-fg); font-family: "Inter", Arial, sans-serif; letter-spacing: 0; }
.tu-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--tu-muted); margin-bottom: 6px; }
.tu-help { font-size: 0.86rem; color: var(--tu-muted); }
.tu-divider { height: 1px; background: var(--tu-line); margin: 18px 0; border: 0; }

/* ---------- Abas ---------- */
.tu-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; border-bottom: 1px solid var(--tu-line); }
.tu-tabs::-webkit-scrollbar { display: none; }
.mdi-app .tu-tab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px 12px; font-weight: 600; font-size: 0.93rem; color: var(--tu-muted); border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.mdi-app .tu-tab .tu-ico { width: 18px; height: 18px; }
.mdi-app .tu-tab:hover { color: var(--tu-fg); }
.mdi-app .tu-tab.is-on { color: var(--tu-accent); border-bottom-color: var(--tu-accent); }

/* ---------- Seletor segmentado ---------- */
.tu-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--tu-sunken); border: 1px solid var(--tu-line); }
.mdi-app .tu-seg button { padding: 6px 12px; border-radius: 7px; font-size: 0.85rem; font-weight: 600; color: var(--tu-muted); transition: background 0.15s, color 0.15s; }
.mdi-app .tu-seg button:hover { color: var(--tu-fg); }
.mdi-app .tu-seg button.on, .mdi-app .tu-seg button.is-on { background: var(--tu-surface); color: var(--tu-fg); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }

/* ---------- Botoes ---------- */
.mdi-app .tu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line-2); background: var(--tu-surface); color: var(--tu-fg); font-weight: 600; font-size: 0.92rem; white-space: nowrap; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.mdi-app .tu-btn:hover { border-color: var(--tu-muted); background: var(--tu-surface-2); }
.mdi-app .tu-btn .tu-ico { width: 18px; height: 18px; }
.mdi-app .tu-btn-primary { background: var(--tu-accent); border-color: var(--tu-accent); color: var(--tu-on-accent); }
.mdi-app .tu-btn-primary:hover { background: var(--tu-accent-hover); border-color: var(--tu-accent-hover); color: var(--tu-on-accent); }
.mdi-app .tu-btn-danger { color: var(--tu-bad); }
.mdi-app .tu-btn-danger:hover { background: var(--tu-bad-soft); border-color: var(--tu-bad); }
.mdi-app .tu-btn-lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.mdi-app .tu-btn-sm { min-height: 32px; padding: 0 10px; font-size: 0.82rem; border-radius: 8px; }
.mdi-app .tu-btn-block { width: 100%; }
.mdi-app .tu-btn:disabled { opacity: 0.5; pointer-events: none; }
.mdi-app .tu-icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--tu-line); background: var(--tu-surface); color: var(--tu-fg-2); }
.mdi-app .tu-icon-btn:hover { border-color: var(--tu-accent); color: var(--tu-accent); }
.mdi-app .tu-icon-btn .tu-ico { width: 16px; height: 16px; }

/* ---------- Campos ---------- */
.mdi-app .tu-input, .mdi-app .tu-select { min-height: 40px; padding: 8px 12px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line-2); background: var(--tu-surface); color: var(--tu-fg); font-size: 0.93rem; width: 100%; }
.mdi-app .tu-input:focus, .mdi-app .tu-select:focus { outline: none; border-color: var(--tu-accent); box-shadow: var(--tu-ring); }
.mdi-app .tu-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--tu-fg-2); cursor: pointer; }
.mdi-app .tu-check input { width: 16px; height: 16px; accent-color: var(--tu-accent); }
.mdi-app input[type="range"] { accent-color: var(--tu-accent); width: 100%; }

/* ---------- Area de soltar arquivos ---------- */
.tu-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 220px; padding: 32px 20px; border: 2px dashed var(--tu-line-2); border-radius: var(--tu-radius); background: var(--tu-surface-2); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tu-drop:hover, .tu-drop.over { border-color: var(--tu-accent); background: var(--tu-accent-soft); }
.tu-drop-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--tu-accent-soft); color: var(--tu-accent); margin-bottom: 6px; }
.tu-drop-ico .tu-ico { width: 26px; height: 26px; }
.tu-drop-title { font-size: 1.12rem; font-weight: 700; color: var(--tu-fg); }
.tu-drop-sub { font-size: 0.9rem; color: var(--tu-muted); }
.tu-drop .tu-btn { margin-top: 10px; pointer-events: none; }
.tu-drop.is-compact { min-height: 0; padding: 14px; flex-direction: row; gap: 12px; }
.tu-drop.is-compact .tu-drop-ico { width: 36px; height: 36px; margin: 0; }
.tu-drop.is-compact .tu-drop-ico .tu-ico { width: 18px; height: 18px; }
.tu-drop.is-compact .tu-drop-title { font-size: 0.95rem; }
.tu-drop.is-compact .tu-drop-sub, .tu-drop.is-compact .tu-btn { display: none; }

/* ---------- Indicadores ---------- */
.tu-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tu-stat { background: var(--tu-surface-2); border: 1px solid var(--tu-line); border-radius: var(--tu-radius-sm); padding: 12px 14px; min-width: 0; }
.tu-stat-k { display: block; font-size: 0.78rem; font-weight: 600; color: var(--tu-muted); }
.tu-stat-v { display: block; margin-top: 2px; font-family: var(--tu-display); font-size: 1.55rem; font-weight: 700; color: var(--tu-fg); font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.tu-stat-v small { font-size: 0.8rem; font-weight: 600; color: var(--tu-muted); font-family: "Inter", Arial, sans-serif; }
.tu-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--tu-sunken); color: var(--tu-fg-2); border: 1px solid var(--tu-line); white-space: nowrap; }
.tu-badge.ok { background: var(--tu-ok-soft); color: var(--tu-ok); border-color: transparent; }
.tu-badge.warn { background: var(--tu-warn-soft); color: var(--tu-warn); border-color: transparent; }
.tu-badge.bad { background: var(--tu-bad-soft); color: var(--tu-bad); border-color: transparent; }
.tu-badge.info { background: var(--tu-accent-soft); color: var(--tu-accent); border-color: transparent; }
.tu-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.tu-progress { height: 8px; border-radius: 999px; background: var(--tu-sunken); overflow: hidden; }
.tu-progress > span { display: block; height: 100%; width: 0; background: var(--tu-accent); border-radius: inherit; transition: width 0.2s; }
.tu-status { font-size: 0.9rem; color: var(--tu-fg-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tu-status.ok { color: var(--tu-ok); }
.tu-status.bad { color: var(--tu-bad); }
.tu-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--tu-line-2); border-top-color: var(--tu-accent); animation: tu-spin 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes tu-spin { to { transform: rotate(360deg); } }
.tu-note { padding: 12px 14px; border-radius: var(--tu-radius-sm); background: var(--tu-accent-soft); border: 1px solid var(--tu-accent-line); color: var(--tu-fg-2); font-size: 0.92rem; }
.tu-note.warn { background: var(--tu-warn-soft); border-color: transparent; }
.tu-kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--tu-line-2); border-bottom-width: 2px; background: var(--tu-surface); font-family: var(--tu-mono); font-size: 0.8em; color: var(--tu-fg); }
.tu-stage { background: var(--tu-stage); border-radius: var(--tu-radius-sm); }

/* ---------- Lista de arquivos ---------- */
.tu-files { display: flex; flex-direction: column; gap: 8px; }
.tu-file { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); background: var(--tu-surface); }
.tu-file.drag-over { border-color: var(--tu-accent); box-shadow: var(--tu-ring); }
.tu-file-handle { cursor: grab; color: var(--tu-muted); display: grid; place-items: center; }
.tu-file-thumb { width: 48px; height: 60px; border-radius: 6px; border: 1px solid var(--tu-line); background: #fff center/contain no-repeat; display: grid; place-items: center; overflow: hidden; font-size: 0.7rem; font-weight: 700; color: #64748b; }
.tu-file-thumb canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.tu-file-name { font-weight: 600; color: var(--tu-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.93rem; }
.tu-file-meta { font-size: 0.82rem; color: var(--tu-muted); font-variant-numeric: tabular-nums; }
.tu-file-actions { display: flex; gap: 4px; }

/* ---------- Grade de paginas / miniaturas ---------- */
.tu-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.tu-page { position: relative; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); background: var(--tu-surface); padding: 8px; cursor: pointer; user-select: none; transition: border-color 0.15s, box-shadow 0.15s; }
.tu-page:hover { border-color: var(--tu-line-2); box-shadow: var(--tu-shadow-lg); }
.tu-page.sel { border-color: var(--tu-accent); box-shadow: var(--tu-ring); }
.tu-page-cv { aspect-ratio: 3 / 4; background: #fff; border-radius: 6px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--tu-line); }
.tu-page-cv canvas, .tu-page-cv img { max-width: 100%; max-height: 100%; transition: transform 0.2s; }
.tu-page-n { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 0.8rem; color: var(--tu-muted); font-variant-numeric: tabular-nums; gap: 6px; }
.tu-page-n a { font-weight: 600; text-decoration: none; }
.tu-page-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.tu-page:hover .tu-page-tools, .tu-page:focus-within .tu-page-tools { opacity: 1; }
.tu-page-chk { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--tu-line-2); background: var(--tu-surface); display: grid; place-items: center; color: #fff; }
.tu-page.sel .tu-page-chk { background: var(--tu-accent); border-color: var(--tu-accent); }
.tu-page-chk .tu-ico { width: 14px; height: 14px; }

/* ---------- Aviso flutuante ---------- */
.tu-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 10050; padding: 10px 16px; border-radius: 10px; background: #0f172a; color: #f8fafc; font-weight: 600; font-size: 0.92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transition: all 0.2s; pointer-events: none; }
.tu-toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-theme="dark"] .tu-toast { background: #f1f5f9; color: #0f172a; }

/* ---------- Guia (texto para SEO) ---------- */
.tu-guide { margin-top: 36px; }
.tu-article { min-width: 0; background: var(--tu-surface); border: 1px solid var(--tu-line); border-radius: var(--tu-radius); padding: clamp(20px, 3vw, 40px); }
.tu-article > :first-child { margin-top: 0 !important; }
.tu-article h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.25; margin: 40px 0 12px; scroll-margin-top: var(--tu-sticky); }
.tu-article h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 8px; font-family: "Inter", Arial, sans-serif; }
.tu-article p, .tu-article li { font-size: 1.04rem; line-height: 1.75; color: var(--tu-fg-2); }
.tu-article p { margin: 0 0 14px; }
.tu-article ul, .tu-article ol { margin: 0 0 18px; padding-left: 22px; }
.tu-article ul { list-style: disc; }
.tu-article ol { list-style: decimal; }
.tu-article li { margin-bottom: 6px; }
.tu-article li::marker { color: var(--tu-muted); }
.tu-article strong { color: var(--tu-fg); }
.tu-article a { color: var(--tu-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tu-article code { font-family: var(--tu-mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--tu-sunken); color: var(--tu-fg); }
.tu-article figure { margin: 24px 0; }
.tu-article figure img { width: 100%; height: auto; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); display: block; }
.tu-article figcaption { font-size: 0.86rem; color: var(--tu-muted); margin-top: 8px; }
.tu-article .tu-ad { margin: 30px 0; }
.tu-toc { margin: 0 0 24px; padding: 16px 18px; border-radius: var(--tu-radius-sm); background: var(--tu-surface-2); border: 1px solid var(--tu-line); }
.tu-toc strong { display: block; font-size: 0.85rem; color: var(--tu-muted); margin-bottom: 8px; }
.tu-article .tu-toc ol { margin: 0; columns: 2 240px; column-gap: 28px; }
.tu-article .tu-toc li { font-size: 0.93rem; margin-bottom: 4px; break-inside: avoid; }
.tu-article .tu-toc a { text-decoration: none; color: var(--tu-fg-2); }
.tu-article .tu-toc a:hover { color: var(--tu-accent); }
.tu-box { border: 1px solid var(--tu-line); border-radius: var(--tu-radius-sm); padding: 4px 20px 10px; margin: 20px 0; background: var(--tu-surface-2); }
.tu-box h2, .tu-box h3 { margin-top: 18px; }
.tu-article .tu-steps { list-style: none; padding: 0; counter-reset: tu-step; }
.tu-article .tu-steps li { position: relative; padding-left: 42px; margin-bottom: 12px; counter-increment: tu-step; }
.tu-article .tu-steps li::before { content: counter(tu-step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tu-accent-soft); color: var(--tu-accent); font-weight: 700; font-size: 0.85rem; }
.tu-table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--tu-line); border-radius: var(--tu-radius-sm); }
.tu-article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tu-article th, .tu-article td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tu-line); color: var(--tu-fg-2); }
.tu-article th { background: var(--tu-surface-2); color: var(--tu-fg); font-weight: 600; }
.tu-article tr:last-child td { border-bottom: 0; }
.tu-faq details { border: 1px solid var(--tu-line); border-radius: var(--tu-radius-sm); margin: 10px 0; padding: 0 18px; background: var(--tu-surface); }
.tu-faq summary { cursor: pointer; padding: 15px 28px 15px 0; font-weight: 600; color: var(--tu-fg); list-style: none; position: relative; }
.tu-faq summary::-webkit-details-marker { display: none; }
.tu-faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--tu-muted); border-bottom: 2px solid var(--tu-muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.tu-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.tu-faq details p { margin-bottom: 14px; }
.tu-updated { font-size: 0.86rem; color: var(--tu-muted); margin-top: 28px !important; }
.tu-cta-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none !important; }

/* ---------- Outras ferramentas ---------- */
.tu-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.mdi-app a.tu-rel { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); background: var(--tu-surface); text-decoration: none; color: var(--tu-fg-2); transition: border-color 0.15s, box-shadow 0.15s; }
.mdi-app a.tu-rel:hover { border-color: var(--tu-accent-line); box-shadow: var(--tu-shadow-lg); }
.tu-rel-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--tu-accent-soft); color: var(--tu-accent); }
.tu-rel-txt strong { display: block; color: var(--tu-fg); font-size: 0.95rem; }
.tu-rel-txt small { display: block; color: var(--tu-muted); font-size: 0.84rem; line-height: 1.45; margin-top: 2px; }

/* ---------- Ofertas (bloco do Top Ofertas no guia) ---------- */
.tu-article .ml-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 16px 0; }
.tu-article .ml-card { display: flex; flex-direction: column; background: var(--tu-surface); border: 1px solid var(--tu-line); border-radius: var(--tu-radius-sm); overflow: hidden; color: var(--tu-fg-2); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.tu-article .ml-card:hover { border-color: var(--tu-accent-line); box-shadow: var(--tu-shadow-lg); }
.tu-article .ml-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 0; border-radius: 0; }
.tu-article .ml-card .b { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tu-article .ml-card .s { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tu-muted); }
.tu-article .ml-card .t { font-size: 0.9rem; font-weight: 600; line-height: 1.35; color: var(--tu-fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tu-article .ml-card .o { font-size: 0.8rem; color: var(--tu-muted); text-decoration: line-through; }
.tu-article .ml-card .p { font-size: 1.12rem; font-weight: 800; color: var(--tu-ok); }
.tu-article .ml-card .d { align-self: flex-start; font-size: 0.74rem; font-weight: 700; background: var(--tu-bad-soft); color: var(--tu-bad); border-radius: 6px; padding: 1px 6px; }
.tu-article .ml-card .c { margin-top: auto; padding-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--tu-accent); }
.tu-article .ml-cta { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px; padding: 10px 16px; border-radius: var(--tu-radius-sm); background: var(--tu-accent); color: var(--tu-on-accent) !important; text-decoration: none !important; font-weight: 600; font-size: 0.92rem; }
.tu-article .ml-cta:hover { background: var(--tu-accent-hover); }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
    .tu-wrap { width: calc(100% - 28px); }
    .tu-hero-ico { display: none; }
    .tu-card-body { padding: 16px; }
    .tu-card-head, .tu-card-foot { padding: 12px 16px; }
    .tu-file { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .tu-file-handle { display: none; }
    .tu-file-thumb { width: 40px; height: 50px; }
    .tu-pages { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
    .tu-page-tools { opacity: 1; }
}

/* ---------- Suite de PDF ---------- */
.pdf-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
@media (max-width: 760px) { .pdf-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } }
.pdf-nav::-webkit-scrollbar { display: none; }
.mdi-app .pdf-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--tu-line); background: var(--tu-surface); color: var(--tu-fg-2); font-size: 0.86rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.mdi-app .pdf-nav a:hover { border-color: var(--tu-accent-line); color: var(--tu-accent); }
.mdi-app .pdf-nav a.is-on { background: var(--tu-accent-soft); border-color: var(--tu-accent-line); color: var(--tu-accent); }
.pdf-nav .tu-ico { width: 16px; height: 16px; }
.pdf-opts { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.pdf-split-opts { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; }
.pdf-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 16px; }
.mdi-app .pdf-level { text-align: left; padding: 14px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); background: var(--tu-surface); display: flex; flex-direction: column; gap: 4px; transition: border-color 0.15s, box-shadow 0.15s; }
.mdi-app .pdf-level strong { color: var(--tu-fg); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mdi-app .pdf-level span:not(.tu-badge) { font-size: 0.85rem; color: var(--tu-muted); line-height: 1.45; }
.mdi-app .pdf-level:hover { border-color: var(--tu-line-2); }
.mdi-app .pdf-level.on { border-color: var(--tu-accent); box-shadow: var(--tu-ring); }
.pdf-done { text-align: center; padding: 36px 20px; }
.pdf-done-ico { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--tu-ok-soft); color: var(--tu-ok); }
.pdf-done-ico .tu-ico { width: 30px; height: 30px; }
.mdi-app .pdf-done-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.pdf-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pdf-done-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.pdf-next { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--tu-line); }
.pdf-next-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mdi-app .pdf-next-grid a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); background: var(--tu-surface); color: var(--tu-fg); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.mdi-app .pdf-next-grid a:hover { border-color: var(--tu-accent); color: var(--tu-accent); }
.pdf-next-grid .tu-ico { width: 17px; height: 17px; color: var(--tu-accent); }
.pdf-stamp { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pdf-stamp-preview { position: relative; }
.pdf-stamp-preview .tu-page-cv { box-shadow: var(--tu-shadow-lg); }
.pdf-stamp-preview canvas { width: 100%; height: auto; }
.pdf-stamp-mark { position: absolute; color: #334155; font-family: Arial, sans-serif; font-weight: 600; white-space: nowrap; pointer-events: none; }
.pdf-stamp-mark.pos-tl { top: 10px; left: 12px; }
.pdf-stamp-mark.pos-tc { top: 10px; left: 50%; transform: translateX(-50%); }
.pdf-stamp-mark.pos-tr { top: 10px; right: 12px; }
.pdf-stamp-mark.pos-bl { bottom: 10px; left: 12px; }
.pdf-stamp-mark.pos-bc { bottom: 10px; left: 50%; transform: translateX(-50%); }
.pdf-stamp-mark.pos-br { bottom: 10px; right: 12px; }
.pdf-stamp-mark.wm { top: 50%; left: 50%; font-weight: 800; }
.pdf-pos { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: 30px 30px; gap: 4px 6px; padding: 8px; border-radius: 10px; border: 1px solid var(--tu-line); background: var(--tu-sunken); width: max-content; }
.mdi-app .pdf-pos button { border: 1px solid var(--tu-line-2); border-radius: 6px; background: var(--tu-surface); position: relative; }
.mdi-app .pdf-pos button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; border-radius: 2px; background: var(--tu-muted); transform: translate(-50%, -50%); }
.mdi-app .pdf-pos button.on { border-color: var(--tu-accent); background: var(--tu-accent-soft); }
.mdi-app .pdf-pos button.on::after { background: var(--tu-accent); }
.pdf-pos button:nth-child(-n+3) { margin-bottom: 0; }
.sg-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; color: var(--tu-fg-2); }
.sg-stage { display: flex; justify-content: center; background: var(--tu-sunken); border-radius: var(--tu-radius-sm); padding: 16px; overflow: auto; }
.sg-page { position: relative; background: #fff; box-shadow: var(--tu-shadow-lg); min-height: 200px; min-width: 200px; display: grid; place-items: center; touch-action: none; }
.sg-page > canvas { display: block; }
.sg-item { position: absolute; border: 1.5px dashed var(--tu-accent); border-radius: 4px; cursor: move; touch-action: none; user-select: none; background: rgba(37, 99, 235, 0.04); }
.sg-item img { width: 100%; height: 100%; display: block; pointer-events: none; }
.sg-text { display: block; padding: 0 4px; color: #111827; font-family: Arial, sans-serif; line-height: 1.25; white-space: nowrap; outline: none; cursor: text; }
.mdi-app .sg-del { position: absolute; top: -12px; right: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--tu-bad); color: #fff; display: grid; place-items: center; }
.sg-del .tu-ico { width: 13px; height: 13px; }
.sg-resize { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 3px; background: var(--tu-accent); cursor: nwse-resize; }
.sg-modal { position: fixed; inset: 0; z-index: 10040; background: rgba(2, 6, 23, 0.6); display: grid; place-items: center; padding: 16px; }
.sg-modal[hidden] { display: none; }
.sg-dialog { width: min(640px, 100%); max-height: 92vh; overflow: auto; }
.sg-pad { width: 100%; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 1px solid var(--tu-line-2); border-radius: var(--tu-radius-sm); touch-action: none; cursor: crosshair; display: block; }
.sg-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mdi-app .sg-font { padding: 14px; border-radius: var(--tu-radius-sm); border: 1px solid var(--tu-line); background: #fff; font-size: 2rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdi-app .sg-font.on { border-color: var(--tu-accent); box-shadow: var(--tu-ring); }
@media (max-width: 760px) {
    .pdf-stamp { grid-template-columns: 1fr; }
    .pdf-stamp-preview { max-width: 240px; margin: 0 auto; }
    .sg-stage { padding: 8px; }
    .sg-fonts { grid-template-columns: 1fr; }
}
