teqo-backup/docs/plans/biblioteca-cortes-apagar-e-falhas-ui-design.html

1291 lines
56 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="pt-BR" data-theme="campaign">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<title>Design — Biblioteca de cortes: apagar e recuperar falhas</title>
<style type="text/tailwindcss">
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-border: var(--sidebar-border);
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
}
[data-theme='campaign'] {
--background: #ffffff;
--foreground: #1c1917;
--card: #ffffff;
--card-foreground: #1c1917;
--popover: #ffffff;
--popover-foreground: #1c1917;
--primary: #c51414;
--primary-foreground: #ffffff;
--secondary: #f5f5f4;
--secondary-foreground: #292524;
--muted: #f4f4f5;
--muted-foreground: #6b7280;
--accent: #f4f4f5;
--accent-foreground: #1c1917;
--destructive: #b42318;
--border: rgb(28 25 23 / 12%);
--input: rgb(28 25 23 / 16%);
--ring: #c51414;
--sidebar: #fafaf9;
--sidebar-foreground: #1c1917;
--sidebar-accent: #f5f5f4;
--sidebar-border: rgb(28 25 23 / 12%);
}
* {
box-sizing: border-box;
}
body {
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
button,
a {
-webkit-tap-highlight-color: transparent;
}
.scene-shadow {
box-shadow: 0 18px 48px rgb(28 25 23 / 10%);
}
.dialog-shadow {
box-shadow: 0 24px 80px rgb(28 25 23 / 25%);
}
</style>
</head>
<body class="min-h-screen bg-stone-100 text-foreground antialiased">
<!-- Ícones abaixo seguem o grid/stroke do Lucide; não há asset próprio. -->
<main class="mx-auto max-w-[1400px] space-y-12 px-5 py-10 md:px-8 md:py-14">
<header class="max-w-3xl">
<p class="text-sm font-medium text-primary">Design de gate · campanha</p>
<h1 class="mt-2 text-2xl font-semibold tracking-tight">
Biblioteca limpa, falha recuperável
</h1>
<p class="mt-2 text-sm leading-6 text-muted-foreground">
A assessoria apaga um corte sem serventia com confirmação proporcional ao risco e tenta
novamente uma falha no mesmo lugar em que a encontra.
</p>
</header>
<nav aria-label="Índice de cenas" class="flex flex-wrap gap-2 text-xs">
<a href="#scene-a" class="rounded-full border border-border bg-card px-3 py-1.5 font-medium"
>A · Lista desktop</a
>
<a
href="#scenes-b-c"
class="rounded-full border border-border bg-card px-3 py-1.5 font-medium"
>B–C · Confirmações</a
>
<a href="#scene-d" class="rounded-full border border-border bg-card px-3 py-1.5 font-medium"
>D · Lista mobile</a
>
<a href="#scene-e" class="rounded-full border border-border bg-card px-3 py-1.5 font-medium"
>E · Detalhe desktop</a
>
<a href="#scene-f" class="rounded-full border border-border bg-card px-3 py-1.5 font-medium"
>F · Detalhe publicado</a
>
<a href="#scene-g" class="rounded-full border border-border bg-card px-3 py-1.5 font-medium"
>G · Detalhe mobile</a
>
</nav>
<!-- CENA A — desktop / lista -->
<section id="scene-a" aria-labelledby="scene-a-title">
<div class="mb-3 flex items-end justify-between gap-4">
<div>
<p class="text-xs font-medium text-muted-foreground">Cena A · desktop ~1280</p>
<h2 id="scene-a-title" class="mt-1 text-base font-semibold">
Lista com os três estados
</h2>
</div>
<p class="hidden text-xs text-muted-foreground md:block">
Ações rotineiras à esquerda; apagar isolado à direita.
</p>
</div>
<div
class="scene-shadow mx-auto h-[790px] max-w-[1280px] overflow-hidden rounded-xl border border-border bg-background"
>
<div class="flex h-full">
<aside
class="hidden w-64 shrink-0 border-r border-sidebar-border bg-sidebar p-4 lg:flex lg:flex-col"
>
<div class="flex h-12 items-center gap-3 border-b border-sidebar-border pb-4">
<div
class="grid size-8 place-items-center rounded-lg bg-primary text-sm font-bold text-primary-foreground"
>
S
</div>
<div>
<p class="text-sm font-semibold">Campanha</p>
<p class="text-xs text-muted-foreground">Mesa de trabalho</p>
</div>
</div>
<nav class="mt-4 space-y-1 text-sm" aria-label="Navegação ilustrativa">
<a
href="#"
class="flex h-8 items-center gap-3 rounded-md px-2 text-muted-foreground"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m3 11 9-8 9 8" />
<path d="M5 10v10h14V10" />
</svg>
Início
</a>
<a
href="/campanha/comunicacao"
class="flex h-8 items-center gap-3 rounded-md bg-sidebar-accent px-2 font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m3 11 18-5v12L3 14v-3Z" />
<path d="M11.6 16.9 13 22H7l-1.3-7" />
</svg>
Comunicação
</a>
<div class="mx-3.5 border-l border-sidebar-border px-2.5 py-0.5">
<a
href="/campanha/comunicacao/acervo"
class="flex h-7 items-center rounded-md px-2 text-muted-foreground"
>Acervo de falas</a
>
<a
href="/campanha/comunicacao/acervo/cortes"
class="flex h-7 items-center rounded-md bg-card px-2 font-medium text-primary ring-1 ring-border"
>Biblioteca de cortes</a
>
</div>
</nav>
<div
class="mt-auto border-t border-sidebar-border pt-4 text-xs text-muted-foreground"
>
Assessoria de comunicação
</div>
</aside>
<div class="min-w-0 flex-1">
<header class="flex h-16 items-center justify-between border-b border-border px-6">
<div>
<p class="text-xs text-muted-foreground">Comunicação</p>
<p class="text-sm font-medium">Biblioteca de cortes</p>
</div>
<div class="size-8 rounded-full bg-secondary ring-1 ring-border"></div>
</header>
<div class="mx-auto max-w-4xl p-6 lg:p-8">
<div class="mb-8">
<label for="desktop-search" class="sr-only"
>Buscar corte por título ou descrição</label
>
<div class="relative max-w-xl">
<svg
aria-hidden="true"
class="absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<circle cx="11" cy="11" r="8" />
<path d="m21 21-4.3-4.3" />
</svg>
<input
id="desktop-search"
readonly
placeholder="Buscar por título ou descrição…"
class="h-10 w-full rounded-md border border-input bg-background pl-9 pr-3 text-sm outline-none placeholder:text-muted-foreground"
/>
</div>
</div>
<div class="space-y-3">
<!-- Publicado -->
<article class="rounded-xl border border-border bg-card p-4">
<div class="flex flex-wrap items-center gap-x-2 gap-y-1">
<span
class="inline-flex h-5 items-center rounded-full bg-primary px-2 text-xs font-normal text-primary-foreground"
>Publicado</span
>
<span class="text-xs text-muted-foreground">Criado em 16 set. 2026</span>
</div>
<h3 class="mt-2 text-sm font-medium">Título do corte publicado</h3>
<div
class="mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground"
>
<a href="#" class="underline underline-offset-4 hover:text-foreground"
>Fala de origem</a
><span aria-hidden="true">·</span><span>00:42</span>
</div>
<div class="mt-3 flex flex-wrap items-center gap-2">
<a
href="/campanha/comunicacao/acervo/cortes/101"
class="inline-flex min-h-10 items-center gap-2 rounded-lg border border-border bg-background px-3 text-xs font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<polygon points="6 3 20 12 6 21 6 3" />
</svg>
Abrir corte
</a>
<button
type="button"
class="inline-flex min-h-10 items-center gap-2 rounded-lg px-3 text-xs font-medium hover:bg-accent"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<rect width="14" height="14" x="8" y="8" rx="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
</svg>
Copiar link
</button>
<button
type="button"
class="ml-auto inline-flex min-h-10 items-center rounded-lg px-3 text-xs font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</article>
<!-- Despublicado -->
<article class="rounded-xl border border-dashed border-border bg-card p-4">
<div class="flex flex-wrap items-center gap-x-2 gap-y-1">
<span
class="inline-flex h-5 items-center rounded-full border border-border px-2 text-xs font-normal"
>Despublicado</span
>
<span class="text-xs text-muted-foreground">Criado em 15 set. 2026</span>
</div>
<h3 class="mt-2 text-sm font-medium">Título do corte despublicado</h3>
<div
class="mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground"
>
<a href="#" class="underline underline-offset-4 hover:text-foreground"
>Fala de origem</a
><span aria-hidden="true">·</span><span>01:08</span>
</div>
<div class="mt-3 flex flex-wrap items-center gap-2">
<a
href="/campanha/comunicacao/acervo/cortes/102"
class="inline-flex min-h-10 items-center gap-2 rounded-lg border border-border bg-background px-3 text-xs font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<polygon points="6 3 20 12 6 21 6 3" />
</svg>
Abrir corte
</a>
<button
type="button"
class="ml-auto inline-flex min-h-10 items-center rounded-lg px-3 text-xs font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</article>
<!-- Falhou -->
<article class="rounded-xl border border-dashed border-border bg-card p-4">
<div class="flex flex-wrap items-center gap-x-2 gap-y-1">
<span
class="inline-flex h-5 items-center rounded-full bg-destructive px-2 text-xs font-normal text-white"
>Falhou</span
>
<span class="text-xs text-muted-foreground">Criado em 15 set. 2026</span>
</div>
<h3 class="mt-2 text-sm font-medium">Título do corte que não foi concluído</h3>
<div
class="mt-1.5 flex flex-wrap items-center gap-x-2 gap-y-1 text-xs text-muted-foreground"
>
<a href="#" class="underline underline-offset-4 hover:text-foreground"
>Fala de origem</a
><span aria-hidden="true">·</span><span>00:35</span>
</div>
<div class="mt-3 flex flex-wrap items-center gap-2">
<button
type="button"
class="inline-flex min-h-10 items-center gap-2 rounded-lg bg-primary px-3 text-xs font-medium text-primary-foreground hover:opacity-90"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M20 6v6h-6" />
<path d="M20 12a8 8 0 1 0-2.34 5.66" />
</svg>
Tentar novamente
</button>
<a
href="/campanha/comunicacao/acervo/cortes/103"
class="inline-flex min-h-10 items-center gap-2 rounded-lg border border-border bg-background px-3 text-xs font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<polygon points="6 3 20 12 6 21 6 3" />
</svg>
Abrir corte
</a>
<button
type="button"
class="ml-auto inline-flex min-h-10 items-center rounded-lg px-3 text-xs font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</article>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CENAS B e C — diálogos sempre visíveis para o gate -->
<section id="scenes-b-c" aria-labelledby="dialog-scenes-title">
<div class="mb-3">
<p class="text-xs font-medium text-muted-foreground">
Cenas B e C · confirmação na lista e no detalhe
</p>
<h2 id="dialog-scenes-title" class="mt-1 text-base font-semibold">
O aviso cresce somente quando existe link público
</h2>
</div>
<div class="grid gap-6 lg:grid-cols-2">
<div
class="relative flex min-h-[410px] items-center justify-center overflow-hidden rounded-xl border border-border bg-stone-200 p-5"
>
<div class="absolute inset-0 bg-foreground/35"></div>
<div
role="dialog"
aria-modal="true"
aria-labelledby="published-dialog-title"
class="dialog-shadow relative w-full max-w-md rounded-xl border border-border bg-popover p-6 text-popover-foreground"
>
<div class="flex items-start gap-3">
<div
class="grid size-9 shrink-0 place-items-center rounded-full bg-red-50 text-destructive"
>
<svg
aria-hidden="true"
class="size-5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
</div>
<div>
<h3 id="published-dialog-title" class="text-base font-semibold">
Apagar este corte?
</h3>
<p class="mt-2 text-sm leading-6 text-muted-foreground">
O link público
<span class="font-medium text-foreground">/corte/&lt;id&gt;</span> deixa de
funcionar para quem já recebeu. Esta ação não pode ser desfeita.
</p>
</div>
</div>
<div class="mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end">
<button
type="button"
class="inline-flex h-10 items-center justify-center rounded-lg border border-border bg-background px-4 text-sm font-medium"
>
Cancelar
</button>
<button
type="button"
class="inline-flex h-10 items-center justify-center rounded-lg bg-destructive px-4 text-sm font-medium text-white"
>
Apagar
</button>
</div>
</div>
<span
class="absolute left-4 top-4 rounded-full bg-white/90 px-2.5 py-1 text-xs font-medium text-foreground"
>Publicado</span
>
</div>
<div
class="relative flex min-h-[410px] items-center justify-center overflow-hidden rounded-xl border border-border bg-stone-200 p-5"
>
<div class="absolute inset-0 bg-foreground/35"></div>
<div
role="dialog"
aria-modal="true"
aria-labelledby="failed-dialog-title"
class="dialog-shadow relative w-full max-w-md rounded-xl border border-border bg-popover p-6 text-popover-foreground"
>
<div class="flex items-start gap-3">
<div
class="grid size-9 shrink-0 place-items-center rounded-full bg-red-50 text-destructive"
>
<svg
aria-hidden="true"
class="size-5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
</div>
<div>
<h3 id="failed-dialog-title" class="text-base font-semibold">
Apagar este corte?
</h3>
<p class="mt-2 text-sm leading-6 text-muted-foreground">
Esta ação não pode ser desfeita.
</p>
</div>
</div>
<div class="mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end">
<button
type="button"
class="inline-flex h-10 items-center justify-center rounded-lg border border-border bg-background px-4 text-sm font-medium"
>
Cancelar
</button>
<button
type="button"
class="inline-flex h-10 items-center justify-center rounded-lg bg-destructive px-4 text-sm font-medium text-white"
>
Apagar
</button>
</div>
</div>
<span
class="absolute left-4 top-4 rounded-full bg-white/90 px-2.5 py-1 text-xs font-medium text-foreground"
>Despublicado ou falhou</span
>
</div>
</div>
</section>
<!-- CENA D — mobile -->
<section id="scene-d" aria-labelledby="scene-d-title">
<div class="mb-3">
<p class="text-xs font-medium text-muted-foreground">Cena D · mobile ~390</p>
<h2 id="scene-d-title" class="mt-1 text-base font-semibold">
Falha e próxima ação cabem sem esconder apagar
</h2>
</div>
<div
class="scene-shadow mx-auto w-full max-w-[390px] overflow-hidden rounded-[28px] border-[6px] border-stone-800 bg-background"
>
<div
class="flex h-14 items-center justify-between bg-primary px-4 text-primary-foreground"
>
<button aria-label="Abrir menu" class="grid size-10 place-items-center rounded-lg">
<svg
aria-hidden="true"
class="size-5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<span class="text-sm font-semibold">Biblioteca de cortes</span>
<div class="size-10"></div>
</div>
<div class="px-4 py-5">
<label for="mobile-search" class="sr-only">Buscar corte por título ou descrição</label>
<div class="relative">
<svg
aria-hidden="true"
class="absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<circle cx="11" cy="11" r="8" />
<path d="m21 21-4.3-4.3" />
</svg>
<input
id="mobile-search"
readonly
placeholder="Buscar cortes…"
class="h-11 w-full rounded-md border border-input bg-background pl-9 pr-3 text-base outline-none placeholder:text-muted-foreground"
/>
</div>
<div class="mt-5 space-y-3">
<article class="rounded-xl border border-border bg-card p-4">
<div class="flex flex-wrap items-center gap-2">
<span
class="inline-flex h-5 items-center rounded-full bg-primary px-2 text-xs text-primary-foreground"
>Publicado</span
>
<span class="text-xs text-muted-foreground">16 set. 2026</span>
</div>
<h3 class="mt-2 text-sm font-medium">Título do corte publicado</h3>
<p class="mt-1.5 text-xs text-muted-foreground">
<span class="underline underline-offset-4">Fala de origem</span> · 00:42
</p>
<div class="mt-3 grid grid-cols-2 gap-2">
<a
href="/campanha/comunicacao/acervo/cortes/101"
class="inline-flex min-h-11 items-center justify-center gap-2 rounded-lg border border-border px-2 text-xs font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<polygon points="6 3 20 12 6 21 6 3" /></svg
>Abrir corte
</a>
<button
type="button"
class="inline-flex min-h-11 items-center justify-center gap-2 rounded-lg px-2 text-xs font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<rect width="14" height="14" x="8" y="8" rx="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" /></svg
>Copiar link
</button>
<button
type="button"
class="col-span-2 min-h-11 rounded-lg text-xs font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</article>
<article class="rounded-xl border border-dashed border-border bg-card p-4">
<div class="flex flex-wrap items-center gap-2">
<span
class="inline-flex h-5 items-center rounded-full bg-destructive px-2 text-xs text-white"
>Falhou</span
>
<span class="text-xs text-muted-foreground">15 set. 2026</span>
</div>
<h3 class="mt-2 text-sm font-medium">Título do corte que não foi concluído</h3>
<p class="mt-1.5 text-xs text-muted-foreground">
<span class="underline underline-offset-4">Fala de origem</span> · 00:35
</p>
<div class="mt-3 space-y-2">
<button
type="button"
class="inline-flex min-h-11 w-full items-center justify-center gap-2 rounded-lg bg-primary px-3 text-sm font-medium text-primary-foreground"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M20 6v6h-6" />
<path d="M20 12a8 8 0 1 0-2.34 5.66" />
</svg>
Tentar novamente
</button>
<div class="grid grid-cols-2 gap-2">
<a
href="/campanha/comunicacao/acervo/cortes/103"
class="inline-flex min-h-11 items-center justify-center gap-2 rounded-lg border border-border px-2 text-xs font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<polygon points="6 3 20 12 6 21 6 3" /></svg
>Abrir corte
</a>
<button
type="button"
class="min-h-11 rounded-lg text-xs font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</div>
</article>
</div>
</div>
<nav
aria-label="Navegação inferior ilustrativa"
class="grid h-16 grid-cols-5 border-t border-border bg-background px-2 text-[10px] text-muted-foreground"
>
<span class="grid place-items-center">Início</span
><span class="grid place-items-center">Municípios</span
><span class="grid place-items-center">Atualizações</span
><span class="grid place-items-center">Agenda</span
><span class="grid place-items-center text-primary">Mais</span>
</nav>
</div>
</section>
<!-- CENA E — detalhe falhou / desktop -->
<section id="scene-e" aria-labelledby="scene-e-title">
<div class="mb-3 flex items-end justify-between gap-4">
<div>
<p class="text-xs font-medium text-muted-foreground">Cena E · detalhe desktop ~1280</p>
<h2 id="scene-e-title" class="mt-1 text-base font-semibold">
A falha oferece recuperação no cabeçalho, sem esconder a saída definitiva
</h2>
</div>
<p class="hidden max-w-md text-right text-xs leading-5 text-muted-foreground md:block">
“Tentar novamente” é a ação primária. “Apagar” permanece textual, destrutivo e separado
à direita.
</p>
</div>
<div
class="scene-shadow mx-auto h-[790px] max-w-[1280px] overflow-hidden rounded-xl border border-border bg-background"
>
<div class="flex h-full">
<aside
class="hidden w-64 shrink-0 border-r border-sidebar-border bg-sidebar p-4 lg:flex lg:flex-col"
>
<div class="flex h-12 items-center gap-3 border-b border-sidebar-border pb-4">
<div
class="grid size-8 place-items-center rounded-lg bg-primary text-sm font-bold text-primary-foreground"
>
S
</div>
<div>
<p class="text-sm font-semibold">Campanha</p>
<p class="text-xs text-muted-foreground">Mesa de trabalho</p>
</div>
</div>
<nav class="mt-4 space-y-1 text-sm" aria-label="Navegação ilustrativa">
<a
href="#"
class="flex h-8 items-center gap-3 rounded-md px-2 text-muted-foreground"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m3 11 9-8 9 8" />
<path d="M5 10v10h14V10" />
</svg>
Início
</a>
<a
href="#"
class="flex h-8 items-center gap-3 rounded-md bg-sidebar-accent px-2 font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m3 11 18-5v12L3 14v-3Z" />
<path d="M11.6 16.9 13 22H7l-1.3-7" />
</svg>
Comunicação
</a>
<div class="mx-3.5 border-l border-sidebar-border px-2.5 py-0.5">
<a href="#" class="flex h-7 items-center rounded-md px-2 text-muted-foreground"
>Acervo de falas</a
>
<a
href="#"
class="flex h-7 items-center rounded-md bg-card px-2 font-medium text-primary ring-1 ring-border"
>Biblioteca de cortes</a
>
</div>
</nav>
<div
class="mt-auto border-t border-sidebar-border pt-4 text-xs text-muted-foreground"
>
Assessoria de comunicação
</div>
</aside>
<div class="min-w-0 flex-1">
<header class="flex h-16 items-center justify-between border-b border-border px-6">
<div>
<p class="text-xs text-muted-foreground">Comunicação</p>
<p class="text-sm font-medium">Título do corte que não foi concluído</p>
</div>
<div class="size-8 rounded-full bg-secondary ring-1 ring-border"></div>
</header>
<div class="mx-auto max-w-5xl p-6 lg:p-8">
<a
href="#"
class="-ml-2 inline-flex min-h-10 items-center gap-2 rounded-lg px-2 text-sm font-medium hover:bg-accent"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m15 18-6-6 6-6" />
</svg>
Voltar aos cortes
</a>
<div
class="mt-4 flex flex-wrap items-start justify-between gap-4 border-b border-border pb-5"
>
<div class="min-w-0">
<div class="flex flex-wrap items-center gap-2">
<span
class="inline-flex h-5 items-center rounded-full bg-destructive px-2 text-xs text-white"
>Falhou</span
>
<span class="text-xs text-muted-foreground"
>Corte de 00:35 · criado em 15 set. 2026</span
>
</div>
<h1 class="mt-2 text-lg font-medium">Título do corte que não foi concluído</h1>
</div>
<div class="flex shrink-0 flex-wrap items-center gap-2">
<button
type="button"
class="inline-flex min-h-11 items-center gap-2 rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M20 6v6h-6" />
<path d="M20 12a8 8 0 1 0-2.34 5.66" />
</svg>
Tentar novamente
</button>
<button
type="button"
class="inline-flex min-h-11 items-center rounded-lg px-3 text-sm font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</div>
<div class="mt-6 grid gap-6 lg:grid-cols-[minmax(0,1fr)_300px]">
<div class="min-w-0">
<div
class="flex aspect-video w-full items-center justify-center rounded-xl border bg-muted/40 px-6 text-center text-sm text-muted-foreground"
>
O arquivo do corte ainda não está disponível.
</div>
<section
class="mt-6 rounded-xl border border-dashed border-border p-4 opacity-70"
>
<h2 class="text-sm font-medium">Texto do corte</h2>
<p class="mt-2 text-xs leading-5 text-muted-foreground">
Título e descrição ficam disponíveis para edição quando o processamento
terminar.
</p>
<div class="mt-4 h-10 rounded-md bg-muted"></div>
<div class="mt-3 h-24 rounded-md bg-muted"></div>
</section>
</div>
<aside class="space-y-4">
<section class="rounded-xl border border-border p-4">
<h2 class="text-xs tracking-wide text-muted-foreground uppercase">
Discurso de origem
</h2>
<p class="mt-1.5 text-sm text-foreground/90">Fala de origem</p>
<p class="mt-1 text-xs text-muted-foreground">Trecho 00:00–00:35 da fala</p>
<a
href="#"
class="mt-2 inline-flex min-h-11 items-center text-sm underline underline-offset-4"
>Ver fala no acervo</a
>
</section>
<section class="rounded-xl border border-border p-4">
<h2 class="text-xs tracking-wide text-muted-foreground uppercase">
Publicação
</h2>
<div class="mt-2">
<span
class="inline-flex h-5 items-center rounded-full bg-destructive px-2 text-xs text-white"
>Falhou</span
>
</div>
<p class="mt-2 text-xs leading-5 text-muted-foreground">
Não foi possível preparar o arquivo. Tente novamente sem refazer o corte.
</p>
</section>
</aside>
</div>
</div>
</div>
</div>
</div>
<div class="mt-4 grid gap-3 md:grid-cols-2">
<div class="rounded-xl border border-border bg-card p-4">
<p class="text-xs font-semibold">Regra do cabeçalho em todos os estados</p>
<p class="mt-1 text-xs leading-5 text-muted-foreground">
Publicado, despublicado e processando: “Apagar” no mesmo extremo direito. Falhou:
“Tentar novamente” primário imediatamente antes de “Apagar”.
</p>
</div>
<div class="rounded-xl border border-border bg-card p-4">
<p class="text-xs font-semibold">Retry · sem confirmação</p>
<div class="mt-2 flex flex-wrap items-center gap-3">
<button
disabled
type="button"
class="inline-flex min-h-11 items-center gap-2 rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground opacity-70"
>
<svg
aria-hidden="true"
class="size-4 animate-spin"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M21 12a9 9 0 1 1-6.2-8.6" />
</svg>
Tentando novamente…
</button>
<span class="text-xs text-muted-foreground"
>Desabilita as duas ações até concluir.</span
>
</div>
</div>
</div>
</section>
<!-- CENA F — detalhe publicado + confirmação -->
<section id="scene-f" aria-labelledby="scene-f-title">
<div class="mb-3">
<p class="text-xs font-medium text-muted-foreground">Cena F · detalhe publicado ~1280</p>
<h2 id="scene-f-title" class="mt-1 text-base font-semibold">
Apagar no detalhe reutiliza exatamente a confirmação do link público
</h2>
</div>
<div
class="scene-shadow relative mx-auto flex min-h-[560px] max-w-[1280px] items-center justify-center overflow-hidden rounded-xl border border-border bg-background p-6"
>
<div class="absolute inset-0">
<div class="flex h-16 items-center justify-between border-b border-border px-8">
<div>
<p class="text-xs text-muted-foreground">Comunicação</p>
<p class="text-sm font-medium">Título do corte publicado</p>
</div>
<div class="size-8 rounded-full bg-secondary ring-1 ring-border"></div>
</div>
<div class="mx-auto max-w-5xl p-8">
<a
href="#"
class="-ml-2 inline-flex min-h-10 items-center gap-2 rounded-lg px-2 text-sm font-medium"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m15 18-6-6 6-6" />
</svg>
Voltar aos cortes
</a>
<div class="mt-4 flex items-start justify-between gap-4 border-b border-border pb-5">
<div>
<div class="flex items-center gap-2">
<span
class="inline-flex h-5 items-center rounded-full bg-primary px-2 text-xs text-primary-foreground"
>Publicado</span
><span class="text-xs text-muted-foreground"
>Corte de 00:42 · criado em 16 set. 2026</span
>
</div>
<h1 class="mt-2 text-lg font-medium">Título do corte publicado</h1>
</div>
<button
type="button"
class="inline-flex min-h-11 items-center rounded-lg px-3 text-sm font-medium text-destructive"
>
Apagar
</button>
</div>
<div class="mt-6 grid gap-6 lg:grid-cols-[minmax(0,1fr)_300px]">
<div class="aspect-video rounded-xl border bg-stone-800"></div>
<div class="space-y-4">
<div class="h-32 rounded-xl border border-border bg-card"></div>
<div class="h-40 rounded-xl border border-border bg-card"></div>
</div>
</div>
</div>
</div>
<div class="absolute inset-0 bg-foreground/35"></div>
<div
role="dialog"
aria-modal="true"
aria-labelledby="detail-published-dialog-title"
class="dialog-shadow relative w-full max-w-md rounded-xl border border-border bg-popover p-6 text-popover-foreground"
>
<div class="flex items-start gap-3">
<div
class="grid size-9 shrink-0 place-items-center rounded-full bg-red-50 text-destructive"
>
<svg
aria-hidden="true"
class="size-5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4" />
<path d="M12 16h.01" />
</svg>
</div>
<div>
<h3 id="detail-published-dialog-title" class="text-base font-semibold">
Apagar este corte?
</h3>
<p class="mt-2 text-sm leading-6 text-muted-foreground">
O link público
<span class="font-medium text-foreground">/corte/&lt;id&gt;</span> deixa de
funcionar para quem já recebeu. Esta ação não pode ser desfeita.
</p>
</div>
</div>
<div class="mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end">
<button
type="button"
class="inline-flex h-10 items-center justify-center rounded-lg border border-border bg-background px-4 text-sm font-medium"
>
Cancelar
</button>
<button
type="button"
class="inline-flex h-10 items-center justify-center rounded-lg bg-destructive px-4 text-sm font-medium text-white"
>
Apagar
</button>
</div>
</div>
</div>
<p class="mt-3 text-xs leading-5 text-muted-foreground">
No detalhe despublicado, processando ou falho, o mesmo gatilho abre a Cena C: somente
“Esta ação não pode ser desfeita.”, com “Cancelar” e “Apagar”.
</p>
</section>
<!-- CENA G — detalhe / mobile -->
<section id="scene-g" aria-labelledby="scene-g-title">
<div class="mb-3">
<p class="text-xs font-medium text-muted-foreground">Cena G · detalhe mobile ~390</p>
<h2 id="scene-g-title" class="mt-1 text-base font-semibold">
A hierarquia se mantém com alvos de toque de 44 px
</h2>
</div>
<div class="grid items-start gap-8 lg:grid-cols-2">
<div>
<p class="mb-2 text-center text-xs font-medium text-muted-foreground">Publicado</p>
<div
class="scene-shadow mx-auto w-full max-w-[390px] overflow-hidden rounded-[28px] border-[6px] border-stone-800 bg-background"
>
<div
class="flex h-14 items-center justify-between bg-primary px-4 text-primary-foreground"
>
<button aria-label="Abrir menu" class="grid size-10 place-items-center rounded-lg">
<svg
aria-hidden="true"
class="size-5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<span class="max-w-[230px] truncate text-sm font-semibold"
>Título do corte publicado</span
>
<div class="size-10"></div>
</div>
<div class="px-4 py-5">
<a
href="#"
class="-ml-2 inline-flex min-h-11 items-center gap-2 rounded-lg px-2 text-sm font-medium"
><svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m15 18-6-6 6-6" /></svg
>Voltar aos cortes</a
>
<div class="mt-3 border-b border-border pb-4">
<div class="flex flex-wrap items-center gap-2">
<span
class="inline-flex h-5 items-center rounded-full bg-primary px-2 text-xs text-primary-foreground"
>Publicado</span
><span class="text-xs text-muted-foreground">00:42 · 16 set. 2026</span>
</div>
<h1 class="mt-2 text-lg font-medium">Título do corte publicado</h1>
<button
type="button"
class="mt-3 inline-flex min-h-11 w-full items-center justify-center rounded-lg text-sm font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
<div class="mt-5 aspect-video rounded-xl border bg-stone-800"></div>
<div class="mt-3 grid grid-cols-2 gap-2">
<button class="min-h-11 rounded-lg border border-border text-xs font-medium">
Baixar</button
><button class="min-h-11 rounded-lg border border-border text-xs font-medium">
Copiar link
</button>
</div>
<section class="mt-5 rounded-xl border border-border p-4">
<h2 class="text-xs tracking-wide text-muted-foreground uppercase">
Discurso de origem
</h2>
<p class="mt-2 text-sm">Fala de origem</p>
<a
href="#"
class="mt-2 inline-flex min-h-11 items-center text-sm underline underline-offset-4"
>Ver fala no acervo</a
>
</section>
</div>
<nav
aria-label="Navegação inferior ilustrativa"
class="grid h-16 grid-cols-5 border-t border-border bg-background px-2 text-[10px] text-muted-foreground"
>
<span class="grid place-items-center">Início</span
><span class="grid place-items-center">Municípios</span
><span class="grid place-items-center">Atualizações</span
><span class="grid place-items-center">Agenda</span
><span class="grid place-items-center text-primary">Mais</span>
</nav>
</div>
</div>
<div>
<p class="mb-2 text-center text-xs font-medium text-muted-foreground">Falhou</p>
<div
class="scene-shadow mx-auto w-full max-w-[390px] overflow-hidden rounded-[28px] border-[6px] border-stone-800 bg-background"
>
<div
class="flex h-14 items-center justify-between bg-primary px-4 text-primary-foreground"
>
<button aria-label="Abrir menu" class="grid size-10 place-items-center rounded-lg">
<svg
aria-hidden="true"
class="size-5"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
<span class="max-w-[230px] truncate text-sm font-semibold"
>Corte não concluído</span
>
<div class="size-10"></div>
</div>
<div class="px-4 py-5">
<a
href="#"
class="-ml-2 inline-flex min-h-11 items-center gap-2 rounded-lg px-2 text-sm font-medium"
><svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="m15 18-6-6 6-6" /></svg
>Voltar aos cortes</a
>
<div class="mt-3 border-b border-border pb-4">
<div class="flex flex-wrap items-center gap-2">
<span
class="inline-flex h-5 items-center rounded-full bg-destructive px-2 text-xs text-white"
>Falhou</span
><span class="text-xs text-muted-foreground">00:35 · 15 set. 2026</span>
</div>
<h1 class="mt-2 text-lg font-medium">Título do corte que não foi concluído</h1>
<div class="mt-4 space-y-2">
<button
type="button"
class="inline-flex min-h-11 w-full items-center justify-center gap-2 rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground"
>
<svg
aria-hidden="true"
class="size-4"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
>
<path d="M20 6v6h-6" />
<path d="M20 12a8 8 0 1 0-2.34 5.66" /></svg
>Tentar novamente
</button>
<button
type="button"
class="inline-flex min-h-11 w-full items-center justify-center rounded-lg text-sm font-medium text-destructive hover:bg-red-50"
>
Apagar
</button>
</div>
</div>
<div
class="mt-5 flex aspect-video items-center justify-center rounded-xl border bg-muted/40 px-6 text-center text-sm text-muted-foreground"
>
O arquivo do corte ainda não está disponível.
</div>
<section class="mt-5 rounded-xl border border-border p-4">
<h2 class="text-xs tracking-wide text-muted-foreground uppercase">Publicação</h2>
<div class="mt-2">
<span
class="inline-flex h-5 items-center rounded-full bg-destructive px-2 text-xs text-white"
>Falhou</span
>
</div>
<p class="mt-2 text-xs leading-5 text-muted-foreground">
Não foi possível preparar o arquivo. Tente novamente sem refazer o corte.
</p>
</section>
</div>
<nav
aria-label="Navegação inferior ilustrativa"
class="grid h-16 grid-cols-5 border-t border-border bg-background px-2 text-[10px] text-muted-foreground"
>
<span class="grid place-items-center">Início</span
><span class="grid place-items-center">Municípios</span
><span class="grid place-items-center">Atualizações</span
><span class="grid place-items-center">Agenda</span
><span class="grid place-items-center text-primary">Mais</span>
</nav>
</div>
</div>
</div>
<div
class="mt-4 rounded-xl border border-border bg-card p-4 text-xs leading-5 text-muted-foreground"
>
Ao tocar “Apagar”, o diálogo ocupa a largura disponível com
<span class="font-medium text-foreground">mx-4</span> e reutiliza as Cenas B/C. No mobile,
os botões ficam empilhados: “Apagar” acima e “Cancelar” abaixo na leitura visual,
preservando a ordem DOM segura do diálogo.
</div>
</section>
</main>
</body>
</html>