/* Rafagnin Motors — totem (tablet) */
:root {
	--rm-red: #DE3F3C;
	--rm-red-dk: #B92D2A;
	--ink: #1D2024;
	--ink-2: #2A2E34;
	--steel: #5B626B;
	--silver: #A9B0B8;
	--line: #DADEE3;
	--mist: #F1F2F4;
	--ok: #2E9E5B;
	--disp: 'Saira', 'Arial Narrow', sans-serif;
	--body: 'Public Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body.tt { font-family: var(--body); font-size: 20px; line-height: 1.45; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
input { user-select: text; -webkit-user-select: text; }
h1, h2 { font-family: var(--disp); margin: 0; line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rm-red); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Topo */
.tt-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; height: 84px; padding: 0 28px; padding-top: env(safe-area-inset-top); background: #fff; border-bottom: 1px solid var(--line); }
.tt-logo { height: 52px; width: auto; touch-action: none; }
.tt-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; counter-reset: s; }
.tt-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--silver); padding: 6px 10px 6px 6px; border-radius: 99px; }
.tt-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--steel); font-family: var(--disp); font-weight: 700; font-size: 15px; }
.tt-steps li.is-done { color: var(--steel); }
.tt-steps li.is-done::before { content: '✓'; background: var(--ink); color: #fff; }
.tt-steps li.is-on { color: var(--ink); background: var(--mist); }
.tt-steps li.is-on::before { background: var(--rm-red); color: #fff; }
.tt-restart { border: 0; background: none; color: var(--steel); font-weight: 600; font-size: 16px; padding: 12px; cursor: pointer; }
body[data-screen="idle"] .tt-top, body[data-screen="obrigado"] .tt-steps, body[data-screen="obrigado"] .tt-restart { display: none; }
.tt-form .tt-err { order: -1; }
.tt-form .tt-err:empty { display: none; }

/* Telas */
.tt-main { min-height: calc(100vh - 84px); }
.tt-screen { display: none; padding: 40px 48px 140px; max-width: 1280px; margin: 0 auto; }
.tt-screen.is-on { display: block; animation: tt-in .28s ease-out; }
@keyframes tt-in { from { opacity: 0; transform: translateX(24px); } }
.tt-screen h2 { font-size: 46px; font-weight: 800; margin-bottom: 28px; max-width: 24ch; }
.tt-sub { font-size: 24px; color: var(--steel); margin: -14px 0 32px; }

/* Botões */
.tt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 36px; border-radius: 10px; border: 2px solid transparent; font-family: var(--disp); font-weight: 700; font-size: 24px; cursor: pointer; transition: background .15s, transform .1s; }
.tt-btn:active { transform: scale(.98); }
.tt-btn-red { background: var(--rm-red); color: #fff; }
.tt-btn-red:active { background: var(--rm-red-dk); }
.tt-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.tt-btn-lg { min-width: 340px; }
.tt-btn-xl { min-height: 96px; font-size: 32px; padding: 0 56px; }
.tt-btn[disabled] { opacity: .6; }
.tt-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 16px; padding: 18px 48px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--mist) 70%, rgba(241,242,244,0)); }
.tt-actions .tt-btn-red { margin-left: auto; min-width: 280px; }
.tt-dialog .tt-actions { position: static; background: none; padding: 0; margin-top: 24px; }

