/* Totem do Locker — estilos escopados em .app-totem */
.app-totem { background: #06281a; color: #fff; }
.app-totem .tt {
  --tt-forest: #0b5e38; --tt-deep: #04422b; --tt-ink: #031f14; --tt-line: rgb(255 255 255 / 12%); --tt-soft: rgb(255 255 255 / 7%);
  flex: 1; min-width: 0; min-height: 0; position: relative; display: flex; overflow: hidden; outline: none; user-select: none;
  background: radial-gradient(900px 600px at 85% 0%, rgb(61 233 15 / 14%), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgb(11 94 56 / 80%), transparent 65%), linear-gradient(160deg, #0a4a2d, #04301e 60%, #03231a);
  font-family: var(--sz-font);
}
.app-totem .mono { font-family: var(--sz-mono); }
.app-totem .dim { color: rgb(255 255 255 / 40%); }
.app-totem .empty { color: rgb(255 255 255 / 70%); }
.app-totem .empty h4 { color: #fff; }
.app-totem .loading { color: rgb(255 255 255 / 75%); }
.app-totem .tt-boot { margin: auto; display: grid; justify-items: center; gap: 18px; }

/* ---------- moldura ---------- */
.app-totem .tt-frame { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-totem .tt-top { display: flex; align-items: center; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--tt-line); background: rgb(0 0 0 / 18%); }
.app-totem .tt-logo { display: flex; }
.app-totem .tt-hub { flex: 1; min-width: 0; display: grid; }
.app-totem .tt-hub b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-totem .tt-hub small { font-size: 12.5px; color: rgb(255 255 255 / 60%); }
.app-totem .tt-online { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tt-soft); font: 600 12.5px var(--sz-mono); color: rgb(255 255 255 / 80%); }
.app-totem .tt-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--kp-neon); box-shadow: 0 0 10px var(--kp-neon); }
.app-totem .tt-relogio { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.app-totem .tt-voltar { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px 0 16px; border-radius: 16px; border: 1px solid var(--tt-line); background: var(--tt-soft); color: #fff; font: 700 16px var(--sz-font); cursor: pointer; }
.app-totem .tt-voltar .icon { width: 22px; height: 22px; }
.app-totem .tt-voltar:active { transform: scale(.97); }
.app-totem .tt-main { flex: 1; min-height: 0; display: flex; overflow: auto; }
.app-totem .tt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 28px; font-size: 12px; color: rgb(255 255 255 / 45%); border-top: 1px solid var(--tt-line); }
.app-totem .tt-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.app-totem .tt-foot .icon { width: 14px; height: 14px; }
.app-totem .tt-op { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: rgb(255 255 255 / 40%); font: 600 11.5px var(--sz-font); cursor: pointer; }
.app-totem .tt-op:hover { color: #fff; border-color: var(--tt-line); }
.app-totem .tt-op .icon { width: 13px; height: 13px; }

.app-totem .tt-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kp-neon); }
.app-totem .tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 60px; padding: 0 28px; border-radius: 18px; border: 1px solid var(--tt-line); background: var(--tt-soft); color: #fff; font: 700 18px var(--sz-font); cursor: pointer; transition: transform .12s, filter .15s; }
.app-totem .tt-btn .icon { width: 22px; height: 22px; }
.app-totem .tt-btn:active { transform: scale(.97); }
.app-totem .tt-btn-pri { background: var(--kp-neon); border-color: var(--kp-neon); color: #0d2410; box-shadow: 0 12px 30px -10px rgb(61 233 15 / 70%); }
.app-totem .tt-btn-pri:hover { filter: brightness(1.05); }
.app-totem .tt-btn.busy { opacity: .6; pointer-events: none; }
.app-totem .tt-btn-sm { height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.app-totem .tt-btn-sm .icon { width: 16px; height: 16px; }

/* ---------- seletor ---------- */
.app-totem .tt-sel { flex: 1; overflow: auto; display: grid; place-items: center; padding: 32px; }
.app-totem .tt-sel-in { width: min(760px, 100%); display: grid; gap: 22px; }
.app-totem .tt-sel-h { display: grid; gap: 18px; }
.app-totem .tt-sel-h h1 { color: #fff; font-size: 30px; }
.app-totem .tt-sel-h p { margin: 4px 0 0; color: rgb(255 255 255 / 70%); font-size: 15px; }
.app-totem .tt-sel-list { display: grid; gap: 12px; }
.app-totem .tt-sel-card { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--tt-line); background: rgb(255 255 255 / 6%); color: #fff; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.app-totem .tt-sel-card:hover { background: rgb(255 255 255 / 10%); border-color: rgb(61 233 15 / 50%); }
.app-totem .tt-sel-card:active { transform: scale(.99); }
.app-totem .tt-sel-card.on { border-color: var(--kp-neon); }
.app-totem .tt-sel-card[data-off] { opacity: .6; }
.app-totem .tt-sel-card .grow { display: grid; gap: 3px; }
.app-totem .tt-sel-card b { font-size: 17px; }
.app-totem .tt-sel-card small { font-size: 13px; color: rgb(255 255 255 / 60%); }
.app-totem .tt-sel-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tt-forest); color: var(--kp-neon); flex: none; border: 1px solid rgb(61 233 15 / 30%); }
.app-totem .tt-sel-ic .icon { width: 24px; height: 24px; }
.app-totem .tt-sel-meta { display: grid; justify-items: end; gap: 6px; font-size: 12px; color: rgb(255 255 255 / 60%); }
.app-totem .tt-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgb(61 233 15 / 14%); color: #b9f5a7; font-size: 12px; font-weight: 700; }
.app-totem .tt-chip.warn { background: rgb(224 169 42 / 20%); color: #f5d98c; }
.app-totem .tt-aviso { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgb(224 169 42 / 16%); color: #f5d98c; font-size: 14px; }
.app-totem .tt-aviso .icon { width: 18px; height: 18px; }

/* ---------- descanso ---------- */
.app-totem .tt-idle { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); cursor: pointer; }
.app-totem .tt-idle-ad { position: relative; overflow: hidden; background: #021a10; }
.app-totem .tt-ad { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transition: opacity .9s ease; }
.app-totem .tt-ad.on { opacity: 1; }
.app-totem .tt-ad-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55) saturate(1.2); }
.app-totem .tt-ad img { position: relative; height: calc(100% - 70px); max-width: calc(100% - 60px); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 80%); transform: scale(.97); transition: transform 6s ease; }
.app-totem .tt-ad.on img { transform: scale(1); }
.app-totem .tt-ad figcaption { display: none; position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: grid; gap: 2px; text-align: center; padding: 10px 18px; border-radius: 14px; background: rgb(0 0 0 / 55%); backdrop-filter: blur(8px); white-space: nowrap; max-width: calc(100% - 80px); overflow: hidden; }
.app-totem .tt-ad figcaption b { font-size: 16px; }
.app-totem .tt-ad figcaption span { font-size: 12.5px; color: rgb(255 255 255 / 70%); text-overflow: ellipsis; overflow: hidden; }
/* campanhas dos anunciantes (vídeo mudo ou imagem paisagem 16:9) */
.app-totem .tt-ad-camp video, .app-totem .tt-ad-camp img { position: relative; width: calc(100% - 48px); height: auto; max-height: calc(100% - 120px); aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 18px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 80%); transform: none; }
.app-totem .tt-ad-camp figcaption { bottom: 46px; }
.app-totem .tt-ad-marca { background: linear-gradient(160deg, var(--tt-forest), var(--tt-deep)); }
.app-totem .tt-ad-arte { display: grid; place-items: center; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgb(255 255 255 / 6%); }
.app-totem .tt-dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; }
.app-totem .tt-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgb(255 255 255 / 35%); transition: width .3s, background .3s; }
.app-totem .tt-dots i.on { width: 26px; background: var(--kp-neon); }
.app-totem .tt-ad-tag { position: absolute; top: 16px; left: 16px; padding: 3px 9px; border-radius: 6px; background: rgb(0 0 0 / 45%); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / 70%); }
.app-totem .tt-idle-side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 40px 48px; overflow: hidden; }
.app-totem .tt-idle-side::before { content: ""; position: absolute; right: -180px; top: -180px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgb(61 233 15 / 9%); border-bottom-color: transparent; border-left-color: transparent; transform: rotate(10deg); }
.app-totem .tt-idle-side h1 { color: #fff; font-size: clamp(26px, 3.4cqi, 46px); line-height: 1.12; letter-spacing: -.01em; }
.app-totem .tt-idle-hub { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #b9f5a7; font-weight: 600; font-size: 15px; }
.app-totem .tt-idle-hub .icon { width: 18px; height: 18px; }
.app-totem .tt-idle-cta { display: flex; align-items: center; gap: 18px; padding: 16px 26px 16px 16px; border-radius: 26px; background: var(--kp-neon); color: #0d2410; align-self: flex-start; box-shadow: 0 20px 40px -14px rgb(61 233 15 / 70%); animation: ttBreath 2.4s ease-in-out infinite; }
.app-totem .tt-idle-cta b { font-size: 22px; }
.app-totem .tt-touch { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #0d2410; color: var(--kp-neon); }
.app-totem .tt-touch .icon { width: 26px; height: 26px; }
.app-totem .tt-touch i { position: absolute; inset: 0; border-radius: 18px; border: 2px solid #0d2410; animation: ttRing 2.4s ease-out infinite; }
@keyframes ttBreath { 50% { transform: scale(1.03); } }
@keyframes ttRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.app-totem .tt-idle-pass { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgb(255 255 255 / 70%); font-size: 14px; }
.app-totem .tt-idle-pass li { display: inline-flex; align-items: center; gap: 8px; }
.app-totem .tt-idle-pass b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--tt-soft); border: 1px solid var(--tt-line); color: var(--kp-neon); font-size: 13px; }

/* ---------- início ---------- */
.app-totem .tt-home { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 32px 48px; max-width: 1200px; margin: 0 auto; width: 100%; }
.app-totem .tt-home h1 { color: #fff; font-size: clamp(26px, 3cqi, 40px); text-align: center; }
.app-totem .tt-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.app-totem .tt-acao { position: relative; display: grid; align-content: start; justify-items: start; gap: 10px; min-height: 260px; padding: 30px; border-radius: 30px; border: 1px solid var(--tt-line); color: #fff; text-align: left; cursor: pointer; overflow: hidden; transition: transform .14s, box-shadow .2s; }
.app-totem .tt-acao:active { transform: scale(.98); }
.app-totem .tt-acao b { font-size: clamp(22px, 2.3cqi, 32px); line-height: 1.15; margin-top: 10px; }
.app-totem .tt-acao > span:not(.tt-acao-ic) { font-size: 15px; color: rgb(255 255 255 / 75%); max-width: 360px; }
.app-totem .tt-acao-ret { background: radial-gradient(400px 260px at 100% 0%, rgb(61 233 15 / 35%), transparent 70%), linear-gradient(150deg, #0e7a48, #0b5e38); box-shadow: 0 30px 60px -30px rgb(61 233 15 / 60%); }
.app-totem .tt-acao-dep { background: radial-gradient(400px 260px at 100% 0%, rgb(255 255 255 / 10%), transparent 70%), linear-gradient(150deg, #2e2e2e, #1f2421); }
.app-totem .tt-acao-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgb(0 0 0 / 22%); color: var(--kp-neon); }
.app-totem .tt-acao-ret .tt-acao-ic { background: var(--kp-neon); color: #0d2410; }
.app-totem .tt-acao-ic .icon { width: 34px; height: 34px; }
.app-totem .tt-acao-go { position: absolute; right: 26px; bottom: 26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / 12%); }
.app-totem .tt-acao-go .icon { width: 24px; height: 24px; }
.app-totem .tt-livres { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 13.5px; color: rgb(255 255 255 / 55%); }
.app-totem .tt-livres .icon { width: 15px; height: 15px; }

/* ---------- teclado ---------- */
.app-totem .tt-pad-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 48px; align-items: center; padding: 28px 56px; max-width: 1200px; margin: 0 auto; width: 100%; }
.app-totem .tt-pad-info { display: grid; gap: 16px; align-content: center; }
.app-totem .tt-pad-info h1 { color: #fff; font-size: clamp(26px, 2.8cqi, 40px); line-height: 1.15; }
.app-totem .tt-pad-info > p { margin: 0; font-size: 16px; color: rgb(255 255 255 / 72%); max-width: 520px; }
.app-totem .tt-pin { display: grid; grid-template-columns: repeat(6, minmax(0, 72px)); gap: 12px; margin-top: 8px; }
.app-totem .tt-pin i { display: grid; place-items: center; height: 84px; border-radius: 18px; background: rgb(0 0 0 / 25%); border: 2px solid var(--tt-line); font: 800 38px var(--sz-mono); font-style: normal; color: #fff; transition: border-color .15s, background .15s, transform .15s; }
.app-totem .tt-pin i.on { border-color: rgb(61 233 15 / 60%); background: rgb(61 233 15 / 10%); animation: ttPop .25s var(--ease-spring); }
.app-totem .tt-pin i.cur { border-color: var(--kp-neon); box-shadow: 0 0 0 4px rgb(61 233 15 / 18%); }
.app-totem .tt-pin i.cur::after { content: ""; width: 3px; height: 34px; background: var(--kp-neon); animation: ttBlink 1s steps(2) infinite; }
.app-totem .tt-pin.erro i { border-color: rgb(224 80 63 / 70%); }
.app-totem .tt-pin.shake { animation: ttShake .45s; }
@keyframes ttPop { from { transform: scale(.85); } to { transform: none; } }
@keyframes ttBlink { 50% { opacity: 0; } }
@keyframes ttShake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.app-totem .tt-msg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-size: 15px; }
.app-totem .tt-msg > .icon { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.app-totem .tt-msg div { display: grid; gap: 4px; }
.app-totem .tt-msg small { font-size: 13.5px; opacity: .85; }
.app-totem .tt-msg.erro { background: rgb(224 80 63 / 18%); border: 1px solid rgb(224 80 63 / 45%); color: #ffc2ba; }
.app-totem .tt-msg.info { background: var(--tt-soft); color: rgb(255 255 255 / 85%); align-items: center; }
.app-totem .tt-msg.info .icon { animation: spin 1s linear infinite; }
.app-totem .tt-qr-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--tt-line); background: var(--tt-soft); color: #fff; text-align: left; cursor: pointer; max-width: 460px; }
.app-totem .tt-qr-btn > .icon:first-child { width: 30px; height: 30px; color: var(--kp-neon); }
.app-totem .tt-qr-btn span { flex: 1; display: grid; }
.app-totem .tt-qr-btn b { font-size: 16px; }
.app-totem .tt-qr-btn small { font-size: 13px; color: rgb(255 255 255 / 60%); }
.app-totem .tt-dica { display: flex; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--tt-soft); font-size: 14px; color: rgb(255 255 255 / 75%); max-width: 520px; }
.app-totem .tt-dica .icon { width: 20px; height: 20px; color: var(--kp-neon); flex: none; }
.app-totem .tt-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; border-radius: 30px; background: rgb(0 0 0 / 22%); border: 1px solid var(--tt-line); }
.app-totem .tt-pad button { height: 84px; border-radius: 22px; border: 1px solid rgb(255 255 255 / 10%); background: linear-gradient(180deg, rgb(255 255 255 / 12%), rgb(255 255 255 / 6%)); color: #fff; font: 700 34px var(--sz-font); cursor: pointer; display: grid; place-items: center; transition: transform .08s, background .12s; }
.app-totem .tt-pad button:active { transform: scale(.94); background: rgb(61 233 15 / 25%); }
.app-totem .tt-pad button .icon { width: 30px; height: 30px; }
.app-totem .tt-pad .tt-pad-fn { background: transparent; }
.app-totem .tt-pad .tt-pad-ok { background: var(--kp-neon); color: #0d2410; border-color: var(--kp-neon); }
.app-totem .tt-pad .tt-pad-ok:disabled { background: rgb(255 255 255 / 6%); color: rgb(255 255 255 / 30%); border-color: transparent; cursor: default; }

/* ---------- QR ---------- */
.app-totem .tt-qr { flex: 1; display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 56px; max-width: 1200px; margin: 0 auto; width: 100%; }
.app-totem .tt-qr-cam { display: grid; justify-items: center; gap: 14px; text-align: center; }
.app-totem .tt-qr-cam p { margin: 0; color: rgb(255 255 255 / 65%); font-size: 14px; }
.app-totem .tt-qr-vf { position: relative; width: 100%; aspect-ratio: 1; border-radius: 30px; background: radial-gradient(circle, #10301f, #041a10); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--tt-line); }
.app-totem .tt-qr-vf .c { position: absolute; width: 54px; height: 54px; border: 5px solid var(--kp-neon); }
.app-totem .tt-qr-vf .tl { top: 18%; left: 18%; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.app-totem .tt-qr-vf .tr { top: 18%; right: 18%; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.app-totem .tt-qr-vf .bl { bottom: 18%; left: 18%; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.app-totem .tt-qr-vf .br { bottom: 18%; right: 18%; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.app-totem .tt-scan { position: absolute; left: 18%; right: 18%; height: 3px; background: var(--kp-neon); box-shadow: 0 0 16px var(--kp-neon); animation: ttScan 2.2s ease-in-out infinite; }
@keyframes ttScan { 0%, 100% { top: 22%; } 50% { top: 76%; } }
.app-totem .tt-qr-ph { color: rgb(255 255 255 / 25%); }
.app-totem .tt-qr-ph .icon { width: 70px; height: 70px; }
.app-totem .tt-qr-form { display: grid; gap: 16px; }
.app-totem .tt-qr-form h1 { color: #fff; font-size: clamp(26px, 2.8cqi, 38px); }
.app-totem .tt-qr-form > p { margin: 0; font-size: 15px; color: rgb(255 255 255 / 72%); }
.app-totem .tt-qr-f { display: grid; gap: 12px; }
.app-totem .tt-input { height: 60px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--tt-line); background: rgb(0 0 0 / 28%); color: #fff; font: 500 16px var(--sz-mono); outline: none; user-select: text; }
.app-totem .tt-input:focus { border-color: var(--kp-neon); box-shadow: 0 0 0 4px rgb(61 233 15 / 18%); }
.app-totem .tt-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; color: #b9f5a7; font: 700 15px var(--sz-font); cursor: pointer; }
.app-totem .tt-link .icon { width: 18px; height: 18px; }

/* ---------- gaveta aberta ---------- */
.app-totem .tt-frame.is-ok { background: radial-gradient(800px 500px at 30% 50%, rgb(61 233 15 / 16%), transparent 70%); }
.app-totem .tt-ok { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 28px 56px; max-width: 1240px; margin: 0 auto; width: 100%; }
.app-totem .tt-ok-arte { display: grid; place-items: center; }
.app-totem .tt-ok-tx { display: grid; gap: 14px; justify-items: start; animation: ttIn .5s var(--ease) both .2s; }
.app-totem .tt-ok-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(61 233 15 / 16%); color: var(--kp-neon); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.app-totem .tt-ok-badge .icon { width: 18px; height: 18px; }
.app-totem .tt-ok-tx h1 { color: #fff; font-size: clamp(36px, 4.6cqi, 68px); line-height: 1.02; letter-spacing: -.02em; }
.app-totem .tt-ok-tx h1 b { color: var(--kp-neon); }
.app-totem .tt-ok-sub { margin: 0; font-size: clamp(18px, 2cqi, 26px); font-weight: 600; color: #fff; }
.app-totem .tt-ok-ped { margin: 0; color: rgb(255 255 255 / 65%); font-size: 15px; }
.app-totem .tt-cont { width: 100%; max-width: 420px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 12%); overflow: hidden; margin-top: 6px; }
.app-totem .tt-cont i { display: block; height: 100%; width: 100%; background: var(--kp-neon); transform-origin: left; transition-property: transform; transition-timing-function: linear; }
.app-totem .tt-cont i.go { transform: scaleX(0); }
@keyframes ttIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Armário (a partir das gavetas reais) */
.app-totem .tt-arm { display: flex; gap: 6px; height: min(440px, 62cqh, 52cqi); aspect-ratio: auto; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #0d6b40, #0a5232); box-shadow: 0 40px 70px -30px rgb(0 0 0 / 80%), inset 0 0 0 3px rgb(0 0 0 / 15%); perspective: 900px; }
.app-totem .tt-col { width: clamp(70px, 9cqi, 120px); display: flex; flex-direction: column; gap: 6px; }
.app-totem .tt-g { position: relative; border-radius: 6px; background: linear-gradient(180deg, #0f7a49, #0c6a3f); border: 1px solid rgb(0 0 0 / 22%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%); }
.app-totem .tt-g > span { position: absolute; top: 6px; left: 8px; font: 700 12px var(--sz-mono); color: rgb(255 255 255 / 60%); }
.app-totem .tt-g::after { content: ""; position: absolute; right: 8px; top: 50%; width: 4px; height: 18px; margin-top: -9px; border-radius: 2px; background: rgb(255 255 255 / 25%); }
.app-totem .tt-g.aberta { background: #021a10; box-shadow: inset 0 8px 18px rgb(0 0 0 / 80%), 0 0 0 3px var(--kp-neon), 0 0 30px rgb(61 233 15 / 60%); z-index: 2; }
.app-totem .tt-g.aberta::after { display: none; }
.app-totem .tt-g.aberta > span { color: var(--kp-neon); font-size: 18px; z-index: 1; }
.app-totem .tt-g .porta { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, #12925a, #0d6b40); transform-origin: left center; animation: ttPorta 1s var(--ease) .25s both; box-shadow: 10px 0 20px rgb(0 0 0 / 40%); }
.app-totem .tt-g .luz { position: absolute; inset: 0; border-radius: 6px; background: radial-gradient(circle at 50% 30%, rgb(61 233 15 / 40%), transparent 70%); animation: ttLuz 1.8s ease-in-out infinite; }
@keyframes ttPorta { from { transform: rotateY(0); } to { transform: rotateY(-105deg); } }
@keyframes ttLuz { 50% { opacity: .4; } }
.app-totem .tt-col-tela { width: clamp(80px, 10cqi, 130px); justify-content: flex-start; padding-top: 18%; align-items: center; }
.app-totem .tt-mini-tela { display: grid; place-items: center; width: 82%; aspect-ratio: 3 / 4; border-radius: 8px; background: #031f14; border: 2px solid #072e1d; box-shadow: inset 0 0 14px rgb(61 233 15 / 25%); }
.app-totem .tt-mini-pad { width: 50%; height: 10px; border-radius: 3px; margin-top: 10px; background: rgb(0 0 0 / 30%); }

/* ---------- painel do operador ---------- */
.app-totem .tt-frame.is-op { background: rgb(0 0 0 / 25%); }
.app-totem .tt-painel { flex: 1; display: grid; align-content: start; gap: 20px; padding: 24px 28px; min-width: 0; }
.app-totem .tt-painel > .loading, .app-totem .tt-painel > .error-box { margin: 40px auto; }
.app-totem .tt-op-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-totem .tt-op-h h1 { color: #fff; font-size: 26px; margin-top: 4px; }
.app-totem .tt-op-h p { margin: 2px 0 0; font-size: 13.5px; color: rgb(255 255 255 / 60%); }
.app-totem .tt-op-act { display: flex; align-items: center; gap: 10px; }
.app-totem .tt-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / 60%); }
.app-totem .tt-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--kp-neon); box-shadow: 0 0 10px var(--kp-neon); animation: ttLuz 1.6s infinite; }
.app-totem .tt-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app-totem .tt-kpis div { display: grid; gap: 2px; padding: 14px 18px; border-radius: 16px; background: var(--tt-soft); border: 1px solid var(--tt-line); border-left-width: 4px; }
.app-totem .tt-kpis b { font-size: 30px; font-weight: 800; }
.app-totem .tt-kpis span { font-size: 12.5px; color: rgb(255 255 255 / 60%); font-weight: 600; }
.app-totem .k-free { border-left-color: var(--kp-neon) !important; }
.app-totem .k-res { border-left-color: #e0a92a !important; }
.app-totem .k-occ { border-left-color: #4ba3ff !important; }
.app-totem .k-man { border-left-color: #e0503f !important; }
.app-totem .tt-op-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.app-totem .tt-op-sec { display: grid; gap: 12px; padding: 16px; border-radius: 20px; background: rgb(0 0 0 / 20%); border: 1px solid var(--tt-line); min-width: 0; }
.app-totem .tt-op-sec h2 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; }
.app-totem .tt-op-sec h2 .icon { width: 17px; height: 17px; color: var(--kp-neon); }
.app-totem .tt-gavs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.app-totem .tt-gav { --c: var(--kp-neon); display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--tt-soft); border: 1px solid var(--tt-line); border-top: 4px solid var(--c); font-size: 12.5px; animation: fadeUp .3s var(--ease) both; }
.app-totem .tt-gav.st-reserved { --c: #e0a92a; }
.app-totem .tt-gav.st-occupied { --c: #4ba3ff; }
.app-totem .tt-gav.st-maintenance { --c: #e0503f; background: repeating-linear-gradient(135deg, rgb(224 80 63 / 8%) 0 10px, transparent 10px 20px); }
.app-totem .tt-gav-top { display: flex; align-items: center; justify-content: space-between; }
.app-totem .tt-gav-top b { font-size: 24px; font-weight: 800; }
.app-totem .tt-tam { display: grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 7px; background: rgb(255 255 255 / 12%); font: 700 12px var(--sz-mono); }
.app-totem .tt-gav-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c); }
.app-totem .tt-gav-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.app-totem .tt-gav-ped { font-size: 12.5px; }
.app-totem .tt-gav-door, .app-totem .tt-gav-prazo { display: inline-flex; align-items: center; gap: 5px; color: rgb(255 255 255 / 55%); font-size: 11.5px; }
.app-totem .tt-gav-door .icon, .app-totem .tt-gav-prazo .icon { width: 13px; height: 13px; }
.app-totem .tt-gav-door.open { color: var(--kp-neon); font-weight: 700; }
.app-totem .tt-evs { list-style: none; margin: 0; padding: 0; display: grid; max-height: 520px; overflow: auto; }
.app-totem .tt-evs li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tt-line); }
.app-totem .tt-evs li:last-child { border-bottom: 0; }
.app-totem .tt-evs .grow { display: grid; gap: 1px; }
.app-totem .tt-evs b { font-size: 13px; }
.app-totem .tt-evs small { font-size: 11.5px; color: rgb(255 255 255 / 55%); overflow-wrap: anywhere; }
.app-totem .tt-evs time { font: 600 12px var(--sz-mono); color: rgb(255 255 255 / 55%); }
.app-totem .tt-ev-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--tt-soft); color: rgb(255 255 255 / 70%); flex: none; }
.app-totem .tt-ev-ic .icon { width: 15px; height: 15px; }
.app-totem .ev-deposit .tt-ev-ic { background: rgb(75 163 255 / 18%); color: #7cbcff; }
.app-totem .ev-pickup .tt-ev-ic { background: rgb(61 233 15 / 16%); color: var(--kp-neon); }
.app-totem .ev-pin_failed .tt-ev-ic, .app-totem .ev-maintenance .tt-ev-ic { background: rgb(224 80 63 / 18%); color: #ff8b7d; }
.app-totem .ev-door_opened .tt-ev-ic { color: #f5d98c; }

/* ---------- janelas estreitas (modo lado a lado) ---------- */
@container (max-width: 980px) {
  .app-totem .tt-top { padding: 12px 16px; gap: 12px; }
  .app-totem .tt-online { display: none; }
  .app-totem .tt-relogio { font-size: 18px; min-width: 0; }
  .app-totem .tt-foot { padding: 8px 16px; }
  .app-totem .tt-foot > span { display: none; }
  .app-totem .tt-idle { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .app-totem .tt-idle-side { padding: 22px; gap: 14px; }
  .app-totem .tt-idle-pass { display: none; }
  .app-totem .tt-idle-cta b { font-size: 18px; }
  .app-totem .tt-home { padding: 20px; gap: 18px; }
  .app-totem .tt-acoes { grid-template-columns: 1fr; gap: 12px; }
  .app-totem .tt-acao { min-height: 0; padding: 20px; border-radius: 22px; }
  .app-totem .tt-acao-ic { width: 54px; height: 54px; border-radius: 16px; }
  .app-totem .tt-acao-ic .icon { width: 26px; height: 26px; }
  .app-totem .tt-acao-go { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .app-totem .tt-pad-wrap, .app-totem .tt-qr, .app-totem .tt-ok { grid-template-columns: 1fr; gap: 18px; padding: 18px 20px; align-content: start; }
  .app-totem .tt-pin { gap: 8px; grid-template-columns: repeat(6, 1fr); }
  .app-totem .tt-pin i { height: 64px; font-size: 28px; border-radius: 14px; }
  .app-totem .tt-pad { gap: 10px; padding: 14px; border-radius: 22px; }
  .app-totem .tt-pad button { height: 60px; font-size: 26px; border-radius: 16px; }
  .app-totem .tt-qr-cam { display: none; }
  .app-totem .tt-arm { height: 260px; }
  .app-totem .tt-kpis { grid-template-columns: repeat(2, 1fr); }
  .app-totem .tt-op-grid { grid-template-columns: 1fr; }
  .app-totem .tt-painel { padding: 16px; }
}
