/* CireX · rua 2 · as quatro telas de demonstração (DOM, texto de verdade) */

.tela { position: relative; flex: none; width: var(--tw, 296px); max-width: 100%; height: var(--th, 600px); color: #111B21; font-family: var(--ui); font-size: 15px; line-height: 1.35; text-align: left; -webkit-user-select: none; user-select: none; }
.tela-loja, .tela-oficina { --tw: 296px; --th: 604px; }
.tela-clinica { --tw: 336px; --th: 580px; }
.tela-restaurante { --tw: min(100%, 620px); --th: 430px; container: painel / inline-size; }
.tela::before { content: ""; position: absolute; inset: -20% -34%; z-index: -1; background: radial-gradient(closest-side, rgba(150, 186, 255, 0.5), rgba(76, 134, 255, 0.22) 46%, rgba(76, 134, 255, 0) 76%); pointer-events: none; }
.rolagem .telas .tela:not(.cortada)::after { content: ""; position: absolute; left: -14%; right: -14%; top: 97%; height: 24%; z-index: -1; background: radial-gradient(closest-side, rgba(170, 200, 255, 0.34), rgba(76, 134, 255, 0.12) 56%, rgba(76, 134, 255, 0) 80%); pointer-events: none; }
.tela-corpo { position: absolute; inset: 0; }
.tela svg { flex: none; }
.tela img { width: 100%; height: 100%; object-fit: cover; }

.rolagem .telas .tela { position: absolute; left: 0; top: 0; margin: 0; max-width: none; opacity: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; backface-visibility: hidden; }
.rolagem .telas .tela.visivel { visibility: visible; }
.rolagem .telas .tela.aberta { pointer-events: auto; cursor: pointer; }

.selo { position: absolute; left: 14px; bottom: calc(100% + 7px); display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(8, 12, 24, 0.72); color: var(--luar); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--azul-vivo); }

/* celular: aparelho inteiro, à direita; o selo desce para o lado dele, no espaço da rua */
.tela.de-lado .selo { left: auto; right: calc(100% + 10px); bottom: 14px; font-size: calc(13px / var(--z, 1)); }
.tela.selo-em-pe .selo { writing-mode: vertical-rl; padding: 8px 3px 10px; right: calc(100% + 8px); bottom: 20px; }
/* a conversa também vira um celular de verdade: moldura, hora e recorte da câmera */
.tela.de-lado .papo { border: 7px solid #12182A; border-radius: 42px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 44px 70px -30px rgba(0, 0, 0, 0.85), 0 18px 34px -16px rgba(0, 0, 0, 0.6), 0 0 44px -6px rgba(110, 160, 255, 0.5); }
.tela.de-lado .papo::before { content: "22:47"; flex: none; height: 34px; padding: 7px 0 0 24px; background: #0B5D51; color: #FFFFFF; font-size: 14px; font-weight: 700; }
.tela.de-lado .papo::after { content: ""; position: absolute; left: 50%; top: 8px; width: 78px; height: 22px; margin-left: -39px; border-radius: 13px; background: #05070C; }
.tela.de-lado .papo-topo { min-height: 52px; padding-top: 4px; padding-bottom: 8px; }
.tela.de-lado .papo .brilho { border-radius: 35px; }

/* reflexo de luz que varre o vidro quando a tela chega, e o fio de luz na borda */
.brilho { position: absolute; inset: 0; z-index: 8; border-radius: inherit; overflow: hidden; pointer-events: none; }
.brilho::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 255, 255, 0) 72%); transform: translateX(-150%) skewX(-14deg); }
.brilho::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.42), inset -1px -1px 0 rgba(255, 255, 255, 0.08); }
.tela.aberta .brilho::before { animation: varre 1.5s 0.1s var(--sai) both; }
@keyframes varre { from { transform: translateX(-150%) skewX(-14deg); } to { transform: translateX(380%) skewX(-14deg); } }

