/* Cortes Studio no celular: grande, simples, uma mao so */
:root {
  --bg: #0a0c10; --surface: #11141a; --surface-2: #171b23; --surface-3: #1e232d; --border: #242a35;
  --text: #e8ebf1; --text-2: #b6bdcb; --muted: #7e8799; --accent: #ffcc1a; --accent-ink: #15130a;
  --ok: #3ecf8e; --danger: #f2555a; --info: #5b9dff; --r: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { padding: env(safe-area-inset-top) 0 calc(96px + env(safe-area-inset-bottom)); }
button, input, textarea { font: inherit; color: inherit; }
button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; min-height: 48px;
  padding: 0 16px; font-weight: 600; cursor: pointer; }
button:active { transform: scale(.98); }
button:disabled { opacity: .5; }
input, textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.ajuda { color: var(--muted); font-size: 13.5px; }
.erro { color: var(--danger); }

/* topo e abas */
.topo { position: sticky; top: 0; z-index: 5; background: rgba(10, 12, 16, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); padding: 10px 16px 0; }
.marca { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.marca b { color: var(--accent); }
.abas { display: flex; gap: 6px; margin-top: 10px; }
.abas button { flex: 1; min-height: 42px; background: transparent; border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; color: var(--muted); }
.abas button.ativa { color: var(--text); border-bottom-color: var(--accent); }
.num { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff;
  font-size: 12px; line-height: 20px; margin-left: 4px; }

.conteudo { padding: 14px 16px; max-width: 560px; margin: 0 auto; }

/* corte para revisar */
.video { position: relative; background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; }
.info { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 2px; font-size: 13.5px; color: var(--text-2); }
.selo { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); }
.selo.S { background: rgba(255, 204, 26, .16); color: var(--accent); }
.selo.A { background: rgba(62, 207, 142, .14); color: var(--ok); }
.resumo { color: var(--text-2); font-size: 14.5px; margin: 6px 0 0; }
.ajuste { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.ajuste span { font-size: 14px; color: var(--text-2); min-width: 64px; }
.ajuste button { min-height: 44px; }
.dur { text-align: center; margin-top: 8px; font-size: 14px; color: var(--text-2); }
.dur b { color: var(--text); }

/* barra de acoes fixa embaixo (o polegar alcanca) */
.acoes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(10, 12, 16, .96);
  border-top: 1px solid var(--border); }
.acoes button { flex: 1; min-height: 56px; font-size: 16.5px; }
.acoes .aprovar { flex: 1.6; background: var(--ok); color: #06210f; border-color: var(--ok); }
.acoes .rejeitar { color: var(--danger); }
.acoes .pular { flex: .8; }

/* folha de baixo (motivo da rejeicao) */
.fundo { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; }
.folha { width: 100%; max-height: 85vh; overflow: auto; background: var(--surface); border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.folha h3 { margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips button { min-height: 40px; border-radius: 99px; font-weight: 500; font-size: 14.5px; }
.chips button.ativo { border-color: var(--danger); color: var(--danger); }
.folha .linha { display: flex; gap: 10px; margin-top: 12px; }
.folha .linha button { flex: 1; }
.perigo-cheio { background: var(--danger); border-color: var(--danger); color: #fff; }

/* prontos */
.pronto { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); margin-bottom: 10px; }
.pronto img { width: 72px; height: 104px; object-fit: cover; border-radius: 10px; background: var(--surface-3); flex: 0 0 auto; }
.pronto .txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pronto .tit { font-weight: 650; }
.pronto button { min-height: 40px; font-size: 14px; }
.estado-yt { font-size: 13.5px; }
.estado-yt.ok { color: var(--ok); }
.estado-yt.fila { color: var(--info); }
.vazio { text-align: center; padding: 48px 12px; color: var(--muted); }
.vazio .grande { font-size: 44px; }

/* entrar */
.entrar { max-width: 360px; margin: 18vh auto 0; padding: 0 20px; text-align: center; }
.entrar input { text-align: center; font-size: 26px; letter-spacing: 8px; margin: 18px 0 12px; }
.entrar button { width: 100%; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; opacity: 0;
  pointer-events: none; transition: .2s; max-width: calc(100% - 32px); z-index: 20; text-align: center; }
.toast.mostra { opacity: 1; transform: translateX(-50%); }
.pronto a { text-decoration: none; color: inherit; }
.plano { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
  margin-bottom: 12px; font-size: 14.5px; }
.aviso-rep { color: var(--danger); font-size: 13px; }

/* camera e layout no celular */
.video { touch-action: pan-y; }
.video.ajustando { touch-action: none; outline: 2px dashed var(--accent); outline-offset: 2px; }
.ret-cam { position: absolute; border: 3px solid var(--accent); background: rgba(255, 204, 26, .18); border-radius: 6px; pointer-events: none; }
.video.ajustando .ret-cam { pointer-events: auto; }
.ret-cam .alca { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  border: 3px solid #15130a; display: none; }
.video.ajustando .ret-cam .alca { display: block; }
.ret-cam .alca[data-alca="nw"] { left: -14px; top: -14px; }
.ret-cam .alca[data-alca="se"] { right: -14px; bottom: -14px; }
.layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.layouts button { min-height: 44px; font-size: 13.5px; padding: 0 6px; }
.layouts button.ativo { border-color: var(--accent); background: rgba(255, 204, 26, .14); color: var(--accent); }
.box-cam { margin-top: 8px; }
.linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.largo { width: 100%; margin-top: 8px; }
.tela-final img { width: 60%; margin: 10px auto 0; display: block; border-radius: 12px; }

.sino { min-height: 0; height: 34px; width: 38px; padding: 0; margin-left: 8px; border-radius: 10px; font-size: 17px;
  vertical-align: middle; }