/* Descanso */
.tt-idle.is-on { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: none; min-height: 100vh; margin: 0; padding: 64px 8vw; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.tt-sweep { position: absolute; right: -4vw; top: 6vh; width: 60vw; height: 34vh; opacity: .9; }
.tt-sweep path { fill: none; stroke: var(--rm-red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: tt-draw 1.6s .2s cubic-bezier(.6,0,.2,1) forwards; }
.tt-sweep path + path { stroke-width: 3; animation-delay: .6s; }
@keyframes tt-draw { to { stroke-dashoffset: 0; } }
.tt-idle-logo { height: 120px; width: auto; margin-bottom: 56px; position: relative; }
.tt-idle h1 { font-size: clamp(48px, 6.4vw, 88px); font-weight: 800; max-width: 14ch; position: relative; letter-spacing: -0.02em; }
.tt-idle p { font-size: 26px; color: var(--silver); margin: 24px 0 48px; max-width: 34ch; position: relative; }
.tt-idle .tt-btn { position: relative; animation: tt-pulse 2.4s ease-in-out infinite 2s; }
@keyframes tt-pulse { 50% { box-shadow: 0 0 0 14px rgba(222,63,60,.18); } }

/* Carros */
.tt-cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tt-car { display: flex; flex-direction: column; text-align: left; padding: 0 0 18px; border: 2px solid transparent; border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; }
.tt-car:active { border-color: var(--rm-red); }
.tt-car-img { aspect-ratio: 16/10; background: var(--line); }
.tt-car-img img { width: 100%; height: 100%; object-fit: cover; }
.tt-car-nome { font-family: var(--disp); font-weight: 700; font-size: 26px; padding: 14px 18px 0; line-height: 1.1; }
.tt-car-meta { font-size: 16px; color: var(--steel); padding: 4px 18px 0; white-space: pre; }
.tt-car-preco { font-family: var(--disp); font-weight: 800; font-size: 28px; padding: 10px 18px 0; }
.tt-car-parc { font-size: 16px; font-weight: 600; color: var(--rm-red); padding: 0 18px; }
.tt-other { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin-top: 24px; padding: 24px 28px; border: 2px dashed var(--silver); border-radius: 12px; background: transparent; cursor: pointer; text-align: left; }
.tt-other strong { font-family: var(--disp); font-size: 26px; }
.tt-other span { color: var(--rm-red); font-weight: 600; }

/* Campos */
.tt-label { display: block; font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.tt-opt { font-weight: 400; color: var(--steel); }
.tt-input { display: block; width: 100%; height: 68px; margin-top: 8px; padding: 0 20px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 24px; color: var(--ink); }
.tt-input:focus { border-color: var(--ink); outline: none; }
.tt-input[aria-invalid="true"], .tt-money input[aria-invalid="true"] { border-color: var(--rm-red); background: #FFF4F3; }
.tt-money { display: flex; align-items: center; height: 76px; padding-left: 22px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.tt-money:focus-within { border-color: var(--ink); }
.tt-money span { font-weight: 700; color: var(--steel); font-size: 24px; }
.tt-money input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 16px; font-family: var(--disp); font-weight: 700; font-size: 34px; color: var(--ink); outline: none; border-radius: 10px; }
.tt-money-xl { height: 110px; max-width: 640px; margin-bottom: 32px; }
.tt-money-xl input { font-size: 54px; }
.tt-screen[data-screen="valor"] .tt-label { max-width: 640px; }
.tt-hint { font-size: 17px; color: var(--steel); min-height: 1.5em; margin: 6px 0 26px; }
.tt-hint.is-warn { color: #B4561A; }
.tt-range { width: 100%; height: 44px; accent-color: var(--rm-red); margin: 0; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.tt-chips button { min-width: 92px; height: 68px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--disp); font-weight: 700; font-size: 26px; cursor: pointer; }
.tt-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tt-seg { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.tt-seg button { min-width: 120px; height: 60px; border: 0; background: none; font-weight: 700; font-size: 20px; cursor: pointer; }
.tt-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Parcela */
.tt-parc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tt-car-mini { display: flex; align-items: center; gap: 16px; padding: 12px; margin-bottom: 26px; background: #fff; border-radius: 10px; }
.tt-car-mini img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }
.tt-car-mini strong { display: block; font-family: var(--disp); font-size: 24px; line-height: 1.1; }
.tt-car-mini span { font-size: 16px; color: var(--steel); }
.tt-parc-res { position: sticky; top: 108px; background: var(--ink); color: #fff; border-radius: 16px; padding: 40px 36px; }
.tt-res-label { color: var(--silver); font-size: 22px; font-weight: 600; }
.tt-res-valor { font-family: var(--disp); font-weight: 800; font-size: clamp(56px, 7vw, 92px); line-height: 1; margin: 10px 0 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tt-res-valor.is-bump { animation: tt-bump .25s ease-out; }
@keyframes tt-bump { from { color: var(--rm-red); } }
.tt-res-det { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; padding: 24px 0; border-top: 1px solid var(--ink-2); }
.tt-res-det dt { color: var(--silver); font-size: 16px; }
.tt-res-det dd { margin: 0; font-weight: 700; font-size: 22px; }
.tt-aviso { display: flex; gap: 16px; align-items: flex-start; margin: 4px 0 28px; padding: 20px 22px; border-radius: 14px; background: #FFD84D; color: #2B1E00; font-size: 19px; line-height: 1.4; box-shadow: 0 0 0 3px rgba(255, 216, 77, .35); }
.tt-aviso svg { flex: none; width: 34px; height: 34px; color: #2B1E00; }
.tt-aviso strong { display: block; font-family: var(--disp); font-size: 25px; font-weight: 800; line-height: 1.15; margin-bottom: 6px; color: #1F1500; }
.tt-aviso span { display: block; font-weight: 600; }
.tt-aviso b { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tt-aviso-light { margin: -12px 0 30px; }
.tt-aviso-nota { margin-top: 16px; font-size: 14px; color: var(--silver); }

/* Carinhas */
.tt-faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tt-face { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 10px 26px; border: 3px solid transparent; border-radius: 16px; background: #fff; cursor: pointer; transition: transform .15s, border-color .15s; }
.tt-face:active { transform: scale(.96); }
.tt-emoji { font-size: 88px; line-height: 1; }
.tt-face-label { font-family: var(--disp); font-weight: 700; font-size: 22px; text-align: center; line-height: 1.15; }
.tt-face[aria-checked="true"] { border-color: var(--rm-red); transform: scale(1.04); }
.tt-face-1 .tt-face-label { color: #C0392B; } .tt-face-2 .tt-face-label { color: #D35400; }
.tt-face-3 .tt-face-label { color: var(--steel); } .tt-face-4 .tt-face-label { color: #27885A; } .tt-face-5 .tt-face-label { color: #1E7A4C; }

/* Formulários */
.tt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.tt-span2 { grid-column: 1 / -1; }
.tt-form small { display: block; font-weight: 400; font-size: 16px; color: var(--steel); margin-top: 6px; min-height: 1.4em; }
.tt-err { color: var(--rm-red); font-weight: 700; min-height: 1.5em; font-size: 20px; }

/* Resumo */
.tt-resumo dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 28px; background: #fff; border-radius: 12px; padding: 8px 28px; }
.tt-resumo dl > div { padding: 16px 0; border-bottom: 1px solid var(--mist); }
.tt-resumo dt { font-size: 15px; color: var(--steel); }
.tt-resumo dd { margin: 0; font-weight: 700; font-size: 21px; }
.tt-lgpd { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: #fff; border-radius: 12px; cursor: pointer; font-size: 18px; margin-bottom: 14px; }
.tt-lgpd input { flex: 0 0 34px; width: 34px; height: 34px; margin: 0; accent-color: var(--rm-red); }

/* Obrigado */
.tt-done.is-on { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: calc(100vh - 84px); padding-bottom: 40px; }
.tt-done h2 { font-size: 64px; margin-bottom: 16px; max-width: none; }
.tt-done p { font-size: 26px; color: var(--steel); max-width: 30ch; }
.tt-done .tt-countdown { font-size: 18px; margin: 28px 0 24px; }
.tt-check { width: 128px; height: 128px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin-bottom: 32px; animation: tt-pop .4s cubic-bezier(.3,1.6,.6,1); }
.tt-check svg { width: 76px; height: 76px; }
.tt-check path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: tt-draw .45s .25s forwards; }
@keyframes tt-pop { from { transform: scale(.4); opacity: 0; } }

/* Diálogos */
.tt-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(20,22,25,.7); padding: 24px; }
.tt-dialog { background: #fff; border-radius: 16px; padding: 40px; width: min(560px, 100%); }
.tt-dialog h2 { font-size: 38px; margin-bottom: 12px; }
.tt-dialog p { color: var(--steel); }
.tt-dialog > .tt-btn { margin-top: 28px; width: 100%; }
.tt-pin-in { text-align: center; letter-spacing: .4em; font-size: 36px; margin-top: 20px; }

/* Retrato e telas menores */
@media (max-width: 1100px) {
	.tt-steps li { font-size: 0; gap: 0; padding: 4px; }
	.tt-steps li.is-on { font-size: 15px; gap: 8px; padding-right: 12px; }
}
@media (max-width: 900px), (orientation: portrait) {
	.tt-screen { padding: 28px 24px 140px; }
	.tt-screen h2 { font-size: 36px; }
	.tt-parc { grid-template-columns: 1fr; }
	.tt-parc-res { position: static; order: -1; padding: 28px; }
	.tt-faces { grid-template-columns: repeat(5, 1fr); gap: 10px; }
	.tt-face { padding: 24px 6px 20px; }
	.tt-face-label { font-size: 18px; }
	.tt-actions { padding-left: 24px; padding-right: 24px; }
	.tt-actions .tt-btn-red { min-width: 0; flex: 1; }
	.tt-emoji { font-size: 60px; }
}
@media (max-width: 600px) {
	body.tt { font-size: 17px; }
	.tt-form, .tt-resumo dl { grid-template-columns: 1fr; }
	.tt-faces { grid-template-columns: repeat(2, 1fr); }
	.tt-btn { min-height: 60px; font-size: 20px; padding: 0 20px; }
	.tt-btn-xl { font-size: 24px; min-height: 76px; }
	.tt-top { height: 68px; padding: 0 16px; }
	.tt-logo { height: 40px; }
	.tt-res-det { grid-template-columns: 1fr 1fr; }
	.tt-idle-logo { height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.tt-sweep path, .tt-check path { stroke-dashoffset: 0; }
}

.tt-install { width: 100%; margin-top: 12px; }
.tt-install-screen { z-index: 60; }
.tt-install-screen .tt-dialog { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.tt-install-icon { width: 96px; height: 96px; border-radius: 22px; }
.tt-btn-block { width: 100%; }
.tt-install-dica { font-size: 16px; color: var(--steel); }
.tt-install-dica.is-ok { color: var(--ok); font-weight: 700; }

/* ---------- Teclado do totem ---------- */
:root { --kb-h: 0px; }
.kb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #D3D7DC; border-top: 1px solid #BFC4CA; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .18s ease-out; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.kb.is-on { transform: none; }
.kb-body { max-width: 1100px; margin: 0 auto; }
.kb-k { --h: clamp(46px, 7.4vh, 68px); height: var(--h); min-width: 0; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--body); font-size: clamp(20px, 2.6vh, 26px); font-weight: 600; box-shadow: 0 2px 0 #A7ADB4; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 4px; -webkit-tap-highlight-color: transparent; }
.kb-k.is-press { background: #B9BEC5; box-shadow: none; transform: translateY(2px); }
.kb-fn { background: #A9AFB7; color: #1D2024; font-size: clamp(16px, 2.1vh, 19px); font-weight: 700; }
.kb-fn.is-on { background: #fff; color: var(--rm-red); }
.kb-enter { background: var(--rm-red); color: #fff; font-weight: 800; font-size: clamp(17px, 2.3vh, 21px); box-shadow: 0 2px 0 var(--rm-red-dk); }
.kb-enter.is-press { background: var(--rm-red-dk); }
.kb-hide { display: none; }

/* Letras */
.kb-abc { display: flex; flex-direction: column; gap: 8px; }
.kb-row { display: flex; gap: 6px; justify-content: center; }
.kb-row > .kb-k { flex: 1 1 0; }
.kb-row > .kb-wide { flex: 1.5 1 0; }
.kb-row > .kb-back { flex: 1.5 1 0; }
.kb-row > .kb-space { flex: 5 1 0; font-size: 16px; color: var(--steel); }
.kb-row > .kb-enter { flex: 2 1 0; }
.kb-n { background: #EEF0F2; font-size: clamp(18px, 2.3vh, 22px); --h: clamp(40px, 6vh, 56px); }
.kb-row-chips { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.kb-row-chips > .kb-chip { flex: 0 0 auto; padding: 0 16px; font-size: 17px; --h: 46px; background: #fff; color: var(--steel); }

/* Números */
.kb-num { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 620px; margin: 0 auto; }
.kb-num .kb-k { --h: clamp(52px, 8vh, 72px); font-size: clamp(24px, 3.2vh, 32px); }
.kb-num .kb-fn { font-size: clamp(16px, 2.1vh, 19px); }
.kb-num .kb-enter { grid-column: 4; grid-row: 3 / span 2; height: auto; font-size: clamp(18px, 2.4vh, 22px); }
.kb-num .kb-zero { grid-column: 2 / span 2; }

/* Com o teclado aberto: some a barra de botões e a página ganha espaço para rolar */
body.kb-open .tt-screen .tt-actions { display: none; }
body.kb-open .tt-screen.is-on { padding-bottom: calc(var(--kb-h) + 32px); }
body.kb-open .tt-overlay { padding-bottom: var(--kb-h); align-items: start; padding-top: 40px; }
.tt-input:focus, .tt-money:focus-within { border-color: var(--rm-red); box-shadow: 0 0 0 3px rgba(222, 63, 60, .18); }

@media (max-width: 600px) {
	.kb { padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
	.kb-row { gap: 4px; }
	.kb-abc { gap: 6px; }
	.kb-k { border-radius: 7px; font-size: 18px; }
	.kb-row > .kb-space { font-size: 13px; }
	.kb-k { white-space: nowrap; }
	.kb-fn { font-size: 13px; }
	.kb-row > .kb-enter { flex: 2.6 1 0; font-size: 14px; }
	.kb-num .kb-enter { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .kb { transition: none; } }

/* Campos protegidos do teclado do aparelho: continuam com cara de campo editável */
.tt input[data-kb-on] { cursor: text; -webkit-user-select: none; user-select: none; }
.tt input[data-kb-on]:focus { caret-color: transparent; }
.tt input[data-kb-on]::selection { background: transparent; }

.tt-livre { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.tt-livre .tt-btn { min-height: 56px; font-size: 20px; padding: 0 22px; }

/* ---------- Quero vender meu carro ---------- */
.tt-idle-btns { display: flex; flex-wrap: wrap; gap: 20px; position: relative; }
.tt-btn-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.tt-idle .tt-btn-light { animation: none; }
.tt-btn-light:active { background: rgba(255,255,255,.12); }
.tt-seg-3 { display: flex; margin-top: 8px; }
.tt-seg-3 button { flex: 1; min-width: 0; padding: 0 12px; font-size: 19px; }
.tt-seg-3 button + button { border-left: 2px solid var(--line); }
.tt-form .tt-money { height: 64px; margin: 8px 0 0; }
.tt-form .tt-money input { font-size: 26px; }
.tt-qr-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; margin-bottom: 32px; }
.tt-qr-txt h2 { margin-bottom: 18px; }
.tt-qr-txt .tt-sub { margin: 0 0 22px; }
.tt-qr-dicas { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: 21px; }
.tt-qr-dicas li { padding-left: 34px; position: relative; }
.tt-qr-dicas li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--rm-red); }
.tt-qr-box { background: #fff; border-radius: 22px; padding: 26px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.tt-qr svg { display: block; width: 100%; height: auto; }
.tt-qr-box p { margin: 12px 0 0; font-size: 18px; color: var(--steel); font-weight: 600; }
.tt-qr-status { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; padding: 14px 22px; border-radius: 999px; background: #fff; border: 2px solid var(--line); }
.tt-qr-status::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #C9CDD2; animation: tt-blink 1.4s ease-in-out infinite; }
.tt-qr-status.is-ok { border-color: #8CCB9E; background: #E5F5EA; color: #1F6E3D; }
.tt-qr-status.is-ok::before { background: #2E9E55; animation: none; }
@keyframes tt-blink { 50% { opacity: .3; } }
@media (max-width: 900px) {
	.tt-qr-wrap { grid-template-columns: 1fr; gap: 28px; }
	.tt-qr-box { max-width: 340px; }
	.tt-seg-3 { flex-direction: column; }
	.tt-seg-3 button + button { border-left: 0; border-top: 2px solid var(--line); }
}
/* Tela inicial com as duas opções: cabe no tablet deitado sem rolar. */
.tt-idle.is-on { padding-top: 48px; padding-bottom: 48px; }
.tt-idle-logo { margin-bottom: 36px; }
.tt-idle h1 { font-size: clamp(44px, 5.4vw, 80px); }
.tt-idle p { margin: 20px 0 36px; }
.tt-qr-depois { margin: 18px 0 0; font-size: 18px; color: var(--steel); max-width: 44ch; }
.tt-qr-depois b { color: var(--ink); }
.tt-qr-txt .tt-qr-dicas { margin-bottom: 20px; }
.tt-screen[data-screen="v-fotos"] { padding-top: 28px; }
.tt-qr-wrap { margin-bottom: 18px; row-gap: 14px; }
.tt-qr-wrap .tt-span-qr { grid-column: 1 / -1; margin: 0; max-width: none; padding: 14px 18px; background: #fff; border-radius: 12px; border: 2px dashed var(--line); }
.tt-qr-txt h2 { font-size: 40px; }
.tt-qr-dicas { gap: 6px; font-size: 20px; margin-bottom: 18px; }
.tt-qr-box { padding: 18px; }
.tt-qr-box .tt-qr { max-width: 280px; margin: 0 auto; }
.tt-screen[data-screen="v-fotos"] .tt-aviso-light { margin: 0 0 20px; }
.tt-qr-txt h2 { max-width: none; }
.tt-screen[data-screen="v-fotos"].is-on { padding-bottom: 28px; }
.tt-screen[data-screen="v-fotos"] .tt-actions { position: static; padding: 0; background: none; }