/* a luz na porta, de onde a tela sai */
.farol { position: absolute; left: 0; top: 0; width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(226, 236, 255, 0.95), rgba(76, 134, 255, 0.5) 30%, rgba(76, 134, 255, 0) 72%); opacity: 0; pointer-events: none; mix-blend-mode: screen; will-change: transform, opacity; }

/* o dedo */
.toque { position: absolute; left: 0; top: 0; z-index: 9; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(15, 23, 42, 0.3); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 16px rgba(0, 0, 0, 0.32); opacity: 0; pointer-events: none; }

.avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font: 600 15px/1 var(--letreiro); letter-spacing: 0.03em; }
.avatar-loja { background: #EADBC8; color: #5A3A22; }
.avatar-clinica { background: #DDF0EA; color: #0B5D51; }
.avatar-oficina { background: #162034; color: #FFFFFF; }

/* ───────── celular ───────── */
.fone { position: absolute; inset: 0; border-radius: 42px; padding: 7px; background: linear-gradient(145deg, #4A5268 0%, #1A2030 16%, #0A0E19 58%, #2A3146 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), inset 0 0 4px 2px rgba(0, 0, 0, 0.7), 0 44px 70px -30px rgba(0, 0, 0, 0.85), 0 18px 34px -16px rgba(0, 0, 0, 0.6), 0 0 44px -6px rgba(110, 160, 255, 0.5); }
.fone::before, .fone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #0C111D, #454D63); }
.fone::before { right: -2.5px; top: 22%; height: 11%; }
.fone::after { left: -2.5px; top: 17%; height: 5.5%; box-shadow: 0 46px 0 0 #2B3245, 0 88px 0 0 #2B3245; }
.fone-claro { background: linear-gradient(145deg, #FBFBFC 0%, #C4C9D4 18%, #8E95A5 58%, #E3E6EC 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 0 0 1.5px rgba(255, 255, 255, 0.6), inset 0 0 4px 2px rgba(40, 46, 60, 0.45), 0 44px 70px -30px rgba(0, 0, 0, 0.85), 0 18px 34px -16px rgba(0, 0, 0, 0.6), 0 0 44px -6px rgba(140, 180, 255, 0.55); }
.fone-claro::before, .fone-claro::after { background: linear-gradient(90deg, #8E95A5, #E3E6EC); }
.fone-claro::after { box-shadow: 0 46px 0 0 #B4BAC7, 0 88px 0 0 #B4BAC7; }
.fone-vidro { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #FFFFFF; display: flex; flex-direction: column; isolation: isolate; box-shadow: 0 0 0 1.5px #05070C; }
.fone .brilho { border-radius: 42px; }
.barra-status { position: relative; z-index: 6; flex: none; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 4px 20px 0 24px; font-size: 14px; font-weight: 700; color: #111B21; background: inherit; }
.ilha { position: absolute; left: 50%; top: 9px; width: 78px; height: 23px; margin-left: -39px; border-radius: 13px; background: #05070C; }
.status-icones { display: flex; align-items: center; gap: 5px; }
.fone-barra { position: absolute; z-index: 7; left: 50%; bottom: 7px; width: 34%; height: 4.5px; margin-left: -17%; border-radius: 3px; background: rgba(17, 27, 33, 0.82); }
.tela.cortada .fone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.tela.cortada .fone-vidro { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tela.cortada .fone-barra { display: none; }
.tela.cortada .fone .brilho { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tela.cortada .barra-status { height: 31px; padding-top: 2px; }
.tela.cortada .ilha { top: 6px; height: 20px; }

/* ───────── 1. loja: o site no celular ───────── */
.tela-loja .fone-vidro { background: #F7F3EC; }
.site { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #F7F3EC; color: #2B2118; container: site / size; }
.site-rolo { position: relative; }
.site-topo { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; }
.site-marca { font: 600 19px/1 var(--letreiro); letter-spacing: 0.05em; text-transform: uppercase; color: #4A2F1B; }
.site-marca i { font: 600 12.5px/1 var(--ui); font-style: normal; letter-spacing: 0.02em; text-transform: none; color: #8A6F55; margin-left: 2px; }
.site-icones { display: flex; gap: 14px; color: #4A2F1B; }
.site-capa { position: relative; height: 150px; margin: 0 10px; border-radius: 14px; overflow: hidden; }
.site-capa::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 18, 8, 0.82) 0, rgba(30, 18, 8, 0.2) 55%, rgba(30, 18, 8, 0) 80%); }
.site-chamada { position: absolute; z-index: 1; left: 14px; right: 30px; bottom: 12px; font: 600 21px/1.12 var(--letreiro); color: #FFFFFF; }
.site-aviso { display: flex; align-items: center; gap: 8px; margin: 10px 10px 0; padding: 9px 12px; border-radius: 10px; background: #ECE4D5; font-size: 13.5px; font-weight: 600; color: #4A2F1B; }
.site-aviso i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #D98B2B; }
.site-secao { padding: 14px 16px 9px; font-size: 16px; font-weight: 700; }
.site-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 0 10px 22px; }
.produto { display: flex; flex-direction: column; gap: 1px; font-size: 14px; color: #6B5A48; }
.produto b { margin-top: 6px; font-size: 14.5px; color: #2B2118; }
.produto-foto { display: block; aspect-ratio: 1 / 0.84; border-radius: 12px; overflow: hidden; background: #EDE6D8; }
.produto-largo { grid-column: span 2; }
.produto-largo .produto-foto { aspect-ratio: 2 / 0.9; }
.site-sombra { position: absolute; inset: 0; z-index: 2; background: rgba(24, 16, 8, 0.5); }
.ficha { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 8px 14px 20px; border-radius: 22px 22px 0 0; background: #FFFFFF; box-shadow: 0 -14px 34px rgba(24, 16, 8, 0.28); transform: translateY(110%); }
.ficha-pega { display: block; width: 38px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #D9D2C5; }
.ficha-linha { display: flex; gap: 12px; align-items: center; }
.ficha-foto { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #EDE6D8; }
.ficha-texto { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: #6B5A48; }
.ficha-texto b { font-size: 17px; color: #2B2118; }
.ficha-texto strong { margin-top: 4px; font-size: 17px; color: #2B2118; }
.ficha-botao { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin-top: 12px; border-radius: 23px; background: #1DAA61; color: #FFFFFF; font-size: 15px; font-weight: 700; }

.zap { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 74%; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; overflow: hidden; background: #EFE9DF; box-shadow: 0 -16px 40px rgba(8, 12, 24, 0.38); }
.zap-topo { flex: none; display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 8px 12px 8px 8px; background: #0B5D51; color: #FFFFFF; }
.zap-topo .avatar { width: 36px; height: 36px; }
.zap-quem { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.25; color: rgba(255, 255, 255, 0.82); }
.zap-quem b { font-size: 15.5px; color: #FFFFFF; }
.zap-corpo { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px 10px 6px; overflow: hidden; }
.zap-corpo .papo-dia { margin-bottom: auto; }

.zap-campo, .papo-campo { flex: none; display: flex; align-items: center; gap: 7px; padding: 6px 8px 14px; }
.zap-campo span, .papo-campo span { flex: 1; display: flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 21px; background: #FFFFFF; color: #8696A0; font-size: 15px; }
.zap-campo i, .papo-campo i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #1DAA61; color: #FFFFFF; }
.tela.cortada .zap-campo, .tela.cortada .papo-campo { padding-bottom: 10px; }

.balao { position: relative; display: block; max-width: 86%; padding: 7px 9px 5px; border-radius: 12px; font-size: 15px; line-height: 1.33; color: #111B21; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.16); }
.balao.meu { align-self: flex-end; background: #D9FDD3; border-bottom-right-radius: 3px; }
.balao.deles { align-self: flex-start; background: #FFFFFF; border-bottom-left-radius: 3px; }
.balao-texto { display: block; }
.pe { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 1px; font-size: 11.5px; color: #667781; }
.vistos { color: #8696A0; }
.vistos.lidos { color: #2D9CDB; }
.balao-produto { padding: 5px 5px 5px; width: 86%; }
.balao-produto .balao-texto, .balao-produto .pe { padding: 0 4px; }
.cartao-produto { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; padding: 6px; border-radius: 9px; background: rgba(11, 93, 81, 0.1); font-size: 13.5px; color: #54656F; }
.cartao-produto img { flex: none; width: 50px; height: 50px; border-radius: 7px; background: #EDE6D8; }
.cartao-produto span { display: flex; flex-direction: column; }
.cartao-produto b { font-size: 14.5px; color: #111B21; }

/* ───────── 2. clínica: a conversa ───────── */
.papo { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #EFE9DF; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 44px 70px -30px rgba(0, 0, 0, 0.85), 0 18px 34px -16px rgba(0, 0, 0, 0.6), 0 0 44px -6px rgba(110, 160, 255, 0.5); container: papo / size; }
.tela.cortada .papo { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.papo-topo { flex: none; display: flex; align-items: center; gap: 7px; min-height: 60px; padding: 10px 9px 10px 8px; background: #0B5D51; color: #FFFFFF; }
.papo-quem { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.papo-quem b { font-size: 14px; letter-spacing: -0.02em; white-space: nowrap; }
.papo-estado { position: relative; display: block; height: 17px; font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.papo-estado span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.papo-estado [data-estado-b] { opacity: 0; }
/* a coluna invertida prende a conversa embaixo quando ela não cabe (o começo some por cima) e a margem automática
   leva a conversa para o alto quando sobra espaço: nunca fica um vazio grande em cima */
.papo-corpo { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column-reverse; padding: 10px 12px 8px; overflow: hidden; }
.papo-fluxo { position: relative; flex: none; margin-bottom: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.papo-cartao { align-self: center; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.72); box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.1); font-size: 13px; line-height: 1.3; color: #54656F; }
.papo-cartao .avatar { width: 40px; height: 40px; }
.papo-cartao-texto { display: flex; flex-direction: column; }
.papo-cartao-texto b { font-size: 15px; color: #111B21; }
.papo-cartao-hora { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #8A4B0B; }
.papo-cartao-hora i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #D98B2B; }
.papo-dia { align-self: center; padding: 3px 11px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); font-size: 12.5px; color: #54656F; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.auto { display: block; margin-bottom: 1px; font-size: 12.5px; font-weight: 700; color: #0B7A68; }
.horarios { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 5px; }
.horarios span { padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #0B7A68; color: #0B5D51; font-size: 14px; font-weight: 700; }
.horarios [data-escolhido] { background: #0B7A68; color: #FFFFFF; }
.horarios [data-escolhido].livre { background: none; color: #0B5D51; }
.balao-marcado { width: 86%; padding: 5px 5px 5px; }
.balao-marcado .balao-texto, .balao-marcado .pe { padding: 0 4px; }
.marcado { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 8px; border-radius: 9px; background: #EAF4F1; font-size: 13.5px; color: #54656F; }
.marcado i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #0B7A68; color: #FFFFFF; }
.marcado span { display: flex; flex-direction: column; }
.marcado b { font-size: 15px; color: #111B21; }
.digitando { position: absolute; left: 0; top: 0; display: flex; gap: 4px; padding: 13px 14px; border-radius: 12px 12px 12px 3px; background: #FFFFFF; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.16); opacity: 0; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6AD; }
.viva .digitando i { animation: pula 1s infinite; }
.viva .digitando i:nth-child(2) { animation-delay: 0.15s; }
.viva .digitando i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pula { 0%, 60%, 100% { transform: none; opacity: 0.6; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ───────── 3. restaurante: o painel de pedidos ───────── */
.prancha { position: absolute; inset: 0; padding: 9px; border-radius: 24px; background: linear-gradient(150deg, #454D63 0%, #171D2C 14%, #0A0E18 66%, #2A3146 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 0 0 1.5px rgba(255, 255, 255, 0.15), inset 0 0 4px 2px rgba(0, 0, 0, 0.7), 0 44px 70px -30px rgba(0, 0, 0, 0.85), 0 18px 34px -16px rgba(0, 0, 0, 0.6), 0 0 44px -6px rgba(110, 160, 255, 0.5); }
.tela.cortada .prancha { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.painel { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 15px; overflow: hidden; background: #F3EDE2; color: #2A1E14; box-shadow: 0 0 0 1.5px #05070C; }
.tela.cortada .painel { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.painel-topo { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; background: #7A2E18; color: #FFF6EC; }
.painel-casa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.painel-casa i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 246, 236, 0.16); }
.painel-casa > span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.25; color: rgba(255, 246, 236, 0.82); white-space: nowrap; }
.painel-casa b { font: 600 18px/1.1 var(--letreiro); letter-spacing: 0.04em; text-transform: uppercase; color: #FFF6EC; }
.painel-numeros { display: flex; gap: 20px; }
.painel-num { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; line-height: 1.2; color: rgba(255, 246, 236, 0.82); white-space: nowrap; }
.painel-num b { font: 600 22px/1.15 var(--letreiro); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: #FFF6EC; }
.colunas { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; align-items: start; overflow: hidden; }
.coluna { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.coluna-nome { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.coluna-nome i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #D98B2B; }
.coluna-preparo .coluna-nome i { background: #2563EB; }
.coluna-pronto .coluna-nome i { background: #2F8F5B; }
.coluna-nome b { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: rgba(42, 30, 20, 0.1); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.vaga { position: relative; min-height: var(--vaga, 158px); border-radius: 11px; }
.coluna-novo .vaga { box-shadow: inset 0 0 0 1.5px rgba(42, 30, 20, 0.16); background: rgba(42, 30, 20, 0.035); }
.vaga > span { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; font-size: 12.5px; line-height: 1.3; text-align: center; color: rgba(42, 30, 20, 0.62); }
.comanda { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 11px; border-radius: 11px; background: #FFFDF8; font-size: 14px; line-height: 1.3; box-shadow: 0 1px 0 rgba(42, 30, 20, 0.08), 0 10px 20px -12px rgba(42, 30, 20, 0.4); }
.comanda-viva { z-index: 3; box-shadow: 0 0 0 2px #2F8F5B, 0 16px 28px -12px rgba(42, 30, 20, 0.5); }
.comanda-viva[data-fase="0"] { box-shadow: 0 0 0 2px #D98B2B, 0 16px 28px -12px rgba(42, 30, 20, 0.5); }
.comanda-viva[data-fase="1"] { box-shadow: 0 0 0 2px #2563EB, 0 16px 28px -12px rgba(42, 30, 20, 0.5); }
.comanda-cab { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: #7A6A58; }
.comanda-cab b { font: 600 17px/1.1 var(--letreiro); letter-spacing: 0.02em; color: #2A1E14; }
.comanda-cab em { margin-left: auto; font-style: normal; font-weight: 700; color: #B5561C; }
.comanda-item { font-weight: 600; }
.comanda-pe { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; padding-top: 5px; border-top: 1px dashed rgba(42, 30, 20, 0.24); font-size: 13px; color: #6B5B4A; }
.comanda-pe span:last-child { font-weight: 700; color: #2A1E14; font-variant-numeric: tabular-nums; }
.comanda-estado { position: relative; display: block; height: 34px; margin-top: 6px; }
.estado { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; font-size: 13.5px; font-weight: 700; opacity: 0; white-space: nowrap; }
.estado-novo { background: #2A1E14; color: #FFF6EC; }
.estado-preparo { justify-content: space-between; padding: 0 10px; background: #E6EDFB; color: #1D4FD0; }
.estado-preparo i { width: 42%; height: 5px; border-radius: 3px; background: rgba(37, 99, 235, 0.22); overflow: hidden; }
.estado-preparo u { display: block; height: 100%; background: #2563EB; transform: scaleX(1); transform-origin: left; }
.estado-pronto { background: #E0F1E6; color: #1F6B43; }
[data-fase="0"] .estado-novo, [data-fase="1"] .estado-preparo, [data-fase="2"] .estado-pronto { opacity: 1; }
.comanda-fixa { box-shadow: 0 1px 0 rgba(42, 30, 20, 0.08), 0 8px 16px -12px rgba(42, 30, 20, 0.3); }
.comanda-fixa .comanda-pe span:last-child { font-weight: 600; color: #6B5B4A; }
.comanda-feita { background: rgba(255, 253, 248, 0.6); }
.curto, .c2 { display: none; }

@container painel (max-width: 650px) {
  .comanda { font-size: 13.5px; }
  .estado { font-size: 12.5px; gap: 4px; }
  .estado svg { width: 14px; height: 14px; }
}
@container painel (max-width: 480px) {
  .prancha { padding: 7px; border-radius: 22px; }
  .painel-topo { padding: 9px 10px; gap: 8px; }
  .painel-casa { gap: 7px; }
  .painel-casa i { display: none; }
  .painel-casa b { font-size: 15.5px; }
  .painel-casa > span span { display: none; }
  .painel-numeros { gap: 12px; }
  .painel-num { font-size: 12px; }
  .painel-num b { font-size: 17px; }
  .colunas { gap: 6px; padding: 9px 7px; }
  .coluna { gap: 6px; }
  .coluna-nome { gap: 4px; font-size: 12.5px; }
  .coluna-nome i { width: 7px; height: 7px; }
  .coluna-nome b { min-width: 0; padding: 0 5px; font-size: 12px; }
  .vaga { --vaga-min: 112px; min-height: var(--vaga, 112px); }
  .vaga > span { padding: 6px; font-size: 12px; }
  .comanda { padding: 8px 8px 8px; font-size: 13px; gap: 1px; }
  .comanda-cab span, .comanda-cab em { display: none; }
  .comanda-cab b { font-size: 15px; }
  .comanda-pe { flex-direction: column; gap: 0; font-size: 12px; margin-top: 3px; padding-top: 3px; }
  .comanda-estado { height: 28px; margin-top: 4px; }
  .estado { font-size: 12px; gap: 4px; }
  .estado-preparo { padding: 0 7px; }
  .estado-preparo i { width: 30%; }
  .estado svg { display: none; }
  .longo { display: none; }
  .curto { display: inline; }
  .coluna .coluna-nome { order: -2; }
  .coluna .vaga { order: -1; box-shadow: inset 0 0 0 1.5px rgba(42, 30, 20, 0.16); background: rgba(42, 30, 20, 0.035); }
}
@container painel (max-width: 330px) {
  .painel-pedidos { display: none; }
  .colunas { gap: 5px; padding: 8px 6px; }
  .comanda { padding: 7px 6px; font-size: 12.5px; }
  .coluna-nome { font-size: 12px; }
  .l2 { display: none; }
  .c2 { display: inline; }
}

/* ───────── 4. oficina: a busca ───────── */
.tela-oficina .fone-vidro { background: #FFFFFF; }
.busca { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; background: #FFFFFF; color: #1F2328; }
.busca-campo { flex: none; display: flex; align-items: center; gap: 9px; height: 46px; margin: 6px 12px 0; padding: 0 14px; border-radius: 23px; background: #F1F3F6; box-shadow: inset 0 0 0 1px #E1E5EB; color: #5B6472; font-size: 15.5px; }
.busca-texto { flex: 1; min-width: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; color: #1F2328; }
.cursor { flex: none; width: 1.5px; height: 19px; margin-left: 1px; background: #2563EB; opacity: 0; }
.digitando-busca .cursor { opacity: 1; }
.busca-abas { flex: none; display: flex; gap: 18px; padding: 11px 16px 0; border-bottom: 1px solid #E8EBEF; font-size: 13.5px; color: #5B6472; }
.busca-abas span { padding-bottom: 8px; }
.busca-abas .on { font-weight: 700; color: #1F2328; box-shadow: inset 0 -2.5px 0 #2563EB; }
.resultados { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 0; }
.anuncio { flex: none; display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 16px; background: #F5F8FE; box-shadow: inset 0 0 0 1px #DCE4F3; }
.anuncio-cab { display: flex; align-items: center; gap: 9px; color: #5B6472; }
.anuncio-cab .avatar { width: 34px; height: 34px; font-size: 13.5px; }
.anuncio-quem { flex: 1; display: flex; flex-direction: column; line-height: 1.22; font-size: 12.5px; }
.anuncio-quem b { font-size: 14.5px; color: #1F2328; }
.anuncio-quem em { font-style: normal; font-weight: 700; color: #1F2328; }
.anuncio-titulo { margin-top: 3px; font-size: 17px; line-height: 1.24; font-weight: 700; color: #1A46C4; }
.anuncio-texto { font-size: 14px; color: #4A5361; }
.anuncio-acoes { display: flex; gap: 7px; margin-top: 6px; }
.acao { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 20px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #C9D6F5; color: #1A46C4; font-size: 14px; font-weight: 700; }
.acao-ligar { background: #2563EB; box-shadow: none; color: #FFFFFF; }
.anuncio-foto { order: 5; display: block; height: 92px; margin-top: 6px; border-radius: 10px; overflow: hidden; background: #E9ECF1; }
.comum { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 2px 6px; }
.comum u { display: block; height: 9px; border-radius: 5px; background: #E9ECF1; text-decoration: none; }
.comum .forte { height: 13px; background: #D3DBEB; }
.comum .fino { height: 7px; }
.comum-cab { display: flex; align-items: center; gap: 8px; }
.comum-cab i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #E9ECF1; }
.comum-cab span { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w100 { width: 100%; }
.sugestoes { position: absolute; z-index: 3; left: 12px; right: 12px; top: 58px; display: flex; flex-direction: column; padding: 4px 0; border-radius: 16px; background: #FFFFFF; box-shadow: 0 0 0 1px #E1E5EB, 0 16px 30px -14px rgba(31, 35, 40, 0.3); opacity: 0; }
.sugestoes span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14.5px; color: #1F2328; white-space: nowrap; overflow: hidden; }
.sugestoes span + span { box-shadow: 0 -1px 0 #EEF0F3; }
.sugestoes svg { color: #8A93A1; }
.chamada { position: absolute; z-index: 4; left: 8px; right: 8px; bottom: 16px; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 10px 0 12px; border-radius: 20px; background: #101826; color: #FFFFFF; box-shadow: 0 18px 34px -12px rgba(8, 12, 24, 0.7); }
.tela.cortada .chamada { bottom: 8px; }
.chamada-quem { flex: 1; display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: #9FE3B8; }
.chamada-quem b { font-size: 15px; color: #FFFFFF; }
.chamada-fim { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #E5484D; }

/* telas recortadas (celular): o conteúdo se arruma pela altura que sobra, não por miniatura */
@container site (max-height: 400px) {
  .zap [data-resposta] { display: none; }
}
@container site (max-height: 330px) {
  .site-capa { height: 112px; }
  .ficha { padding-bottom: 12px; }
  .ficha-foto { width: 68px; height: 68px; }
  .zap { height: 92%; }
  .zap-topo { min-height: 46px; padding-top: 5px; padding-bottom: 5px; }
  .zap-campo, .zap .papo-dia { display: none; }
}
@container papo (max-height: 350px) {
  .papo-topo { min-height: 50px; padding-top: 6px; padding-bottom: 6px; }
  .papo-campo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tela.aberta .brilho::before { animation: none; }
}

/* medir um aparelho não pode recalcular a página inteira: cada um é uma ilha de tamanho fixo */
.rolagem .telas { contain: layout size style; }
.rolagem .telas .tela { contain: layout size style; }
