/* Banco de Criativos Estica */
:root {
  --navy: #172035;
  --blue: #294294;
  --sky: #95B8D5;
  --green: #48C002;
  --green-press: #3FAE00;
  --gray: #626979;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --line: #DFE5EE;
  --tint: #E8EEF8;
  --radius: 14px;
  --nav-h: 66px;
  --font-title: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: #E9EDF4;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.noscroll { overflow: hidden; }
img, svg, video { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.2; margin: 0; color: var(--navy); }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.top :focus-visible, .tp :focus-visible, .pl :focus-visible, .hero :focus-visible { outline-color: #fff; }
main:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Coluna do app */
.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
  position: relative;
}
@media (min-width: 600px) {
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* Cabeçalho */
.top {
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; min-height: 56px;
}
.top-logo { display: block; border-radius: 6px; }
.top-logo img { display: block; height: 30px; width: auto; }
.top-tag { color: var(--sky); font-size: 14px; font-weight: 600; }

#view { padding: 20px 16px 0; }
#view.enter { animation: fade-in 150ms ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Início */
.hero { background: var(--navy); margin: -20px -16px 20px; padding: 8px 16px 28px; color: #fff; }
.hero h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.hero p { color: #DCE6F2; font-size: 18px; }

.big-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; min-height: 84px;
  text-decoration: none; color: var(--navy);
}
.big-card:active { background: var(--tint); }
.big-card .ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.big-card .ico svg { width: 28px; height: 28px; }
.big-card .txt { flex: 1; min-width: 0; }
.big-card h2 { font-size: 22px; }
.big-card .sub { color: var(--gray); font-size: 16px; margin-top: 2px; }
.big-card .chev { flex: none; color: var(--blue); width: 24px; height: 24px; }

/* Botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 20px; width: 100%;
  border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-title); font-weight: 800; font-size: 20px; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-green { background: var(--green); color: var(--navy); }
.btn-green:active { background: var(--green-press); }
.btn-line { background: #fff; color: var(--blue); border-color: var(--blue); font-size: 17px; min-height: 52px; }
.btn-line:active { background: var(--tint); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); font-size: 17px; min-height: 52px; }
.btn-line[disabled], .btn-green[disabled] { opacity: .5; }

/* Títulos de página */
.back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 12px 0 0;
  color: var(--blue); font-weight: 600; text-decoration: none; margin-bottom: 4px;
}
.back svg { width: 22px; height: 22px; }
.page-title { font-size: 28px; margin-bottom: 8px; }
.lead { color: var(--gray); margin-bottom: 16px; }

/* Chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 4px 16px 8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 48px; padding: 0 16px; border-radius: 24px;
  background: #fff; border: 2px solid var(--line); color: var(--navy);
  font-weight: 500; font-size: 16px; cursor: pointer; white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

/* Cards de roteiro */
.r-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px; text-decoration: none; color: var(--navy);
}
.r-card:active { background: var(--tint); }
.r-card h3 { font-size: 21px; margin-bottom: 4px; }
.r-card .meta { color: var(--gray); font-size: 16px; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 16px; font-size: 14px; font-weight: 600; background: var(--tint); color: var(--blue); min-height: 30px; }
.tag.nivel { background: #fff; border: 1.5px solid var(--sky); color: var(--navy); }
.tag svg { width: 16px; height: 16px; }
.empty { background: var(--card); border: 1px dashed var(--sky); border-radius: var(--radius); padding: 20px; color: var(--gray); }

/* Roteiro aberto */
.r-head { margin-bottom: 16px; }
.r-head h1 { font-size: 28px; margin-bottom: 6px; }
.r-head .meta { color: var(--gray); margin-bottom: 12px; }
.r-head .resumo { margin-bottom: 14px; }
.sec-title { font-size: 22px; margin: 22px 0 12px; }
.cena { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.cena-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cena-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.cena-ico svg { width: 26px; height: 26px; }
.cena-label { font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1.2; }
.cena-legend { color: var(--gray); font-size: 15px; line-height: 1.35; }
.fala { font-size: 20px; font-weight: 500; line-height: 1.45; padding-left: 14px; border-left: 4px solid var(--sky); margin-bottom: 10px; }
.tela { margin-bottom: 10px; }
.tela b { color: var(--blue); }
.dica { display: flex; gap: 8px; color: var(--gray); font-size: 15px; line-height: 1.4; }
.dica svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.cta-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; margin-top: 16px; }
.cta-box .k { color: var(--sky); font-weight: 600; font-size: 14px; letter-spacing: .02em; margin-bottom: 4px; }
.cta-box p { font-size: 19px; font-weight: 500; }

/* Barra de ações fixa (roteiro) */
.actions {
  position: fixed; left: 0; right: 0; z-index: 30;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
}
.actions-in { max-width: 560px; margin: 0 auto; padding: 8px 16px; display: grid; gap: 8px; }
.actions-row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.actions-row.one { grid-template-columns: 1fr; }
.actions .btn-line { font-size: 16px; padding: 6px 8px; min-height: 50px; line-height: 1.15; }
.has-actions { padding-bottom: 130px; }

/* Navegação inferior */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: center;
}
.nav-in { display: flex; width: 100%; max-width: 560px; }
.nav a {
  flex: 1; min-width: 0; min-height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--gray); font-size: 13px; font-weight: 500;
  border-top: 4px solid transparent; position: relative;
}
.nav a svg { width: 26px; height: 26px; }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 800; border-top-color: var(--blue); background: var(--tint); }
.nav a[aria-current="page"] span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Como gravar */
.bloco { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.bloco-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bloco-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.bloco-ico svg { width: 28px; height: 28px; }
.bloco h2 { font-size: 21px; }
.bloco h2 .n { color: var(--blue); }
.plat + p, .bloco p + p, .bloco p + ul, .bloco ul + p { margin-top: 10px; }
.bloco ul { margin: 0; padding-left: 22px; }
.bloco li { margin-bottom: 6px; }
.plat { background: var(--bg); border-radius: 10px; padding: 12px; margin-top: 10px; font-size: 16px; }
.plat b { display: block; color: var(--blue); }
.plat + .plat { margin-top: 8px; }
.alerta { border-left: 4px solid var(--blue); background: var(--tint); border-radius: 0 10px 10px 0; padding: 10px 12px; margin-top: 10px; font-size: 16px; }
.takes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.take-fig { text-align: center; }
.take-fig svg { width: 100%; height: auto; max-width: 112px; border-radius: 10px; }
.take-fig span { display: block; font-weight: 800; font-family: var(--font-title); font-size: 17px; margin-top: 4px; }
.take-desc { margin-bottom: 10px; }
.take-desc b { color: var(--blue); }

.check-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 24px 0 10px; }
.check-head h2 { font-size: 24px; }
.check-count { color: var(--gray); font-weight: 600; font-size: 15px; }
.check-list { list-style: none; margin: 0 0 12px; padding: 0; }
.check-item {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer;
}
.check-item input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 30px; border: 2.5px solid var(--blue); border-radius: 8px; background: #fff; display: grid; place-items: center; margin: 0; cursor: pointer; }
.check-item input:checked { background: var(--blue); }
.check-item input:checked::after { content: ""; width: 8px; height: 15px; border: solid #fff; border-width: 0 3.5px 3.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-item input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.check-item.done span { color: var(--gray); text-decoration: line-through; }
.check-item.done { background: #F0F4FA; }

/* Exemplos */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; }
.ex-cover { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--navy); border: 1px solid var(--line); display: block; }
.ex-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; }
.ex-play svg { width: 26px; height: 26px; margin-left: 3px; }
.ex-title { display: block; font-family: var(--font-title); font-weight: 800; font-size: 17px; line-height: 1.25; margin-top: 8px; }
.ex-style { display: block; color: var(--gray); font-size: 14px; }

