/* ============ Cine Screen — painel ============ */
[hidden] { display: none !important; }
:root {
  --bg: #f5f6fb; --card: #fff; --ink: #14152b; --ink-2: #3b3d5a; --muted: #6e7191; --line: #e7e8f1; --line-2: #f0f1f7;
  --brand: #00897b; --brand-2: #00bfa6; --brand-ink: #fff; --brand-soft: #e0f7f3;
  --ok: #12a150; --warn: #c27803; --bad: #e5374b; --side: #0f1b1e; --side-2: #16282c;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,21,43,.05), 0 4px 16px rgba(20,21,43,.04); --shadow-lg: 0 20px 60px rgba(13,15,31,.25);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:not(.btn):not(nav a) { color: var(--brand); text-decoration: none; } a:not(.btn):not(nav a):hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: -.01em; font-weight: 700; }
.ico { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* login */
#login { position: fixed; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.login-art { background: radial-gradient(circle at 20% 15%, rgba(0,191,166,.35), transparent 45%), radial-gradient(circle at 85% 80%, rgba(0,137,123,.28), transparent 45%), var(--side);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.login-art h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; max-width: 460px; font-weight: 800; }
.login-art p { color: #b9bcd6; max-width: 420px; font-size: 16px; margin: 0; }
.login-strip { display: flex; gap: 10px; opacity: .5; } .login-strip span { width: 54px; height: 38px; border-radius: 8px; border: 2px solid rgba(255,255,255,.35); }
.login-side { display: flex; align-items: center; justify-content: center; padding: 32px; }
.login-box { width: 100%; max-width: 360px; display: grid; gap: 16px; }
.login-box h1 { font-size: 24px; } .login-box .muted { margin: -8px 0 6px; }
.login-box .btn.primary { height: 44px; justify-content: center; font-size: 15px; }
@media (max-width: 860px) { #login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* layout */
#app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
aside { background: linear-gradient(180deg, var(--side), var(--side-2)); color: #a9acc9; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 4px 10px 18px; display: flex; flex-direction: column; gap: 10px; }
.brand img { height: 34px; width: auto; align-self: flex-start; }
.cine-tag { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.cine-tag small { display: block; color: #8e91b1; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6d7096; padding: 14px 10px 6px; font-weight: 600; }
nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: #b4b7d3; font-weight: 500; transition: background .15s, color .15s; }
nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
nav a.active { background: linear-gradient(90deg, rgba(0,191,166,.22), rgba(0,137,123,.08)); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
nav a.active .ico { stroke: #00bfa6; }
.user { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.user .who { flex: 1; min-width: 0; } .user .who a { color: #fff; text-decoration: none; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .who small { color: #7f82a5; } .user #logout { color: #a9acc9; display: grid; place-items: center; padding: 6px; border-radius: 8px; } .user #logout:hover { background: rgba(255,255,255,.08); color: #fff; }
main { padding: 30px 36px 48px; min-width: 0; max-width: 1480px; width: 100%; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.head .spacer { flex: 1; }
main > .head:first-child + p.muted, main > .head:first-child + .muted { margin-top: -6px !important; margin-bottom: 20px; max-width: 900px; }

/* controles */
.btn { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 550; text-decoration: none; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 7px; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:hover { border-color: #cfd1e1; background: #fafbff; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--brand), #00a38c); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(0,191,166,.28); }
.btn.primary:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--brand), #00a38c); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: #fff3f4; border-color: #f7c6cc; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #5fd6c4; box-shadow: 0 0 0 3px rgba(0,191,166,.14); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.form { display: grid; gap: 14px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.err { color: var(--bad); min-height: 1em; margin: 0; font-weight: 500; }
.muted { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: #eef0f6; color: #464966; line-height: 1.6; }
.chip.ok { background: #e3f7ec; color: #0b7a3c; } .chip.bad { background: #fde8ea; color: #b4233a; } .chip.warn { background: #fdf2dc; color: #925b00; }
.chip.ok::before, .chip.bad::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.days { display: flex; gap: 5px; }
.days label { display: flex; align-items: center; gap: 4px; color: var(--ink); background: #f3f4f9; padding: 6px 9px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.days label:has(input:checked) { background: var(--brand-soft); border-color: #9fe3d8; }

/* cards e tabelas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; }
.stat b { font-size: 30px; display: block; letter-spacing: -.03em; font-weight: 750; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,191,166,.10), rgba(0,137,123,.06)); }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfe; font-weight: 650; }
tbody tr { transition: background .12s; } tbody tr:hover { background: #fafbff; }
tr:last-child td { border-bottom: 0; }
td .btn + .btn, td .btn + a.btn, td a.btn + .btn { margin-left: 4px; }
code { background: #f1f2f8; padding: 2px 7px; border-radius: 6px; font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink-2); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty::before { content: ""; display: block; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(0,191,166,.14), rgba(0,137,123,.12)); }

/* mídias */
.drop { border: 2px dashed #d6d8e6; border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); margin-bottom: 18px; background: #fbfbfe; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover:not(.disabled) { border-color: #7fd9cb; background: var(--brand-soft); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.uploads { display: grid; gap: 6px; margin-bottom: 16px; }
.upload { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: grid; grid-template-columns: 1fr 200px 60px; gap: 10px; align-items: center; font-size: 13px; }
.bar { height: 6px; background: #eef0f6; border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 0; border-radius: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,21,43,.09); }
.tile.pick { cursor: pointer; } .tile.pick:hover { border-color: #7fd9cb; }
.thumb { aspect-ratio: 16/10; background: #0e0f1d center/contain no-repeat; position: relative; }
.thumb .badge { position: absolute; top: 8px; left: 8px; background: rgba(13,15,31,.72); backdrop-filter: blur(4px); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.thumb .badge.r { left: auto; right: 8px; }
.tile .meta { padding: 10px 12px 8px; font-size: 13px; display: grid; gap: 4px; }
.tile .meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.tile .tools { display: flex; gap: 5px; padding: 0 12px 12px; margin-top: auto; }

/* editor playlist */
.editor { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
.items { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 26px 96px 1fr 120px auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.item.drag { opacity: .4; } .item.over { border-color: var(--brand); }
.item .h { cursor: grab; color: var(--muted); text-align: center; user-select: none; }
.item .t { width: 96px; aspect-ratio: 16/10; background: #0e0f1d center/contain no-repeat; border-radius: 8px; }
.item input { width: 100%; }
.lib { max-height: 72vh; overflow: auto; }
.lib .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.lib .meta { padding: 6px 8px; font-size: 12px; }
.lib .tile:hover { transform: none; }

/* modal, toast, ajuda */
#modal { position: fixed; inset: 0; background: rgba(13,15,31,.48); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow: auto; animation: fade .15s; }
.modal-box { background: #fff; border-radius: 18px; padding: 26px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal-box.wide { max-width: 1040px; }
.modal-box h2 { font-size: 19px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 60; box-shadow: var(--shadow-lg); font-weight: 500; animation: pop .18s; }
.preview-frame { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; border-radius: 10px; }
.preview-frame.v { aspect-ratio: 9/16; max-height: 70vh; width: auto; margin: 0 auto; display: block; }
.help { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #eceef6; color: #6e7191; font-size: 11px; font-weight: 800; cursor: help;
  vertical-align: middle; margin-left: 5px; flex-shrink: 0; font-style: normal; text-transform: none; letter-spacing: 0; line-height: 1; transition: background .15s, color .15s; }
.help:hover, .help:focus { background: var(--brand); color: #fff; outline: none; }
#tip { position: fixed; z-index: 80; max-width: 290px; background: var(--ink); color: #f2f3fa; font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow-lg); pointer-events: none; font-weight: 450; text-transform: none; letter-spacing: 0; }
#tip::after { content: ""; position: absolute; left: var(--ax, 50%); top: 100%; border: 6px solid transparent; border-top-color: var(--ink); transform: translateX(-50%); }
#tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }

@media (max-width: 960px) { #app { grid-template-columns: 1fr; } aside { position: static; height: auto; } .editor { grid-template-columns: 1fr; } main { padding: 22px 16px; } }
.lib .thumb .badge.r { display: none; }
.row > * { min-width: 0; } .row select, .row input { width: 100%; }
/* v4: tipos de mídia e classificação */
.rating { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; vertical-align: middle; }
.rating.rL { background: #1f9d3a; } .rating.r6 { background: #D9387A; } .rating.r10 { background: #1976d2; } .rating.r12 { background: #e8b100; color: #1d2330; }
.rating.r14 { background: #e46a00; } .rating.r16 { background: #d32f2f; } .rating.r18 { background: #111; }
.chip.ct-filme { background: #ede9fe; color: #5b21b6; } .chip.ct-bilheteria { background: #dbeafe; color: #1e40af; }
.chip.ct-bomboniere { background: #fef3c7; color: #92400e; } .chip.ct-promocao { background: #fce7f3; color: #9d174d; } .chip.ct-anunciante { background: #dcfce7; color: #166534; }
.ctline { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.ctline .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.drop.disabled { cursor: not-allowed; background: #f7f8fa; border-color: #dfe3e8; }
#newMedia h2 { margin-bottom: 10px; }
.days input[type=radio] { margin: 0; }
.days label { white-space: nowrap; }
/* v5: grupos e cinemas */
.grp-card { margin-bottom: 16px; }
.cine-head, .cine-row { display: grid; grid-template-columns: 2fr 1.4fr 90px 40px; gap: 8px; align-items: center; }
.cine-head { font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.cine-row { margin-bottom: 6px; }
.grp-pick { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 8px; }
.grp-pick .grp-all { display: flex; align-items: center; gap: 6px; color: var(--ink); margin-bottom: 6px; flex-direction: row; }
.minrooms { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.minrooms input { width: 70px; padding: 5px 8px; }
.days label .muted { font-size: 12px; }
/* v6: programação das salas */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.room .prog { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
/* v7 */
.chip.rt { background: #1d2330; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.sessrow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sess { display: inline-flex; align-items: center; gap: 4px; background: #f1f3f6; border-radius: 6px; padding: 2px 7px; font-size: 12px; }
.sess.edit { padding: 3px 6px; } .sess.edit select { padding: 2px 4px; font-size: 12px; } .sess.edit button { border: 0; background: none; color: var(--bad); cursor: pointer; }
#sList { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sess-add { display: grid; grid-template-columns: 1fr 130px 80px auto; gap: 6px; margin-top: 6px; }
.room-cfg { display: grid; gap: 8px; } .room-line { display: grid; grid-template-columns: 70px 200px 1fr; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.pv-frame { aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; } .pv-frame.v { aspect-ratio: 9/16; max-height: 60vh; margin: 0 auto; }
.pv-frame iframe { width: 100%; height: 100%; border: 0; pointer-events: none; } .pv-cap { margin-top: 6px; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* v8 */
.cine-head, .cine-row { grid-template-columns: 2fr 1.3fr 70px 92px 1.6fr 40px; }
.sess-days { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sess-days label { display: flex; align-items: center; gap: 3px; color: var(--ink); background: #f1f3f6; padding: 4px 7px; border-radius: 6px; font-size: 13px; flex-direction: row; }
.sess i { font-style: normal; color: #6d28d9; font-weight: 600; font-size: 11px; }
.row input[type=checkbox], .row input[type=radio] { width: auto; }
label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; } label.check input { width: auto; margin: 0; }
.btn.poster-tg.on { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); font-weight: 700; }
.tile .tools { flex-wrap: wrap; }
/* v17: lançamentos (grade do Portal Exibidor) */
.rel-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; font-size: 13px; }
.rel-top input { max-width: 300px; }
.rel-dates { display: grid; gap: 12px; margin-bottom: 14px; max-height: 34vh; overflow: auto; padding-right: 4px; }
.rel-month b { font-size: 13px; color: var(--ink-2); }
.rel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rel-chip { display: grid; text-align: left; gap: 1px; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.rel-chip span { font-weight: 700; font-size: 13px; } .rel-chip small { font-size: 11px; color: var(--muted); }
.rel-chip:hover { border-color: var(--brand-2); } .rel-chip.past { opacity: .6; }
.rel-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; opacity: 1; } .rel-chip.on small { color: rgba(255,255,255,.85); }
.rel-h { font-size: 15px; margin: 4px 0 8px; }
.rel-table td { vertical-align: middle; } .rel-table .chip { margin-left: 4px; }
.rel-note { background: var(--brand-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
/* v18: web app do cinema no celular */
nav a .short { display: none; }
.only-mob { display: none; }
.unit-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.unit-filters input { flex: 1; min-width: 200px; } .unit-filters select { width: auto; }
.tile.is-out { opacity: .55; }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; } .btn.danger-solid:hover { background: #c92c40; border-color: #c92c40; }
.card.install { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--brand-2); background: var(--brand-soft); }
.card.install img { width: 44px; height: 44px; border-radius: 10px; } .card.install > div { flex: 1; display: grid; gap: 2px; font-size: 13px; }
.card.install[hidden] { display: none !important; }
@media (max-width: 760px) {
  body.role-unit #app { display: block; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.role-unit aside { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; gap: 10px; }
  body.role-unit .brand { padding: 0; flex: 1; flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
  body.role-unit .brand img { height: 24px; }
  body.role-unit #cineTag .cine-tag { padding: 4px 8px; font-size: 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.role-unit #cineTag .cine-tag svg, body.role-unit #cineTag .cine-tag small { display: none; }
  body.role-unit .user { margin: 0; padding: 0; border: 0; }
  body.role-unit .user .avatar, body.role-unit .user .who { display: none; }
  body.role-unit nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; flex-direction: row; justify-content: space-around; gap: 0;
    background: var(--side); border-top: 1px solid rgba(255,255,255,.08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  body.role-unit nav a { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; text-align: center; box-shadow: none !important; background: none !important; min-height: 48px; justify-content: center; }
  body.role-unit nav a.active { color: #00bfa6; }
  body.role-unit nav a .full { display: none; } body.role-unit nav a .short { display: block; }
  body.role-unit main { padding: 18px 14px 24px; }
  body.role-unit main h1 { font-size: 22px; }
  body.role-unit .only-desk { display: none; } body.role-unit .only-mob { display: block; }
  body.role-unit .help { display: none; }
  body.role-unit .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  body.role-unit .stat { padding: 12px 10px; } body.role-unit .stat b { font-size: 22px; } body.role-unit .stat .muted { font-size: 11px; }
  body.role-unit .scr-cards { display: grid; gap: 8px; }
  body.role-unit .scr-card { padding: 12px 14px; display: grid; gap: 4px; } .scr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  body.role-unit .unit-filters input, body.role-unit .unit-filters select { width: 100%; min-width: 0; flex: 1 1 100%; font-size: 16px; }
  body.role-unit .unit-grid { grid-template-columns: 1fr; gap: 10px; }
  body.role-unit .unit-grid .tile { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; }
  body.role-unit .unit-grid .thumb { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; min-height: 112px; border-radius: 0; cursor: pointer; }
  body.role-unit .unit-grid .thumb .badge.r { display: none; }
  body.role-unit .unit-grid .meta { padding: 10px 12px 4px; font-size: 13px; } body.role-unit .unit-grid .meta .pl { display: none; }
  body.role-unit .unit-grid .tools { padding: 4px 12px 10px; }
  body.role-unit .unit-grid .tools .btn { min-height: 40px; } body.role-unit .unit-grid .tools [data-act=view] { display: none; }
  body.role-unit .unit-grid .tools .danger { flex: 1; justify-content: center; }
  body.role-unit #modal { padding: 0; align-items: flex-end; } body.role-unit .modal-box { border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  body.role-unit .modal-box .actions .btn { flex: 1; justify-content: center; min-height: 46px; }
  body.role-unit table { display: block; overflow-x: auto; }
}
.chip.info { background: #e7f0fd; color: #1d4ed8; } .chip.info::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.brand-row { display: flex; align-items: center; gap: 8px; }
.app-ver { font-size: 11px; font-weight: 700; color: #00bfa6; background: rgba(0,191,166,.12); border: 1px solid rgba(0,191,166,.3); border-radius: 6px; padding: 1px 6px; }
.app-ver:empty { display: none; }
.poster-mini { width: 34px; height: 50px; object-fit: cover; border-radius: 4px; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; min-width: 220px; }
/* v24: editor do visual da faixa (prévia usa o mesmo desenho do player, em escala) */
@font-face { font-family: 'CS Bebas'; src: url('/player/fonts/bebas-neue.woff2') format('woff2'); }
.btn .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pal-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pal { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 112px; gap: 3px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font: inherit; }
.pal span { height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); } .pal small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); text-align: left; white-space: nowrap; }
.pal:hover { border-color: var(--brand-2); }
.colorpick { display: flex; gap: 6px; align-items: center; } .colorpick input[type=color] { width: 42px; height: 38px; padding: 2px; flex-shrink: 0; } .colorpick input[data-h] { font-family: ui-monospace, monospace; text-transform: uppercase; }
.bp { --b: 2.1px; background: var(--bgc); padding: calc(var(--b) * 8.1) calc(var(--b) * 8.75); height: calc(var(--b) * 100); box-sizing: border-box; border-radius: 12px; font-family: 'Inter', system-ui, sans-serif; max-width: 100%; overflow: hidden; }
.bp .tk { display: flex; height: 100%; border-radius: calc(var(--b) * 6.9); overflow: hidden; position: relative; }
.bp .tk-stub { width: calc(var(--b) * 68.75); flex-shrink: 0; background: var(--stub-bg, var(--acc)); box-shadow: inset 0 0 0 calc(var(--b) * 1.25) var(--stub-bd, transparent); border-radius: calc(var(--b) * 6.9) 0 0 calc(var(--b) * 6.9); color: var(--stub-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'CS Bebas', 'Arial Narrow', sans-serif; }
.bp .tk-sala { font-size: calc(var(--b) * 13.75); letter-spacing: .18em; line-height: 1; padding-left: .18em; } .bp .tk-num { font-size: calc(var(--b) * 59); line-height: .8; }
.bp .tk-perf { width: 0; border-left: calc(var(--b) * 1.56) dashed var(--bgc); }
.bp .tk-notch { position: absolute; left: calc(var(--b) * 63.15); width: calc(var(--b) * 11.25); height: calc(var(--b) * 11.25); border-radius: 50%; background: var(--bgc); }
.bp .tk-notch.t { top: calc(var(--b) * -5.6); } .bp .tk-notch.b { bottom: calc(var(--b) * -5.6); }
.bp .tk-paper { flex: 1; min-width: 0; background: var(--paper); color: var(--ink); display: flex; align-items: center; gap: calc(var(--b) * 7.5); padding: 0 calc(var(--b) * 9.4) 0 calc(var(--b) * 10.6); }
.bp .tk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--b) * 3.1); }
.bp .tk-title { font-family: 'CS Bebas', 'Arial Narrow', sans-serif; font-size: calc(var(--b) * 20.6); line-height: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp .tk-tags { display: flex; gap: calc(var(--b) * 2.5); align-items: center; font-weight: 700; }
.bp .tk-tags .rating { height: auto; min-width: 0; font-size: calc(var(--b) * 6.9); padding: .08em .45em; border-radius: .25em; color: #fff; }
.bp .tk-tag { border: calc(var(--b) * .62) solid var(--ink); font-size: calc(var(--b) * 5.6); padding: .08em .55em; border-radius: .3em; }
.bp .tk-times { display: flex; gap: calc(var(--b) * 5.6); font-family: 'CS Bebas', 'Arial Narrow', sans-serif; font-size: calc(var(--b) * 12.5); }
.bp .tk-times .past { color: var(--past, color-mix(in srgb, var(--ink) 38%, var(--paper))); text-decoration: line-through; }
.bp .tk-times .next { color: var(--acc); border-bottom: calc(var(--b) * 1.56) solid var(--acc); line-height: 1; }
.bp .tk-next { flex-shrink: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.bp .tk-logo { max-height: calc(var(--b) * 14); max-width: calc(var(--b) * 80); object-fit: contain; margin-bottom: calc(var(--b) * 2.5); }
.bp .tk-lbl { font-size: calc(var(--b) * 5.6); font-weight: 700; letter-spacing: .22em; color: var(--lbl, color-mix(in srgb, var(--ink) 55%, var(--paper))); }
.bp .tk-time { font-family: 'CS Bebas', 'Arial Narrow', sans-serif; font-size: calc(var(--b) * 43.75); line-height: .85; color: var(--acc); }
.bp .tk-next:has(.tk-logo) .tk-time { font-size: calc(var(--b) * 36); }
.bp .tk-sub { font-size: calc(var(--b) * 6.25); font-weight: 700; }

.colorpick[hidden] { display: none !important; }
.replace-box { border: 1px dashed var(--line, #d5dbe1); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.replace-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.prog-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.prog-opt { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; border: 1px solid var(--line, #d5dbe1); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.prog-opt input { grid-row: span 2; margin-top: 3px; }
.prog-opt span { font-size: 12px; }
/* telas: abas por grupo e por cinema */
.scr-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line, #dfe4ea); margin: 0 0 12px; }
.stab { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted, #6b7785); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.stab:hover { color: var(--ink, #1d2330); background: rgba(0,137,123,.06); }
.stab.on { color: var(--brand, #00897b); border-bottom-color: var(--brand, #00897b); }
.stab i, .sub i { font-style: normal; font-size: 12px; opacity: .65; margin-left: 2px; }
.scr-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.sub { border: 1px solid var(--line, #dfe4ea); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink, #1d2330); }
.sub:hover { border-color: var(--brand, #00897b); }
.sub.on { background: var(--brand, #00897b); border-color: var(--brand, #00897b); color: #fff; }
.sub.zero { color: var(--muted, #6b7785); }
.scr-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13px; }
.sec { border: 0; background: rgba(0,137,123,.08); color: var(--ink, #1d2330); border-radius: 8px; padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.sec:hover { background: rgba(0,137,123,.16); }
.sec.on { background: #0f1b1e; color: #fff; }
.sec.zero { color: var(--muted, #6b7785); }
.sec i { font-style: normal; font-size: 12px; opacity: .65; margin-left: 2px; }
.stab i.off, .sub i.off, .sec i.off { color: #d32f2f; opacity: 1; font-weight: 700; }
.sub.on i.off, .sec.on i.off { color: #ffd2d2; }

/* ================= v32: visual novo (mais limpo, linhas bem separadas, menos botões à vista) ================= */
@font-face { font-family: 'Inter'; src: url('fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-700.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
:root {
  --bg: #f5f6f8; --card: #fff; --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #e3e6ea; --line-2: #eceef1;
  --brand: #00897b; --brand-hover: #00796b; --brand-soft: #e6f5f2; --radius: 12px;
  --shadow: 0 1px 2px rgba(17,24,39,.04); --shadow-pop: 0 12px 32px rgba(17,24,39,.14), 0 2px 6px rgba(17,24,39,.06);
}
body { font-size: 14px; background: var(--bg); letter-spacing: -.003em; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-weight: 650; }
main { padding: 28px 40px 56px; }
.head { margin-bottom: 20px; }
main > .head:first-child { min-height: 40px; }
main > .head:first-child + p.muted { font-size: 13.5px; }

/* botões: um só destaque por página; o resto discreto */
.btn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #d9dde3; background: #fff; color: var(--ink-2); font-weight: 500; box-shadow: 0 1px 1px rgba(17,24,39,.03); }
.btn:hover { background: #f6f7f9; border-color: #c9ced6; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 7px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(0,137,123,.25); font-weight: 600; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); filter: none; }
.btn.danger { color: #c62839; }
.btn.danger:hover { background: #fdf1f2; border-color: #f2c3c9; }
.btn:disabled { opacity: .55; cursor: default; }
.head .btn + .btn { margin-left: 0; }

/* campos */
input, select, textarea { border-color: #d9dde3; border-radius: 8px; padding: 8px 11px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,137,123,.14); }
label { color: var(--ink-2); font-weight: 500; }

/* cartões e indicadores */
.card { border-color: var(--line); box-shadow: var(--shadow); }
.stat::after { display: none; }
.stat b { font-size: 28px; font-weight: 700; }
.stats .card.stat { padding: 18px 20px; }

/* tabelas: linhas bem separadas, faixa alternada e destaque ao passar o mouse */
table { border-color: var(--line); box-shadow: var(--shadow); }
th { background: #f9fafb; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
tbody tr:nth-child(even) { background: #fbfbfc; }
tbody tr:hover { background: #f2f8f7; }
td:first-child b { font-weight: 600; color: var(--ink); }
td:last-child { white-space: nowrap; text-align: right; }
td .btn + .btn, td .btn + a.btn, td a.btn + .btn { margin-left: 6px; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }

/* menu "⋯" com as ações menos usadas */
.more { display: inline-block; position: relative; margin-left: 6px; vertical-align: middle; }
.row-actions .more, .tools .more { margin-left: 0; }
.more-btn { width: 30px; padding: 0 !important; justify-content: center; color: var(--muted); }
.more-btn svg { fill: currentColor; }
.more.open .more-btn { background: #eef0f3; color: var(--ink); }
.more-menu { position: fixed; z-index: 70; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 5px; display: grid; gap: 1px; text-align: left; }
.more-menu .btn.mi { all: unset; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.more-menu .btn.mi:hover { background: #f3f4f6; color: var(--ink); }
.more-menu .btn.mi.danger { color: #c62839; } .more-menu .btn.mi.danger:hover { background: #fdf1f2; }
.more-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 2px; }

/* abas de tipo (Filmes, Bilheteria…) como controle segmentado */
.head.seg:not(.seg-st) { display: inline-flex; background: #eaecef; padding: 4px; border-radius: 10px; gap: 2px; }
.seg:not(.seg-st) .btn { border: 0; background: transparent; box-shadow: none; color: var(--muted); height: 30px; }
.seg:not(.seg-st) .btn:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.seg:not(.seg-st) .btn.primary { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17,24,39,.12); font-weight: 600; }
.seg-st .btn { border-radius: 999px; height: 28px; }
.seg-st .btn.primary { background: var(--ink); border-color: var(--ink); box-shadow: none; }

/* abas de telas */
.stab { font-weight: 600; padding: 10px 14px; }
.scr-tabs { border-bottom-color: var(--line); }
.sub { height: 30px; padding: 0 12px; border-color: #d9dde3; }
.sub.on { background: var(--ink); border-color: var(--ink); }
.sec { height: 30px; padding: 0 11px; background: #eceef1; }
.sec.on { background: var(--brand); }

/* chips */
.chip { border-radius: 6px; font-weight: 500; padding: 2px 8px; }

/* mídias */
.tile { box-shadow: var(--shadow); }
.tile:hover { transform: none; box-shadow: 0 6px 20px rgba(17,24,39,.08); border-color: #d3d8de; }
.tile .tools { align-items: center; }
.tile .tools .more { margin-left: auto; }

/* grupos (Cinemas) */
.grp-card > .head { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px !important; }
.grp-card table { box-shadow: none; }

/* modal */
.modal-box { border-radius: 16px; padding: 28px; }
.modal-box .actions { padding-top: 16px; border-top: 1px solid var(--line-2); margin-top: 18px; }

/* menu lateral */
nav a { font-weight: 500; }
nav a.active { background: rgba(0,191,166,.14); box-shadow: inset 3px 0 0 #00bfa6; }
.chip { white-space: nowrap; }
.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile .tools { flex-wrap: nowrap; gap: 6px; }
.tile .tools .btn.sm { padding: 0 9px; }
/* v33: abas de grupo coloridas — a escolhida em destaque, as outras apagadas */
.scr-tabs { border-bottom: 0; gap: 8px; margin-bottom: 14px; }
.stab { --c: #0d9488; border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--c);
  border-radius: 10px; padding: 0 16px; height: 40px; margin: 0; font-weight: 600; opacity: .62; transition: opacity .15s, background .15s, box-shadow .15s; border-bottom-width: 1px; }
.scr-tabs:not(.picked) .stab { opacity: .9; }
.stab:hover { opacity: 1; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.stab.on, .stab.on:hover { opacity: 1; background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.stab.on i { color: rgba(255,255,255,.85); opacity: 1; }
.stab.on i.off { color: #ffe1e1; }
.scr-subtabs .sub.on, .scr-sectors .sec.on { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); color: #fff; }
.scr-sectors .sec.on i, .scr-subtabs .sub.on i { color: rgba(255,255,255,.85); }
.pick-hint { padding: 36px 24px; }
/* v36: envio da programação da semana */
.prog-up { margin-bottom: 16px; border-left: 4px solid var(--brand); }
.prog-up-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.prog-sum { margin-top: 14px; padding: 12px 14px; background: #f7f9fa; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13.5px; }
.grp-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; margin-top: 10px; max-height: 320px; overflow: auto; }
.grp-pick-list label.check { font-size: 13px; color: var(--ink); }
/* v41: catálogo e relatório de downloads */
.cat-tile .tools .btn { width: 100%; justify-content: center; }
.btn .ico { width: 16px; height: 16px; }
.dl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 960px) { .dl-cols { grid-template-columns: 1fr; } }
.pv-done { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #f7f9fa; color: var(--ink); }
.pv-done img { width: 220px; border-radius: 6px; box-shadow: var(--shadow); } .pv-done img.v { width: 110px; }
