/* ==========================================================
   CAPIM Films · protótipo
   Cores da marca: troque os valores em :root quando o logo chegar
   ========================================================== */
/* Identidade tirada de capim.tv.br: preto #0e0e0e, verde neon #1aff87, Archivo + JetBrains Mono */
:root {
  --brand: #1aff87;
  --brand-strong: #00d96c;
  --brand-ink: #0e0e0e;      /* texto sobre o verde */
  --brand-soft: rgba(26,255,135,.12);
  --accent: #1aff87;

  --bg: #0e0e0e;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --border: #2a2a2a;
  --text: #f9f9f9;
  --muted: #a3a3a3;

  --side-bg: #080808;
  --side-text: #a3a3a3;
  --side-active: #1a1a1a;

  --c-art: #c79bff;   --c-art-soft: rgba(199,155,255,.13);
  --c-corp: #7fb2ff;  --c-corp-soft: rgba(127,178,255,.13);
  --ok: #1aff87;      --ok-soft: rgba(26,255,135,.12);
  --warn: #ffc24d;    --warn-soft: rgba(255,194,77,.13);
  --bad: #ff6b6b;     --bad-soft: rgba(255,107,107,.13);
  --info: #7fb2ff;    --info-soft: rgba(127,178,255,.13);

  --radius: 10px;
  --shadow: none;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
:root[data-theme="light"] {
  --brand: #00b85c; --brand-strong: #009a4d; --brand-ink: #ffffff; --brand-soft: rgba(0,184,92,.1);
  --accent: #1aff87;
  --bg: #f4f4f2; --surface: #ffffff; --surface-2: #f8f8f6; --border: #e3e3df;
  --text: #0e0e0e; --muted: #6b6b6b;
  --side-bg: #0e0e0e; --side-active: #1c1c1c;
  --c-art: #7a3fc4; --c-corp: #2266c4; --ok: #0f8a4c; --warn: #b07800; --bad: #c43d3d; --info: #2a63c9;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Archivo, system-ui, sans-serif; font-size: 14px; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-size: 26px; font-weight: 300; text-transform: uppercase; letter-spacing: .18em; }
.label, th, .nav-label, .day-h, .stat .k { font-family: Archivo, sans-serif; text-transform: uppercase; letter-spacing: .14em; }
.mono, .stat .v, td.num, .tc, .tcb { font-family: var(--mono); }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  background: var(--side-bg); color: var(--side-text); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.logo { display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 22px; color: #fff; }
.logo img { height: 24px; width: auto; align-self: flex-start; }
.logo small { font-size: 10px; color: var(--side-text); letter-spacing: .3em; text-transform: uppercase; }
.nav-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; padding: 14px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-weight: 500;
}
.nav a:hover { background: var(--side-active); color: #fff; }
.nav a.on { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 99px; }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sim { width: 100%; margin-top: 6px; background: #141414; color: #ddd; border: 1px solid #2a2a2a; border-radius: 8px; padding: 7px 8px; font-size: 12px; }
.linkbtn { background: none; border: 0; color: var(--side-text); opacity: .6; font-size: 11.5px; padding: 10px 0 0; }
.linkbtn:hover { opacity: 1; color: #fff; }

.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 5;
}
.search {
  flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; color: var(--muted);
}
.search input { border: 0; background: none; outline: none; width: 100%; }
.topbar .spacer { flex: 1; }
.topbar .menu-btn { display: none; }
.content { padding: 28px; max-width: 1360px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- components ---------- */
.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px;
  border-radius: 9px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.btn.primary:hover { background: var(--brand-strong); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.ghost { border-color: transparent; background: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head .more { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-main { grid-template-columns: 1fr 360px; align-items: start; }

.stat { padding: 16px 18px; }
.stat .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .v { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.bad .v { color: var(--bad); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.pill.art { background: var(--c-art-soft); color: var(--c-art); }
.pill.corp { background: var(--c-corp-soft); color: var(--c-corp); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px;
  font-weight: 700; color: #fff; flex: none;
}
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -7px; }
.avatars .avatar:first-child { margin-left: 0; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .t { font-weight: 500; }
.list-row .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.list-row .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
a.list-row:hover { background: var(--surface-2); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
td { padding: 12px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button {
  border: 0; background: none; padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tabs button.on { color: var(--text); border-bottom-color: var(--brand); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 500; }
.chip.on { background: var(--text); color: var(--surface); border-color: var(--text); }

.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress i { display: block; height: 100%; background: var(--brand); }

/* pipeline bar */
.pipe { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 6px 0 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 200px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; font-weight: 600; font-size: 13px; }
.col-head .n { margin-left: auto; color: var(--muted); font-weight: 500; }
.col.drop { outline: 2px dashed var(--brand); outline-offset: -4px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px; margin-bottom: 8px; box-shadow: var(--shadow); cursor: grab; }
.kcard .t { font-weight: 500; margin: 6px 0 8px; }
.kcard .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.kcard .meta .avatar { width: 22px; height: 22px; font-size: 9.5px; margin-left: auto; }
.late { color: var(--bad); font-weight: 600; }

/* project cards */
.pcard { padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .12s; }
.pcard:hover { transform: translateY(-2px); }
.pcard .client { font-size: 12px; color: var(--muted); }
.pcard h3 { font-size: 15px; }
.pcard .row { display: flex; align-items: center; gap: 8px; }
.thumb { aspect-ratio: 16/9; border-radius: 8px; background: linear-gradient(135deg, #0f2a1b, #1d4a31 60%, #0e0e0e); position: relative; overflow: hidden; border: 1px solid var(--border); }
.thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 20px; }

/* agenda */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 340px; padding: 10px; }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.day-h { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.day-h b { display: block; font-size: 22px; color: var(--text); letter-spacing: 0; }
.ev { border-radius: 8px; padding: 7px 9px; margin-top: 8px; font-size: 12px; border-left: 3px solid; }
.ev b { display: block; font-weight: 600; font-size: 12.5px; }
.ev.diaria { background: var(--brand-soft); border-color: var(--brand); }
.ev.entrega { background: var(--warn-soft); border-color: var(--warn); }
.ev.prazo { background: var(--info-soft); border-color: var(--info); }
.ev.reuniao { background: var(--c-art-soft); border-color: var(--c-art); }

/* review player */
.player { background: #0d0f0d; border-radius: var(--radius); overflow: hidden; }
.screen { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 30%, #34503b, #0d120e 70%); }
.screen .tc { position: absolute; left: 14px; bottom: 12px; font-variant-numeric: tabular-nums; font-size: 13px; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 6px; }
.screen .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 24px; }
.screen .marker-pop { position: absolute; top: 14px; right: 14px; max-width: 60%; background: rgba(0,0,0,.6); padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.scrub { position: relative; height: 34px; margin: 0 14px; cursor: pointer; }
.scrub .bar { position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: #3a3f3b; border-radius: 4px; }
.scrub .fill { position: absolute; left: 0; top: 15px; height: 4px; background: var(--accent); border-radius: 4px; }
.scrub .mk { position: absolute; top: 9px; width: 10px; height: 16px; margin-left: -5px; border-radius: 3px; background: #ffb547; }
.scrub .mk.done { background: #5fbf7d; }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 4px 14px 12px; color: #c9cfca; font-size: 12.5px; }
.comment { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
.comment .tcb { font-variant-numeric: tabular-nums; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 0; border-radius: 6px; padding: 2px 7px; }
.comment.done .body { text-decoration: line-through; color: var(--muted); }
.comment-box { padding: 12px 16px; display: flex; gap: 8px; }
.comment-box input { flex: 1; border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; background: var(--surface-2); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; background: var(--surface); }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art {
  background: var(--side-bg); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(circle at 80% 20%, rgba(26,255,135,.14), transparent 50%), repeating-linear-gradient(100deg, rgba(255,255,255,.025) 0 2px, transparent 2px 18px);
}
.login-art h1 { font-size: 44px; line-height: 1.1; max-width: 460px; color: #fff; }
.login-art h1 em { color: var(--accent); font-style: normal; }
.login-form { display: grid; place-items: center; padding: 32px; }
.login-form .box { width: 100%; max-width: 360px; }

/* portal */
.portal-banner { background: var(--brand); color: var(--brand-ink); padding: 10px 28px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.portal-banner .btn { margin-left: auto; }
/* compartilhar com o cliente */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 45; display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal .field select, .modal .field input, .modal .field textarea { background: var(--surface-2); }
.link-box { display: flex; gap: 6px; align-items: center; }
.link-box input { flex: 1; min-width: 0; font: 12px var(--mono, monospace); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; background: var(--surface-2); color: var(--text); }
.envio-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.envio-btns .btn { flex: 1 1 150px; justify-content: center; }
.btn.whats { background: #25d366; border-color: #25d366; color: #0b2a17; font-weight: 600; }
.link-off { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 10px; padding: 24px; }
.link-off img { margin: 0 auto 10px; }
.link-off h1 { font-size: 22px; margin: 0; }
.link-off.entrada { text-align: left; max-width: 420px; margin: 0 auto; gap: 6px; }
.link-off.entrada img { margin: 0 0 18px; }
.link-off.entrada form { margin-top: 18px; }
.link-off.entrada .field input, .link-off.entrada .field select { background: var(--surface-2); }
/* tela do cliente */
.cli-head h1 { font-size: 22px; letter-spacing: .04em; overflow-wrap: anywhere; }
.cli-dica { background: var(--brand-soft, rgba(26,255,135,.1)); border: 1px solid rgba(26,255,135,.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: -4px 0 16px; }
.comment-box { flex-wrap: wrap; }
.comment-box .quem { flex-basis: 100%; display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.comment-box .quem a { color: var(--brand); }
/* tela cheia: player do celular deitado */
.player-bar .fs-btn { margin-left: auto; flex: none; }
.player-bar .mono + .fs-btn { margin-left: 4px; }
.fsp { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; overflow: hidden; height: 100dvh;
  -webkit-user-select: none; user-select: none; }
.fsp-video { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, #34503b, #0d120e 70%); }
.fsp-top, .fsp-bot { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 10px max(14px, env(safe-area-inset-left)); z-index: 2; }
.fsp-top { top: 0; background: linear-gradient(rgba(0,0,0,.65), transparent); }
.fsp-bot { bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.fsp.tocando .fsp-top, .fsp.tocando .fsp-bot { opacity: .55; }
.fsp-tit { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.fsp-tit b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fsp-tit span { font-size: 12px; opacity: .7; }
.fsp-n { margin-left: auto; font-size: 13px; opacity: .85; }
.fsp-x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 17px; }
.fsp-x.sm { width: 32px; height: 32px; font-size: 14px; margin-left: auto; }
.fsp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 28px; z-index: 2; }
.fsp.tocando .fsp-play { opacity: .35; }
.fsp-comentar { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 99px; padding: 13px 22px;
  background: var(--brand, #1aff87); color: #0b0b0b; font: 600 15px Archivo, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; }
.fsp-comentar.mini { left: auto; right: max(16px, env(safe-area-inset-right)); transform: none; width: 50px; height: 50px; padding: 0; font-size: 20px; opacity: .9; }
.fsp-pop { position: absolute; top: 64px; right: 16px; max-width: min(46%, 380px); background: rgba(0,0,0,.72); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; z-index: 2; }
.fsp-pop b { display: block; font-size: 11.5px; opacity: .7; font-weight: 500; }
.fsp-ok { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(26,255,135,.95); color: #0b0b0b; font-weight: 600; font-size: 13.5px; border-radius: 99px; padding: 7px 14px; z-index: 4; }
.fsp-time { font-size: 12.5px; flex: none; }
.fsp-scrub { flex: 1; margin: 0; height: 34px; }
.fsp-scrub .bar { background: rgba(255,255,255,.28); }
.fsp-scrub .mk { width: 8px; margin-left: -4px; }
/* painel de comentário: no topo, porque o teclado do celular deitado ocupa a metade de baixo */
.fsp-sheet { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 24px)); z-index: 5;
  background: rgba(22,22,22,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.fsp.compondo .fsp-top { display: none; }
.fsp-sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fsp-tc { font: 600 13px var(--mono, monospace); background: var(--brand, #1aff87); color: #0b0b0b; border-radius: 6px; padding: 2px 7px; }
.fsp-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.fsp-chips::-webkit-scrollbar { display: none; }
.fsp-chips button { flex: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 99px; padding: 6px 11px; font: 500 12.5px Archivo, sans-serif; }
.fsp-form { display: flex; gap: 8px; }
.fsp-form input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.2); background: #111; color: #fff; border-radius: 10px; padding: 11px 12px; font-size: 16px; } /* 16px evita o zoom automático do iPhone */
.fsp-pub { display: flex; gap: 6px; align-items: center; margin-top: 8px; opacity: .8; }
.fsp-girar { display: none; }
@media (orientation: portrait) {
  .fsp-girar { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, 70px); background: rgba(0,0,0,.6); border-radius: 99px; padding: 7px 14px; font-size: 13px; white-space: nowrap; z-index: 2; }
  .fsp.compondo .fsp-girar { display: none; }
}
.toast { z-index: 100; }
body.fs-on { overflow: hidden; }
.vis { font-size: 11px; border: 1px solid var(--border); border-radius: 99px; padding: 0 6px; }
.vis.on { color: var(--brand); border-color: rgba(26,255,135,.4); }
@media (max-width: 640px) {
  .cli-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .cli-head .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cli-head .actions .btn, .cli-head .actions .pill { justify-content: center; }
  .cli-head h1 { font-size: 19px; }
}
.steps { display: flex; gap: 0; margin: 8px 0 4px; }
.step { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; padding-top: 22px; }
.step::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--border); z-index: 1; }
.step::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.step:first-child::after { display: none; }
.step.done::before, .step.done::after, .step.now::after { background: var(--brand); }
.step.now::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.step.now { color: var(--text); font-weight: 600; }

/* busca com sugestões */
.search-wrap { position: relative; flex: 1; max-width: 460px; }
.search-wrap .search { max-width: none; }
.sugestoes { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.35); overflow: hidden; z-index: 20; }
.sug { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.sug:last-child { border-bottom: 0; }
.sug:hover, .sug.on { background: var(--surface-2); }
.sug b { font-weight: 500; }
.sug-tipo { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); width: 82px; flex: none; }
.sug-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 10px 14px 4px; }
.sug-vazio { padding: 14px; color: var(--muted); }

/* acessos */
.lock { padding: 48px 24px; text-align: center; max-width: 560px; margin: 20px auto; }
.lock-ico { font-size: 32px; margin-bottom: 10px; }
.lock p { line-height: 1.6; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 9px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: var(--border); border-radius: 99px; transition: .15s; cursor: pointer; }
.switch i::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::before { transform: translateX(16px); background: var(--brand-ink); }
.switch input:disabled + i { opacity: .5; cursor: not-allowed; }
select.btn { appearance: auto; }

/* categorias / formulários */
.chip.add { border-style: dashed; color: var(--brand); }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.form-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.span4 { grid-column: 1 / -1; }
.field label a { text-transform: none; letter-spacing: 0; }
.field textarea, .area { width: 100%; resize: vertical; }
.area { border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; background: var(--surface-2); }
.toggle-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.toggle-row input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; }
.team-pick { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.team-pick:last-of-type { border-bottom: 0; }
input[type=checkbox] { accent-color: var(--brand); }

/* ficha de produção */
.doc-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: var(--brand); background: var(--brand-soft); }
.doc-bar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
table.edit td { padding: 4px 6px; }
table.edit input { width: 100%; border: 1px solid transparent; background: transparent; padding: 7px 8px; border-radius: 6px; }
table.edit input:hover { border-color: var(--border); }
table.edit input:focus { border-color: var(--brand); background: var(--surface-2); outline: none; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 16px 18px; }
.sb-frame { display: flex; flex-direction: column; gap: 6px; }
.sb-img { aspect-ratio: 16/9; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface-2) center/cover no-repeat; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 12px; }
.sb-img:hover { border-color: var(--brand); color: var(--brand); }
.sb-meta { display: flex; gap: 6px; }
.sb-meta input, .sb-frame textarea { border: 1px solid var(--border); background: var(--surface-2); border-radius: 7px; padding: 6px 8px; font-size: 12.5px; min-width: 0; }
.sb-frame textarea { resize: vertical; }
.sb-add { border: 1px dashed var(--border); background: none; border-radius: 10px; color: var(--brand); font-weight: 500; min-height: 120px; display: grid; place-items: center; cursor: pointer; }
.sb-add:hover { border-color: var(--brand); background: var(--brand-soft); }

/* visitas técnicas */
.vcard { overflow: hidden; transition: transform .12s; }
.vcard:hover { transform: translateY(-2px); }
.foto { aspect-ratio: 4/3; background: linear-gradient(135deg, #1a1a1a, #252525) center/cover no-repeat; display: grid; place-items: center; font-size: 28px; position: relative; }
.vcard .foto { aspect-ratio: 16/9; }
.foto .n { position: absolute; right: 10px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 2px 8px; border-radius: 99px; }
.foto .x { position: absolute; top: 6px; right: 6px; border: 0; background: rgba(0,0,0,.6); color: #fff; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; opacity: 0; }
.foto-item:hover .x { opacity: 1; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 16px 18px; }
.foto-item .foto { border-radius: 8px; }
.foto-item input { width: 100%; margin-top: 6px; border: 1px solid transparent; background: none; padding: 4px 2px; font-size: 12.5px; color: var(--muted); }
.foto-item input:focus { border-color: var(--border); outline: none; color: var(--text); }

/* dias da semana (recorrente) */
.dias { display: flex; gap: 6px; flex-wrap: wrap; }
.dia input { display: none; }
.dia span { display: inline-block; min-width: 50px; text-align: center; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; font-weight: 500; color: var(--muted); user-select: none; }
.dia input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* demandas */
.inline-task { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.inline-task input, .inline-task select { border: 1px solid var(--border); background: var(--surface-2); border-radius: 9px; padding: 8px 10px; min-width: 0; flex: 1; }
.kdel { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 11px; padding: 2px 4px; border-radius: 4px; opacity: 0; }
.kcard:hover .kdel { opacity: 1; }
.kdel:hover { color: var(--bad); background: var(--bad-soft); }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); }
.btn.danger:hover { background: var(--bad-soft); }

/* matriz de permissões */
table.matrix th { white-space: nowrap; }
table.matrix td, table.matrix th { padding: 10px 12px; }
table.matrix tr.grp td { background: var(--surface-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 6px 12px; }
.perm { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; }
.perm.ov { background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn); }
.perm input { width: 15px; height: 15px; }
.perm-dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border); display: inline-block; }
.perm-dot.ov { background: var(--warn-soft); border-color: var(--warn); }

/* status online / perfil */
.av-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.on-dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 9px; min-height: 9px; border-radius: 50%; border: 2px solid var(--surface); }
.side .on-dot { border-color: var(--side-bg); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; margin: -8px; border-radius: 9px; }
.me:hover, .me.on { background: var(--side-active); }
.pessoa-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pc-top { display: flex; gap: 14px; align-items: center; }
.pc-status { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--border); }
.pc-contato { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pc-contato a { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-contato a:hover { color: var(--brand); }
.foto-perfil { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 8px; }
.foto-perfil span:last-of-type { font-size: 11.5px; color: var(--muted); }
.foto-perfil:hover span:last-of-type { color: var(--brand); }
.forca { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.forca i { display: block; height: 100%; width: 0; transition: .2s; }

/* tarefas */
.trow { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); cursor: pointer; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--surface-2); }
.trow .t { font-weight: 500; }
.trow .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.trow .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.trow.done .t { text-decoration: line-through; color: var(--muted); }
.trow input[type=checkbox] { width: 17px; height: 17px; }
.kanban.k4 { grid-auto-columns: minmax(250px, 1fr); }
.kcard { cursor: pointer; }
select.chip { appearance: auto; padding-right: 8px; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; display: flex; justify-content: flex-end; }
.drawer { width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--border); padding: 18px 22px 30px; }
.drawer.anim { animation: entra .18s ease-out; }
@keyframes entra { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-title { width: 100%; font: 500 20px Archivo, sans-serif; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; margin: 6px -8px 10px; color: var(--text); }
.drawer-title:hover, .drawer-title:focus { border-color: var(--border); outline: none; }
.drawer .field select, .drawer .field input, .drawer .field textarea { background: var(--surface-2); }
.steps-t { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.steps-t button { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); padding: 7px 4px; border-radius: 7px; font-size: 12px; font-weight: 500; }
.steps-t button.on { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.ck { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.ck span { flex: 1; }
.ck input:checked + span { text-decoration: line-through; color: var(--muted); }
.ck .btn { opacity: 0; }
.ck:hover .btn { opacity: 1; }

/* revisão: fluxo */
.vflow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; font-size: 12.5px; color: var(--muted); }
.vflow span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border); }
.vflow span.now.revisao { border-color: var(--info); color: var(--info); background: var(--info-soft); }
.vflow span.now.cliente { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.vflow span.now.ajustes { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.vflow span.now.aprovado { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.vflow i { font-style: normal; opacity: .5; }

/* agenda 15 dias / mês */
.week.month { gap: 6px; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; }
.week-h { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-left: 8px; }
.day.compact { min-height: 112px; padding: 7px; }
.day.compact .day-h b { font-size: 15px; display: inline; }
.day.pad { background: none; border: 0; min-height: 0; }
.evm { display: block; font-size: 11px; padding: 2px 6px; margin-top: 4px; border-radius: 5px; border-left: 3px solid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evm.diaria { background: var(--brand-soft); border-color: var(--brand); }
.evm.entrega { background: var(--warn-soft); border-color: var(--warn); }
.evm.prazo { background: var(--info-soft); border-color: var(--info); }
.evm.reuniao { background: var(--c-art-soft); border-color: var(--c-art); }
.evmais { border: 0; background: none; color: var(--brand); font-size: 11px; padding: 4px 2px 0; }

/* seletor de status colorido (tabelas editáveis) */
table.edit select { width: 100%; border: 1px solid transparent; background: transparent; color: var(--text); padding: 6px 6px; border-radius: 6px; }
table.edit select:hover { border-color: var(--border); }
.selpill { border-radius: 99px !important; font-size: 12px; font-weight: 600; padding: 4px 8px !important; background: var(--surface-2) !important; width: auto !important; }
.selpill.ok { background: var(--ok-soft) !important; color: var(--ok); }
.selpill.warn { background: var(--warn-soft) !important; color: var(--warn); }
.selpill.bad { background: var(--bad-soft) !important; color: var(--bad); }
.selpill.info { background: var(--info-soft) !important; color: var(--info); }
table.edit select:disabled, table.edit input:disabled { opacity: .85; cursor: default; }

/* alternador de visualização */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); color: var(--muted); padding: 8px 12px; font-weight: 500; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--brand-soft); color: var(--brand); }
.cli-table tbody tr { cursor: pointer; }
.cli-table tbody tr:hover td { background: var(--surface-2); }

/* clientes */
.cli-logo { display: inline-block; border-radius: 10px; background: #fff center/contain no-repeat; border: 1px solid var(--border); flex: none; }
.cli-logo.vazio { display: inline-grid; place-items: center; background: var(--surface-2); color: var(--brand); font-weight: 600; letter-spacing: .05em; }
.ccard { display: flex; flex-direction: column; gap: 14px; transition: transform .12s; }
.ccard:hover { transform: translateY(-2px); }
.ccard-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.ccard-stats b { color: var(--text); }
.arq-ico { width: 40px; height: 40px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 700; flex: none; }
.drop-zone { display: block; margin: 14px 18px; padding: 22px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; color: var(--brand); cursor: pointer; }
.drop-zone:hover { border-color: var(--brand); background: var(--brand-soft); }
.logo-up { position: relative; cursor: pointer; display: inline-block; }
.logo-up span:last-of-type { position: absolute; inset: auto 0 -18px; text-align: center; font-size: 10.5px; color: var(--muted); }
.logo-up:hover .cli-logo { border-color: var(--brand); }

/* ---------- documentos (PDF) ---------- */
body.doc-mode { background: #d9d9d6; }
.doc-tools { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #0e0e0e; color: #ddd; font-size: 13px; }
.doc-tools span { margin-right: auto; }
.doc { --t: #111; width: 210mm; min-height: 297mm; margin: 24px auto; background: #fff; color: var(--t); padding: 14mm 14mm 18mm; font-size: 11.5px; position: relative; box-shadow: 0 4px 30px rgba(0,0,0,.15); }
.doc.wide { width: 297mm; min-height: 210mm; }
.doc-head { display: flex; align-items: center; gap: 18px; background: #0e0e0e; color: #fff; margin: -14mm -14mm 8mm; padding: 9mm 14mm; }
.doc-head img { height: 24px; }
.doc-kind { font-size: 20px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; }
.doc-sub { font-size: 11px; color: #1aff87; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.doc h3 { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin: 7mm 0 2.5mm; padding-bottom: 1.5mm; border-bottom: 2px solid #111; }
.doc p, .doc li { line-height: 1.55; }
.dmuted { color: #777; }
.dt { width: 100%; border-collapse: collapse; }
.dt th { background: #f1f1ee; color: #555; font-size: 9px; padding: 5px 7px; border: 0; }
.dt td { padding: 6px 7px; border-bottom: 1px solid #e5e5e0; font-size: 11px; }
.od-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 5mm; }
.od-date { font-size: 20px; font-weight: 600; margin-top: 2px; }
.od-call { margin-left: auto; border: 2px solid #111; border-radius: 8px; padding: 8px 18px; text-align: center; }
.od-call span { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #666; }
.od-call b { display: block; font-family: var(--mono); font-size: 28px; line-height: 1.1; }
.dbox-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(38mm, 1fr)); gap: 3mm; }
.dbox { border: 1px solid #ddd; border-radius: 6px; padding: 7px 9px; line-height: 1.45; }
.dbox span { display: block; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #777; margin-bottom: 2px; }
.dcheck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dfotos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5mm; }
.dfotos figure { margin: 0; break-inside: avoid; }
.dfotos img, .dph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; background: #eee; display: block; }
.dfotos figcaption { font-size: 10px; color: #555; margin-top: 3px; }
.dsb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm 5mm; }
.dsb-q { break-inside: avoid; }
.dsb-img { aspect-ratio: 16/9; border: 1.5px solid #111; border-radius: 3px; background: #fff center/cover no-repeat; }
.dsb-cap { font-size: 10px; margin-top: 4px; }
.dsb-desc { font-size: 10.5px; color: #333; min-height: 30px; border-bottom: 1px dotted #bbb; padding-bottom: 4px; }
.doc-foot { position: absolute; bottom: 8mm; left: 14mm; right: 14mm; font-size: 9px; color: #999; letter-spacing: .1em; text-transform: uppercase; }
@media print {
  @page { size: A4; margin: 0; }
  body.doc-mode { background: #fff; }
  .noprint { display: none !important; }
  .doc { margin: 0; box-shadow: none; width: auto; min-height: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc.wide { page: paisagem; }
  @page paisagem { size: A4 landscape; margin: 0; }
}

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 10px; font-weight: 500; z-index: 50; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-main { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(7, minmax(140px, 1fr)); overflow-x: auto; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 250px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .topbar .menu-btn { display: inline-flex; }
  .content { padding: 18px 16px; }
  .topbar { padding: 12px 16px; }
  .g-3, .g-2, .form-grid, .form-grid.g4 { grid-template-columns: 1fr; }
  .span2, .span4 { grid-column: auto; }
  .doc, .doc.wide { width: 100%; min-height: 0; margin: 0; }
  .dsb { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: 1fr 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px; min-height: 260px; }
  .login-art h1 { font-size: 32px; }
  h1 { font-size: 24px; }
}

/* ================= Plataforma real (Etapa 1) ================= */
.carregando { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.aviso { background: var(--warn-soft); color: var(--warn); border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.modal-t { font-size: 18px; margin: 0 0 14px; }
.modal-acoes { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.portal-top { border-bottom: 1px solid var(--border); padding: 14px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 14px; background: var(--surface); }
.list-row .thumb { position: relative; }

/* player */
.pl { background: #0b0d0b; border-radius: var(--radius); overflow: hidden; color: #fff; }
.pl-tela { position: relative; aspect-ratio: 16/9; background: #000; }
.pl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl-top, .pl-pop, .pl-ok, .pl-sheet, .pl-comentar { position: absolute; z-index: 3; }
.pl-top { display: none; left: 0; right: 0; top: 0; align-items: center; gap: 12px; padding: 10px max(14px, env(safe-area-inset-left)); background: linear-gradient(rgba(0,0,0,.65), transparent); }
.pl-tit { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pl-tit b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-tit span { font-size: 12px; opacity: .7; }
.pl-n { margin-left: auto; font-size: 13px; opacity: .85; }
.pl-x { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 17px; cursor: pointer; }
.pl-x.sm { width: 32px; height: 32px; font-size: 14px; margin-left: auto; }
.pl-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 68px; height: 68px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; }
.pl.tocando .pl-play { opacity: 0; pointer-events: none; }
.pl-comentar { left: 50%; bottom: 14px; transform: translateX(-50%); border: 0; border-radius: 99px; padding: 11px 20px; background: var(--brand); color: #0b0b0b; font: 600 14px Archivo, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; cursor: pointer; display: none; }
.pl.pronto.pausado:not(.compondo) .pl-comentar { display: block; }
.pl-carregando { position: absolute; inset: auto 0 12px; text-align: center; font-size: 12.5px; opacity: .7; z-index: 1; padding: 0 16px; }
.pl.pronto .pl-carregando { display: none; } .pl.falhou .pl-carregando { display: block; opacity: 1; color: #ffb4b4; top: 50%; bottom: auto; transform: translateY(40px); }
.pl-pop { top: 12px; right: 12px; max-width: min(55%, 380px); background: rgba(0,0,0,.72); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.pl-pop b { display: block; font-size: 11.5px; opacity: .7; font-weight: 500; }
.pl-ok { top: 12px; left: 50%; transform: translateX(-50%); background: rgba(26,255,135,.95); color: #0b0b0b; font-weight: 600; font-size: 13.5px; border-radius: 99px; padding: 7px 14px; z-index: 4; }
.pl-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: #0b0d0b; }
.pl-b { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 15px; cursor: pointer; }
.pl-time { font-size: 12px; opacity: .85; flex: none; }
.pl-scrub { position: relative; flex: 1; height: 30px; cursor: pointer; }
.pl-trilho, .pl-fill { position: absolute; left: 0; top: 13px; height: 4px; border-radius: 4px; }
.pl-trilho { right: 0; background: rgba(255,255,255,.25); } .pl-fill { background: var(--brand); width: 0; }
.pl-marcas .mk { position: absolute; top: 8px; width: 8px; height: 14px; margin-left: -4px; border-radius: 3px; background: #ffb547; }
.pl-marcas .mk.done { background: #5fbf7d; }
/* painel de comentário: no topo, porque o teclado do celular deitado cobre a metade de baixo */
.pl-sheet { top: 8px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 16px)); z-index: 5; background: rgba(22,22,22,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.pl-sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pl-tc { font: 600 13px var(--mono); background: var(--brand); color: #0b0b0b; border-radius: 6px; padding: 2px 7px; }
.pl-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pl-chips::-webkit-scrollbar { display: none; }
.pl-chips button { flex: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; border-radius: 99px; padding: 6px 11px; font: 500 12.5px Archivo, sans-serif; cursor: pointer; }
.pl-form { display: flex; gap: 8px; }
.pl-form input { flex: 1; min-width: 0; border: 1px solid rgba(255,255,255,.2); background: #111; color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.pl-pub { display: flex; gap: 6px; align-items: center; margin-top: 8px; opacity: .85; }
/* tela cheia */
.pl.fs { position: fixed; inset: 0; z-index: 60; border-radius: 0; display: flex; flex-direction: column; height: 100dvh; }
.pl.fs .pl-tela { flex: 1; aspect-ratio: auto; }
.pl.fs .pl-top { display: flex; }
.pl.fs.tocando .pl-top, .pl.fs.tocando .pl-bar { opacity: .5; }
.pl.fs .pl-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.pl.fs .pl-comentar { bottom: 18px; }
.pl.fs.compondo .pl-top { display: none; }
body.fs-on { overflow: hidden; }
@media (orientation: portrait) { .pl.fs .pl-tela::after { content: "↻ Gire o celular para assistir deitado"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, 60px); background: rgba(0,0,0,.6); border-radius: 99px; padding: 7px 14px; font-size: 13px; white-space: nowrap; z-index: 2; pointer-events: none; } .pl.fs.tocando .pl-tela::after, .pl.fs.compondo .pl-tela::after { display: none; } }
@media (max-width: 760px) { .content { padding: 18px 14px; } .pl-time { font-size: 11px; } }