/* Enviar */
.passos { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: p; }
.passos li { counter-increment: p; display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.passos li::before { content: counter(p); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 19px; display: grid; place-items: center; }
.passos b { color: var(--navy); }
.passos .ex-nome { display: inline-block; margin-top: 4px; background: var(--tint); border-radius: 8px; padding: 2px 10px; font-weight: 600; color: var(--blue); word-break: break-all; }
.aviso { border: 2px solid var(--sky); background: #fff; border-radius: var(--radius); padding: 16px; font-weight: 600; display: flex; gap: 12px; align-items: flex-start; }
.aviso svg { flex: none; width: 26px; height: 26px; color: var(--blue); }

/* Teleprompter */
.tp { position: fixed; inset: 0; z-index: 200; background: #172035; color: #fff; display: flex; flex-direction: column; }
.tp[hidden], .pl[hidden] { display: none; }
.tp-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; padding-top: max(8px, env(safe-area-inset-top, 0px)); gap: 8px; }
.tp-bar .t { font-family: var(--font-title); font-weight: 800; font-size: 17px; color: var(--sky); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 26px; height: 26px; }
.tp-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.tp-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 0 22px; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y; }
.tp-scroll::-webkit-scrollbar { display: none; }
.tp-text { font-size: 28px; line-height: 1.45; font-weight: 500; }
.tp-text p { margin: 0 0 .9em; overflow-wrap: anywhere; }
.tp-text p.tela { color: var(--sky); font-style: italic; margin-bottom: .9em; }
.tp-text .fim { text-align: center; color: var(--sky); font-size: .6em; padding: 20px 0; }
.tp-line { position: absolute; left: 0; right: 0; top: 33%; pointer-events: none; border-top: 2px solid rgba(149,184,213,.85); }
.tp-line::before { content: ""; position: absolute; left: 0; top: -9px; border: 8px solid transparent; border-left: 12px solid var(--green); border-right: 0; }
.tp-band { position: absolute; left: 0; right: 0; top: 33%; height: 1.45em; font-size: 28px; pointer-events: none; background: rgba(149,184,213,.12); }
.tp-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23,32,53,.82); font-family: var(--font-title); font-weight: 800; font-size: 120px; color: #fff; z-index: 3; }
.tp-count[hidden] { display: none; }
.tp-pause-hint { transition: opacity .4s ease;  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; background: rgba(0,0,0,.5); color: #fff; border-radius: 16px; padding: 4px 14px; font-size: 14px; pointer-events: none; z-index: 2; }
.tp-ctl { position: relative; z-index: 5; flex: none; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #101829; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 10px; }
.tp-main { display: flex; align-items: center; justify-content: center; gap: 16px; }
.tp-play { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: var(--navy); border: 0; display: grid; place-items: center; cursor: pointer; }
.tp-play svg { width: 38px; height: 38px; }
.tp-play:active { background: var(--green-press); }
.tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: rgba(255,255,255,.08); border-radius: 14px; padding: 4px; }
.stepper .lbl { text-align: center; font-size: 13px; line-height: 1.2; color: #DCE6F2; }
.stepper .lbl b { display: block; font-size: 17px; color: #fff; font-family: var(--font-title); }
.stepper button { flex: none; width: 52px; height: 52px; border-radius: 12px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 22px; cursor: pointer; }
.stepper button:disabled { opacity: .35; }

/* Player */
.pl { position: fixed; inset: 0; z-index: 200; background: #0A0F1C; display: flex; flex-direction: column; align-items: center; }
.pl-bar { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; padding-top: max(8px, env(safe-area-inset-top, 0px)); gap: 8px; }
.pl-bar .t { font-family: var(--font-title); font-weight: 800; color: #fff; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-video { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.pl-video video { max-height: 100%; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; }
.pl-foot { width: 100%; max-width: 560px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.pl-erro { color: #fff; text-align: center; padding: 20px; }

@media (prefers-reduced-motion: reduce) {
  #view.enter { animation: none; }
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-height: 640px) {
  .tp-play { width: 64px; height: 64px; }
  .tp-ctl { gap: 6px; padding-top: 8px; }
}

.tp-pause-hint.off { opacity: 0; }

/* Início: extras */
.home-title { font-size: 22px; margin: 28px 0 12px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 28px; }
.home-head .home-title { margin: 0 0 12px; }
.see-all { white-space: nowrap; flex: none; display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; margin-top: -8px; }
.link-open { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--blue); font-weight: 600; }
.link-open svg { width: 20px; height: 20px; }
.strip { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding-left: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip .ex { flex: none; width: 110px; scroll-snap-align: start; }
.strip .ex-title { font-size: 15px; }

/* Unidade no cabeçalho */
.unit-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 4px 0 12px; margin-right: -4px; background: transparent; border: 0; color: #DCE6F2; font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 10px; }
.unit-btn svg { flex: none; width: 22px; height: 22px; color: var(--sky); }
.unit-btn span { text-align: right; }
.top { padding-top: 4px; padding-bottom: 4px; }

/* Boas-vindas */
.welcome { position: fixed; inset: 0; z-index: 300; background: var(--navy); color: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.welcome-in { max-width: 560px; margin: 0 auto; min-height: 100%; padding: 36px 20px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: center; }
.w-logo { display: block; width: 150px; height: auto; max-width: 100%; margin: 0 0 28px; }
.welcome h1 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.w-q { font-size: 20px; color: #DCE6F2; margin-bottom: 22px; }
.w-list { display: grid; gap: 12px; }
.w-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent; background: #fff; color: var(--navy); font-family: var(--font-title); font-weight: 800; font-size: 24px; text-align: left; cursor: pointer; }
.w-btn svg { width: 26px; height: 26px; color: var(--blue); }
.w-btn:active { background: var(--tint); }
.w-btn[aria-current="true"] { border-color: var(--green); }
.w-note { margin-top: 18px; color: var(--sky); font-size: 15px; }
.w-cancel { margin-top: 10px; align-self: flex-start; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; }
.welcome :focus-visible { outline-color: #fff; }

/* Enviar */
.tipos { display: grid; gap: 12px; margin-bottom: 22px; border-radius: 18px; }
.tipo { display: grid; grid-template-columns: 44px 1fr 28px; grid-template-areas: "i t c" "i s c"; column-gap: 12px; align-items: center; text-align: left; width: 100%; min-height: 84px; padding: 14px 16px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); color: var(--navy); cursor: pointer; }
.tipo > svg:first-child { grid-area: i; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.tipo > svg:last-child:not(:first-child) { grid-area: c; width: 28px; height: 28px; color: #fff; background: var(--blue); border-radius: 50%; padding: 4px; }
.tipo-t { grid-area: t; font-family: var(--font-title); font-weight: 800; font-size: 20px; line-height: 1.2; }
.tipo-s { grid-area: s; color: var(--gray); font-size: 15px; line-height: 1.35; }
.tipo[aria-checked="true"] { border-color: var(--blue); background: #F0F4FC; }
.tipos.pulse { animation: pulse-box 0.5s ease-in-out 3; outline: 3px solid var(--blue); outline-offset: 4px; }
@keyframes pulse-box { 50% { outline-color: var(--green); transform: scale(1.01); } }
.copiar-nome { margin-top: 10px; width: auto; min-height: 48px; font-size: 16px; padding: 8px 18px; }
.passos .ex-nome { margin-top: 6px; }

/* Roteiro: link para enviar */
.link-enviar { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 48px; margin-top: 14px; font-weight: 600; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
.link-enviar svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .tipos.pulse { animation: none; } }
.welcome:focus { outline: none; }

/* Envio direto */
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 600; margin-bottom: 6px; }
.campo .opc { color: var(--gray); font-weight: 400; }
.campo select, .campo input { width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 17px; color: var(--navy); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); }
.campo select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23294294' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 24px; }
.campo select:focus, .campo input:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.nome-prev { color: var(--gray); font-size: 15px; margin: 0 0 16px; }
.nome-prev .ex-nome { display: inline-block; margin-top: 4px; background: var(--tint); border-radius: 8px; padding: 2px 10px; font-weight: 600; color: var(--blue); word-break: break-all; font-size: 14px; }
.dica-up { color: var(--gray); font-size: 15px; margin-top: 10px; text-align: center; }
#up-area { margin-top: 20px; }
.up-lista { list-style: none; margin: 0 0 14px; padding: 0; }
.up-lista li { margin-bottom: 10px; }
.up-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit; color: var(--navy); }
button.up-item { cursor: pointer; border: 2px solid var(--navy); min-height: 48px; }
.up-nome { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.up-tam { color: var(--gray); font-size: 14px; white-space: nowrap; align-self: center; }
.up-bar { grid-column: 1 / -1; display: block; height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; }
.up-bar span { display: block; height: 100%; background: var(--blue); border-radius: 5px; transition: width .2s linear; }
.up-item.ok .up-bar span { background: #2F7D00; }
.up-est { grid-column: 1 / -1; font-size: 15px; font-weight: 600; }
.up-item.erro .up-est { color: #A12B1F; }
.up-item.ok .up-est { color: #2F6B00; }
.up-msg { grid-column: 1 / -1; color: var(--gray); font-size: 14px; }
.up-aviso { position: fixed; left: 0; right: 0; z-index: 30; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; }
.up-aviso { padding: 12px 16px; align-items: center; gap: 10px; font-weight: 600; }
.up-aviso svg { width: 24px; height: 24px; color: var(--sky); flex: none; }
.up-aviso p { margin: 0; }
body.com-aviso .app { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 90px); }
.up-falha { border: 2px solid #A12B1F; background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; display: grid; gap: 12px; }
.up-ok { background: var(--card); border: 2px solid var(--green); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 10px; }
.up-ok-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--navy); display: grid; place-items: center; }
.up-ok-ico svg { width: 28px; height: 28px; }
.up-ok h2 { font-size: 22px; }
.up-ok ul { margin: 0 0 6px; padding-left: 20px; color: var(--gray); font-size: 15px; overflow-wrap: anywhere; }
