/* Frutiger Aprovações: estrutura limpa + acabamento Liquid Glass */
:root {
  --ink: #141417;
  --muted: #5C5F69;
  --line: rgba(20, 20, 23, .09);
  --glass: rgba(255, 255, 255, .42);
  --glass-hi: rgba(255, 255, 255, .62);
  --glass-solid: rgba(250, 250, 252, .78);
  --stage: #101014;
  --green: #28B34B;
  --ok: #1D7A37;
  --red: #E5352B;
  --no: #B42318;
  --amber: #F2A516;
  --wait: #8A5A00;
  --r-sm: 12px;
  --r: 22px;
  --r-lg: 28px;
  --blur: blur(22px) saturate(185%);
  /* luz do vidro: brilho no topo, borda interna e sombra macia */
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    inset 0 0 22px rgba(255, 255, 255, .22),
    0 1px 2px rgba(20, 20, 40, .05),
    0 10px 34px rgba(30, 25, 60, .10);
  font-family: "Schibsted Grotesk", -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #F4F3F7; }
html, body { margin: 0; min-height: 100%; }
body { font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; position: relative; }

/* Fundo pastel iridescente: dá ao vidro algo para refletir sem competir com as artes */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42vmax 38vmax at 6% 8%, rgba(255, 196, 172, .62), transparent 70%),
    radial-gradient(40vmax 36vmax at 96% 4%, rgba(204, 186, 255, .62), transparent 70%),
    radial-gradient(46vmax 40vmax at 88% 96%, rgba(170, 232, 212, .56), transparent 70%),
    radial-gradient(36vmax 34vmax at 10% 94%, rgba(255, 228, 168, .5), transparent 70%),
    radial-gradient(30vmax 26vmax at 50% 50%, rgba(255, 255, 255, .7), transparent 75%),
    linear-gradient(180deg, #F7F6FA 0%, #F1F0F5 100%);
}

img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 1.85rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Vidro líquido ---------- */
.box, .card, .folder, .client-list, .team-list, .empty, .auth-card, .modal, .topbar, .portal-head-in {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: var(--lg-shadow);
}
/* Borda iluminada: a luz entra pelo canto superior e reflete no inferior */
.box::before, .card::before, .folder::before, .client-list::before, .team-list::before, .empty::before,
.auth-card::before, .modal::before, .topbar::before, .portal-head-in::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 2;
  background: linear-gradient(145deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.35) 22%, rgba(255,255,255,0) 48%, rgba(255,255,255,.1) 70%, rgba(255,255,255,.75) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .box, .card, .folder, .client-list, .team-list, .empty, .auth-card, .modal, .topbar, .portal-head-in { background: var(--glass-solid); }
}

/* ---------- Botões em cápsula de vidro ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.2rem; border-radius: 999px; font-weight: 650; cursor: pointer; text-decoration: none;
  color: var(--ink);
  background: var(--glass-hi);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.3), inset 0 0 12px rgba(255,255,255,.35), 0 1px 2px rgba(20,20,40,.06), 0 4px 14px rgba(30,25,60,.08);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background-color .2s, box-shadow .2s;
}
.btn:hover { background: rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, inset 0 0 14px rgba(255,255,255,.5), 0 2px 4px rgba(20,20,40,.06), 0 8px 22px rgba(30,25,60,.12); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary {
  color: #fff; background: rgba(20, 20, 23, .86); border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 14px rgba(255,255,255,.08), 0 2px 4px rgba(20,20,40,.12), 0 8px 22px rgba(20,20,40,.18);
}
.btn--primary:hover { background: rgba(20, 20, 23, .94); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 3px 6px rgba(20,20,40,.14), 0 12px 28px rgba(20,20,40,.22); }
.btn--approve {
  color: #fff; background: rgba(40, 179, 75, .9); border-color: rgba(255, 255, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 16px rgba(255,255,255,.14), 0 2px 4px rgba(20,90,40,.12), 0 8px 22px rgba(30,150,60,.24);
}
.btn--approve:hover { background: rgba(36, 168, 70, .96); }
.btn--reject { color: var(--no); }
.btn--reject:hover { background: rgba(255, 236, 234, .85); }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn--ghost:hover { background: var(--glass-hi); border-color: rgba(255,255,255,.7); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(30,25,60,.08); }
.btn--danger { color: var(--no); }
.btn--sm { padding: .38rem .85rem; font-size: .875rem; }
.btn--block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 650; }

/* Fechar: círculo de vidro */
.win-close {
  width: 32px; height: 32px; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center; flex: none;
  color: var(--ink); background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 10px rgba(255,255,255,.4), 0 2px 8px rgba(30,25,60,.12);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background-color .2s;
}
.win-close:hover { background: rgba(255, 255, 255, .85); }
.win-close:active { transform: scale(.9); }

/* ---------- Formulários ---------- */
label { display: grid; gap: .35rem; font-weight: 650; font-size: .9rem; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea, select {
  width: 100%; border-radius: var(--r-sm); padding: .68rem .85rem; font-weight: 400; font-size: 1rem;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 3px rgba(20, 20, 40, .08), 0 0 0 1px rgba(20, 20, 23, .06);
  transition: box-shadow .18s, background-color .18s;
}
textarea { resize: vertical; min-height: 4.5rem; }
select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23141417' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 14px;
}
select:invalid { color: var(--muted); }
select option, select optgroup { color: var(--ink); }
input:focus, textarea:focus, select:focus {
  outline: none; background-color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 2px rgba(20, 20, 40, .05), 0 0 0 1.5px rgba(20, 20, 23, .55), 0 0 0 5px rgba(20, 20, 23, .08);
}
input[type=radio] { accent-color: var(--ink); width: 1rem; height: 1rem; }
.form-msg { min-height: 1.2em; margin: 0; font-size: .9rem; color: var(--no); font-weight: 550; }
.form-msg.is-info { color: var(--ok); }
.decision .form-msg:empty, .comment-form .form-msg:empty, .auth-card .form-msg:empty, #dec-step:empty { display: none; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Controle segmentado (filtros e versões), estilo iOS */
.tabs, .versions {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 1px 4px rgba(20,20,40,.05), 0 6px 20px rgba(30,25,60,.07);
}
.tabs { margin-bottom: 1.6rem; }
.panel > .versions { justify-self: start; }
.tabs button, .versions button {
  border: 0; background: transparent; cursor: pointer; font-weight: 650; color: var(--muted);
  padding: .45rem 1rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .35rem;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.versions button { padding: .32rem .85rem; font-size: .88rem; }
.tabs button:hover, .versions button:hover { color: var(--ink); }
.tabs button[aria-pressed=true], .versions button[aria-pressed=true] {
  color: var(--ink); background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20,20,40,.08), 0 4px 12px rgba(30,25,60,.12);
}
.tabs .n { font-weight: 550; opacity: .6; }

.seg { border: 0; padding: 0; margin: 0; display: flex; gap: .45rem; flex-wrap: wrap; }
.seg legend { font-weight: 650; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; padding: .45rem 1.05rem; border-radius: 999px; cursor: pointer; font-weight: 650;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 20, 23, .06);
}
.seg input:checked + span { color: #fff; background: rgba(20, 20, 23, .88); border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(20,20,40,.18); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Status */
.pill {
  display: inline-flex; align-items: center; gap: .42rem; white-space: nowrap;
  padding: .18rem .7rem .18rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.pill--pendente { color: var(--wait); background: rgba(255, 214, 110, .32); }
.pill--pendente::before { background: var(--amber); }
.pill--aprovada { color: var(--ok); background: rgba(120, 220, 140, .3); }
.pill--aprovada::before { background: var(--green); }
.pill--recusada { color: var(--no); background: rgba(255, 150, 140, .28); }
.pill--recusada::before { background: var(--red); }

/* ---------- Barra superior flutuante ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 20; margin: 12px clamp(.75rem, 3vw, 1.5rem) 0;
  display: flex; align-items: center; gap: 1.25rem; padding: .55rem .6rem .55rem 1.25rem; border-radius: 999px;
}
.portal-head { position: sticky; top: 12px; z-index: 20; padding: 12px clamp(.75rem, 3vw, 1.5rem) 0; }
.portal-head-in {
  max-width: 1180px; margin: 0 auto; border-radius: 999px;
  display: flex; align-items: center; gap: 1rem; padding: .6rem 1.4rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand img { height: 28px; width: auto; }
.brand-sub { font-weight: 650; font-size: .95rem; color: var(--muted); padding-left: .8rem; border-left: 1px solid rgba(20, 20, 23, .15); }
.topnav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(20, 20, 23, .04); }
.topnav a { padding: .38rem .95rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 650; transition: background-color .2s, color .2s; }
.topnav a:hover { color: var(--ink); }
.topnav a[aria-current=page] { color: var(--ink); background: rgba(255, 255, 255, .9); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(30,25,60,.1); }
.who { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }

/* ---------- Página ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 2.2rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head .row { justify-content: flex-end; }
.back {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .7rem;
  font-size: .92rem; font-weight: 650; color: var(--muted); text-decoration: none;
}
.back::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M9.8 3.5 5.3 8l4.5 4.5' fill='none' stroke='%23141417' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat, rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(30,25,60,.1);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1);
}
.back:hover { color: var(--ink); }
.back:hover::before { transform: translateX(-2px); }
.empty { padding: 2.6rem 1.5rem; text-align: center; color: var(--muted); border-radius: var(--r); }
.loading { padding: 4rem 1rem; text-align: center; color: var(--muted); }

.inline-form { display: flex; gap: .6rem; margin-bottom: 1.6rem; max-width: 580px; }
.inline-form input { flex: 1; }

.client-list, .team-list { list-style: none; margin: 0; padding: 6px; border-radius: var(--r); }
.client-row, .team-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; flex-wrap: wrap; border-radius: 16px; transition: background-color .2s; }
.client-row + .client-row, .team-row + .team-row { margin-top: 2px; }
.client-row:hover { background: rgba(255, 255, 255, .55); }
.client-name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.client-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.counts { display: flex; gap: .4rem; flex-wrap: wrap; margin-left: auto; }
.team-row .muted { margin-left: auto; }

/* ---------- Grade de peças ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.3rem; }
.card {
  display: block; text-decoration: none; color: inherit; border-radius: var(--r); padding: 7px;
  transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px) scale(1.01); box-shadow: inset 0 1px 0 #fff, inset 0 0 26px rgba(255,255,255,.3), 0 2px 4px rgba(20,20,40,.05), 0 20px 44px rgba(30,25,60,.16); }
.card-cover { aspect-ratio: 4 / 5; background: var(--stage); position: relative; border-radius: 16px; overflow: hidden; }
.card-cover img, .card-cover video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-cover .count {
  position: absolute; top: .55rem; right: .55rem; z-index: 1; color: #fff;
  font-size: .75rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px;
  background: rgba(20, 20, 23, .45); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.card-body { padding: .8rem .6rem .55rem; display: grid; gap: .35rem; justify-items: start; }
.card-title { font-weight: 700; line-height: 1.3; }
.card-meta { font-size: .85rem; color: var(--muted); }

/* ---------- Visualização da peça ---------- */
.piece { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.piece-view { position: sticky; top: 6rem; }
.panel { display: grid; gap: 1rem; min-width: 0; }
.box { border-radius: var(--r); padding: 1.15rem 1.3rem; }
.box h3 { margin-bottom: .45rem; }
.box p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.box--ok { background: linear-gradient(rgba(120, 220, 140, .22), rgba(120, 220, 140, .22)), var(--glass); }
.box--no { background: linear-gradient(rgba(255, 150, 140, .2), rgba(255, 150, 140, .2)), var(--glass); }
.box--wait { background: linear-gradient(rgba(255, 214, 110, .24), rgba(255, 214, 110, .24)), var(--glass); }
.box--note h3 { display: flex; align-items: center; gap: .45rem; }
.box--note h3::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.6); }

/* Viewer */
.viewer { display: grid; gap: .8rem; justify-items: center; }
.stage {
  position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #26262D 0%, #121216 70%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.55), 0 0 0 7px rgba(255,255,255,.28), 0 24px 50px rgba(30,25,60,.22);
}
.stage::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.08);
}
.frame--feed .stage { aspect-ratio: 4 / 5; }
.frame--story .stage { aspect-ratio: 9 / 16; max-width: 380px; }
.frame--wide .stage { aspect-ratio: 16 / 9; }
.frame--square .stage { aspect-ratio: 1 / 1; max-width: 460px; }
.frame--a4 .stage { aspect-ratio: 210 / 297; max-width: 420px; }
.slide iframe { width: 100%; height: 100%; border: 0; display: block; }
.piece--wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4.2v7.6L12 8z' fill='%23141417'/%3E%3C/svg%3E") 55% 50% / 18px no-repeat, rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .25);
}
.dl-thumb, .file-item { position: relative; }
.dl-thumb .play-badge { width: 22px; height: 22px; background-size: 10px, auto; }
.drive-box { display: grid; gap: .45rem; }
.drive-status { margin: 0; font-size: .85rem; color: var(--muted); }
.drive-status.is-ok { color: var(--ok); font-weight: 600; }
.drive-status.is-bad { color: var(--no); font-weight: 600; }
#tlabel { font-weight: 700; }
.stage.empty { display: grid; place-items: center; color: #B9BAC4; font-size: .9rem; }
.track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.25, 1, .35, 1); }
.slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; }
/* Setas: botões de vidro flutuando sobre a arte */
.nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--ink);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 12px rgba(255,255,255,.35), 0 4px 16px rgba(0,0,0,.22);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background-color .2s, opacity .2s;
}
.nav svg { width: 17px; height: 17px; }
.nav:hover { background: rgba(255, 255, 255, .8); transform: translateY(-50%) scale(1.06); }
.nav:active { transform: translateY(-50%) scale(.92); }
.nav:disabled { opacity: 0; pointer-events: none; }
.nav.prev { left: .8rem; }
.nav.next { right: .8rem; }
.dots {
  display: flex; gap: .4rem; align-items: center; padding: .45rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(30,25,60,.08);
}
.dot { width: .5rem; height: .5rem; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(20, 20, 23, .22); transition: width .3s cubic-bezier(.3, 1.3, .5, 1), background-color .2s; }
.dot[aria-current=true] { width: 1.4rem; background: var(--ink); }
.slide-count { font-size: .85rem; color: var(--muted); font-weight: 650; }

/* ---------- Comentários ---------- */
.comments { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.comment {
  padding: .75rem .9rem; border-radius: 16px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: box-shadow .2s, background-color .2s;
}
.comment.is-current { background: rgba(255, 255, 255, .88); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 20, 23, .32), 0 6px 18px rgba(30,25,60,.1); }
.comment-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }
.comment-head strong { color: var(--ink); font-size: .875rem; }
.comment p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag {
  border: 1px solid rgba(20, 20, 23, .14); border-radius: 999px; padding: .02rem .55rem;
  font-size: .74rem; font-weight: 700; color: var(--ink); cursor: pointer; background: rgba(255, 255, 255, .75);
  transition: background-color .2s;
}
.tag:hover { background: #fff; border-color: rgba(20, 20, 23, .35); }
.tag--static { cursor: default; color: var(--muted); }
.tag--static:hover { background: rgba(255, 255, 255, .75); border-color: rgba(20, 20, 23, .14); }
.tag--time { background: rgba(20, 20, 23, .86); color: #fff; border-color: transparent; }
.tag--time:hover { background: var(--ink); border-color: transparent; }
.who-badge { font-size: .7rem; font-weight: 700; padding: .04rem .5rem; border-radius: 999px; }
.who-badge--equipe { color: #fff; background: rgba(20, 20, 23, .82); }
.who-badge--cliente { color: var(--wait); background: rgba(255, 214, 110, .4); }
.comment-form { display: grid; gap: .6rem; }
.comment-form .row { justify-content: space-between; }
.scope { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .9rem; }
.scope label { display: flex; align-items: center; gap: .35rem; font-weight: 550; }

/* Downloads */
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.dl-head h3 { margin: 0; }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.dl-item {
  display: flex; align-items: center; gap: .8rem; padding: .45rem .55rem .45rem .45rem; border-radius: 16px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 #fff;
}
.dl-thumb { width: 44px; height: 55px; border-radius: 9px; overflow: hidden; background: var(--stage); flex: none; }
.dl-thumb img, .dl-thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dl-name { flex: 1; min-width: 0; display: grid; }
.dl-name .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.downloads .form-msg:empty { display: none; }
.downloads .form-msg { margin-top: .6rem; }

/* Decisão */
.decision { display: grid; gap: .85rem; }
.decision .row > .btn { flex: 1; padding: .9rem 1rem; font-size: 1.02rem; }
.reason-label > span { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.req { font-size: .72rem; font-weight: 700; color: var(--no); background: rgba(255, 150, 140, .25); border-radius: 999px; padding: .08rem .5rem; }
.reason-hint { margin: -.35rem 0 .1rem; font-size: .85rem; color: var(--muted); }
.reason-hint.is-ok { color: var(--ok); font-weight: 600; }

/* ---------- Janelas (modal e login) ---------- */
.modal, .auth-card.win { border-radius: var(--r-lg); padding: 0; background: rgba(248, 248, 251, .8); -webkit-backdrop-filter: blur(34px) saturate(190%); backdrop-filter: blur(34px) saturate(190%); box-shadow: inset 0 1px 0 #fff, inset 0 0 30px rgba(255,255,255,.3), 0 30px 80px rgba(25, 20, 55, .24); }
.modal { width: min(640px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: hidden; display: none; flex-direction: column; color: var(--ink); }
.modal[open] { display: flex; }
.modal::backdrop { background: rgba(30, 25, 50, .22); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }
.win-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.1rem 0 1.5rem; flex: none; }
.win-title { font-weight: 750; font-size: 1.1rem; letter-spacing: -0.015em; }
.modal-body { padding: 1rem 1.5rem 1.5rem; display: grid; gap: 1rem; overflow: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.drop {
  border: 1.5px dashed rgba(20, 20, 23, .22); border-radius: 18px; padding: 1.3rem; text-align: center;
  background: rgba(255, 255, 255, .45); transition: background-color .2s, border-color .2s;
}
.drop.is-over { border-color: var(--ink); background: rgba(255, 255, 255, .8); }
.drop p { margin: .2rem 0; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.file-item {
  display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem .4rem .4rem; border-radius: 14px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff;
}
.file-item img, .file-item video { width: 44px; height: 55px; object-fit: cover; border-radius: 8px; background: var(--stage); }
.file-item .pos { font-weight: 800; width: 1.4rem; text-align: center; }
.file-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.icon-btn {
  width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(20, 20, 23, .06), 0 2px 6px rgba(30,25,60,.08);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background-color .2s;
}
.icon-btn:hover:not(:disabled) { background: #fff; }
.icon-btn:active:not(:disabled) { transform: scale(.9); }
.icon-btn[data-rm]:hover { color: var(--no); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card { width: min(420px, 100%); border-radius: var(--r-lg); padding: 2rem; display: grid; gap: 1rem; }
.auth-card.win { gap: 0; }
.auth-card.win .modal-body { padding: 1.2rem 1.7rem 1.8rem; gap: 1.1rem; }
.auth-card form { display: grid; gap: 1rem; }
.auth-logo { height: 42px; width: auto; }

/* ---------- Portal do cliente ---------- */
.hello { padding: 2.6rem 0 1.6rem; max-width: 700px; }
.hello h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: .55rem; letter-spacing: -0.03em; }
.hello p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Notificação flutuante de vidro */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.25rem .75rem 1rem; border-radius: 999px; font-weight: 650; max-width: calc(100vw - 2rem);
  color: var(--ink); background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 #fff, 0 14px 40px rgba(25, 20, 55, .2);
  animation: toast-in .45s cubic-bezier(.3, 1.4, .5, 1);
}
.toast::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); flex: none; }
.toast--error::before { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }

/* ---------- Biblioteca ---------- */
.view-switch {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; margin-top: .4rem;
  background: rgba(255, 255, 255, .34); border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 1px 4px rgba(20,20,40,.05), 0 6px 20px rgba(30,25,60,.07);
}
.view-switch a {
  white-space: nowrap; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.15rem; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 700; transition: background-color .2s, color .2s;
}
.view-switch a:hover { color: var(--ink); }
.view-switch a[aria-current=page] { color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20,20,40,.08), 0 4px 12px rgba(30,25,60,.12); }
.view-switch .badge { min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; display: inline-grid; place-items: center; font-size: .75rem; color: #fff; background: var(--ink); }
.view-switch .n { font-weight: 550; opacity: .6; }
.hello--lib { padding-top: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .92rem; color: var(--muted); font-weight: 600; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs + .hello--lib { padding-top: .5rem; }

.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1.3rem; }
.folder {
  display: block; text-decoration: none; color: var(--ink); border-radius: var(--r); padding: 8px;
  transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), box-shadow .3s;
}
.folder:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, inset 0 0 26px rgba(255,255,255,.3), 0 2px 4px rgba(20,20,40,.05), 0 20px 44px rgba(30,25,60,.16); }
.fan {
  position: relative; height: 150px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.fan-item {
  position: absolute; bottom: -22px; width: 38%; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: var(--stage); border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px rgba(30, 25, 60, .2);
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
}
.fan-item img, .fan-item video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan-item .play-badge { width: 26px; height: 26px; background-size: 11px, auto; }
.fan-item.f0 { left: 7%;  transform: rotate(-9deg); z-index: 1; }
.fan-item.f1 { left: 31%; bottom: -10px; z-index: 3; }
.fan-item.f2 { left: 55%; transform: rotate(9deg); z-index: 2; }
.fan--1 .fan-item.f0 { left: 31%; bottom: -10px; transform: rotate(-3deg); }
.fan--2 .fan-item.f0 { left: 17%; }
.fan--2 .fan-item.f1 { left: 45%; transform: rotate(6deg); }
.folder:hover .fan-item.f0 { transform: rotate(-13deg) translateY(-8px); }
.folder:hover .fan--1 .fan-item.f0 { transform: rotate(-5deg) translateY(-10px); }
.folder:hover .fan--2 .fan-item.f1 { transform: rotate(10deg) translateY(-8px); }
.folder:hover .fan-item.f1 { transform: translateY(-10px); }
.folder:hover .fan-item.f2 { transform: rotate(13deg) translateY(-8px); }
.folder-front { display: flex; align-items: center; gap: .8rem; padding: .85rem .55rem .45rem; }
.folder-icon {
  width: 40px; height: 32px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23E4DAFF'/%3E%3Cstop offset='1' stop-color='%23BDE4F4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.5 6A3.5 3.5 0 0 1 6 2.5h8.6l4 4H34A3.5 3.5 0 0 1 37.5 10v16a3.5 3.5 0 0 1-3.5 3.5H6A3.5 3.5 0 0 1 2.5 26Z' fill='url(%23g)' stroke='%23ffffff' stroke-width='1.6'/%3E%3Cpath d='M3 12.5h34' stroke='%23ffffff' stroke-opacity='.85' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(30, 25, 60, .15));
}
.folder-text { display: grid; min-width: 0; }
.folder-text strong { font-size: 1.05rem; line-height: 1.25; }
.folder.is-empty { opacity: .72; }
.folder.is-empty:hover { opacity: 1; }
.fan--empty::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 60%, rgba(255,255,255,.7), transparent 60%); }

.modal--wide { width: min(860px, calc(100vw - 2rem)); }
.field-hint.is-ok { color: var(--ok); font-weight: 600; }
.field-hint.is-bad { color: var(--no); font-weight: 600; }
#bstep2 { display: grid; gap: .9rem; }
#bstep2[hidden] { display: none; }
.bulk-top { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; align-items: end; }
.bulk-apply { display: flex; gap: .5rem; align-items: flex-end; }
.bulk-apply label { flex: 1; }
.bulk-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.bulk-check { display: flex; align-items: center; gap: .45rem; font-weight: 650; }
.bulk-check input, .bsel { width: 1.05rem; height: 1.05rem; accent-color: var(--ink); }
.bulk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; max-height: 46vh; overflow: auto; }
.bulk-row {
  display: grid; grid-template-columns: auto 50px minmax(0, 1fr) 150px 150px; gap: .7rem; align-items: center;
  padding: .45rem .55rem; border-radius: 14px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff;
}
.bulk-row.is-missing { box-shadow: inset 0 1px 0 #fff, 0 0 0 1.5px rgba(229, 53, 43, .6); }
.bulk-row select, .bulk-row input[type=date] { padding: .45rem .6rem; font-size: .9rem; }
.bulk-row select { padding-right: 2rem; background-position: right .6rem center; }
.bulk-thumb { position: relative; width: 50px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--stage); }
.bulk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bulk-thumb .play-badge { width: 22px; height: 22px; background-size: 9px, auto; }
.bulk-name { display: grid; min-width: 0; }
.bulk-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
@media (max-width: 700px) {
  .bulk-top { grid-template-columns: 1fr; }
  .bulk-row { grid-template-columns: auto 44px minmax(0, 1fr); }
  .bulk-row select, .bulk-row input[type=date] { grid-column: 2 / -1; }
}
.lib-notice {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: -.4rem 0 1.6rem; padding: .95rem 1.1rem; border-radius: 20px;
  background: linear-gradient(135deg, rgba(228, 218, 255, .55), rgba(189, 228, 244, .45));
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(30, 25, 60, .08);
}
.lib-notice-icon {
  width: 44px; height: 36px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23E4DAFF'/%3E%3Cstop offset='1' stop-color='%23BDE4F4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2.5 6A3.5 3.5 0 0 1 6 2.5h8.6l4 4H34A3.5 3.5 0 0 1 37.5 10v16a3.5 3.5 0 0 1-3.5 3.5H6A3.5 3.5 0 0 1 2.5 26Z' fill='url(%23g)' stroke='%23ffffff' stroke-width='1.6'/%3E%3Cpath d='M14 18.5l4 4 8-8' fill='none' stroke='%23141417' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 8px rgba(30, 25, 60, .15));
}
.lib-notice-text { flex: 1; min-width: 220px; display: grid; gap: .15rem; }
.lib-notice-text strong { font-size: 1rem; }
.lib-notice-text span { font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) {
  .lib-notice { align-items: flex-start; }
  .lib-notice .btn { width: 100%; }
}
.list-bar { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.list-bar .tabs { margin-bottom: 0; }
.month-pick { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); font-weight: 650; }
.month-pick select { min-width: 220px; font-weight: 650; color: var(--ink); border-radius: 999px; padding-left: 1.1rem; }
.carry-note { margin: -.6rem 0 1.2rem; font-size: .88rem; color: var(--muted); }
.pin-card { width: min(400px, 100%); text-align: left; }
.pin-card .modal-body { padding: 2rem 1.8rem 1.8rem; }
.pin-title { font-size: 1.6rem; }
.pin-card form { display: grid; gap: .9rem; }
.pin-boxes { display: flex; gap: .7rem; justify-content: space-between; }
.pin-boxes .pin-box {
  width: 100%; aspect-ratio: 1 / 1.1; text-align: center; font-size: 1.9rem; font-weight: 800; padding: 0;
  border-radius: 16px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 3px rgba(20, 20, 40, .08), 0 0 0 1px rgba(20, 20, 23, .07);
  caret-color: var(--ink); -webkit-text-security: disc;
}
.pin-boxes .pin-box:focus { outline: none; background: #fff; box-shadow: 0 0 0 1.5px rgba(20, 20, 23, .6), 0 0 0 6px rgba(20, 20, 23, .08); }
.pin-boxes.is-wrong { animation: pin-shake .35s cubic-bezier(.3, 1.4, .5, 1); }
.pin-boxes.is-wrong .pin-box, .pin-boxes.is-wrong .pin-box:focus { box-shadow: 0 0 0 1.5px rgba(229, 53, 43, .6); }
@keyframes pin-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .pin-boxes.is-wrong { animation: none; } }
.access-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: -.4rem 0 1.8rem; }
.access-item {
  display: grid; gap: .35rem; padding: .9rem 1.1rem; border-radius: 18px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(30, 25, 60, .06);
}
.access-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.access-value { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-item .row { gap: .5rem; margin-top: .2rem; }
.lock-tag {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .08rem .55rem .08rem .45rem;
  border-radius: 999px; background: rgba(20, 20, 23, .85); color: #fff; letter-spacing: .04em;
}
.lock-tag::before {
  content: ""; width: 9px; height: 11px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11'%3E%3Cpath d='M2 4.5V3a2.5 2.5 0 0 1 5 0v1.5' fill='none' stroke='white' stroke-width='1.3'/%3E%3Crect x='.5' y='4.5' width='8' height='6' rx='1.5' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}
.client-row .lock-tag { margin-left: -.4rem; }
.modal--narrow { width: min(460px, calc(100vw - 2rem)); }
.modal-body input.pin-input { font-size: 1.8rem; font-weight: 800; letter-spacing: .6em; text-align: center; padding: .6rem; }
.pin-msg {
  margin: 0; padding: .9rem 1rem; border-radius: 14px; white-space: pre-wrap; word-break: break-word;
  font: 500 .9rem/1.5 inherit; font-family: inherit; background: rgba(255, 255, 255, .7); border: 1px solid rgba(20, 20, 23, .1);
}
.time-field { display: flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; }
.time-field input { width: 5.5rem; padding: .4rem .6rem; font-size: .9rem; text-align: center; }
.bulk-warn { display: inline-block; margin-left: .3rem; font-size: .7rem; font-weight: 700; color: var(--wait); background: rgba(255, 214, 110, .4); border-radius: 999px; padding: 0 .45rem; cursor: help; }
.dl-actions { display: flex; gap: .4rem; flex: none; }
.dl-actions .btn { white-space: nowrap; }
@media (max-width: 600px) {
  /* downloads: botões numa linha própria, abaixo do nome */
  .dl-item { flex-wrap: wrap; }
  .dl-name { flex: 1 1 calc(100% - 60px); }
  .dl-actions { width: 100%; }
  .dl-actions .btn { flex: 1; }
  /* filtros: grade 2 x 2 */
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; padding: 5px; gap: 4px; }
  .tabs button { justify-content: center; border-radius: 17px; padding: .55rem .5rem; font-size: .92rem; }
  .list-bar { gap: .8rem; }
  .month-pick { width: 100%; }
  .month-pick select { width: 100%; }
  .view-switch { display: flex; width: 100%; }
  .view-switch a { flex: 1; justify-content: center; }
}
.video-error {
  height: 100%; display: grid; place-items: center; align-content: center; gap: .8rem; padding: 1.5rem; text-align: center; color: #E7E8EE;
}
.video-error p { margin: 0; font-weight: 600; }
.video-error .btn { color: var(--ink); }
.video-error-icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4.2v7.6L12 8z' fill='%23E7E8EE'/%3E%3Cpath d='M3 13 13 3' stroke='%23E7E8EE' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 20px;
}
.slide-trash {
  position: absolute; top: .7rem; left: .7rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 4.5h10M6.5 4.5V3h3v1.5M4.5 4.5l.6 8.2a1 1 0 0 0 1 .8h3.8a1 1 0 0 0 1-.8l.6-8.2M7 7v4M9 7v4' fill='none' stroke='%23B42318' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(0, 0, 0, .22);
  transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), background-color .2s;
}
.slide-trash:hover { background-color: rgba(255, 236, 234, .95); transform: scale(1.06); }
.slide-trash:active { transform: scale(.92); }
.bulk-apply select { padding: .55rem 2rem .55rem .7rem; font-size: .9rem; }
.bulk-row--img { grid-template-columns: 1.4rem 50px minmax(0, 1fr) 170px 150px 2rem; }
.bulk-row--img .pos { font-weight: 800; text-align: center; color: var(--muted); }
@media (max-width: 700px) {
  .bulk-row--img { grid-template-columns: 1.4rem 44px minmax(0, 1fr) 2rem; }
  .bulk-row--img select, .bulk-row--img input[type=date] { grid-column: 2 / -1; }
  .bulk-apply { flex-wrap: wrap; }
}
/* Blocos por situação */
.status-block + .status-block { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid rgba(20, 20, 23, .08); }
.status-head { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; margin: 0 0 1rem; letter-spacing: -.02em; }
.status-head .n { font-size: 1rem; font-weight: 600; color: var(--muted); }
.status-dot { width: .7rem; height: .7rem; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .7); }
.status-block--pendente .status-dot { background: var(--amber); }
.status-block--recusada .status-dot { background: var(--red); }
.status-block--aprovada .status-dot { background: var(--green); }
.status-block .kind-section:first-of-type .lib-section { margin-top: .2rem; }

/* Aprovação em massa */
.bulk-approve-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: -.4rem 0 1.4rem; }
.btn-select::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='1.5' width='13' height='13' rx='3.5' fill='none' stroke='%23141417' stroke-width='1.4'/%3E%3Cpath d='M4.8 8.2l2.2 2.2 4.3-4.6' fill='none' stroke='%23141417' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card--select { cursor: pointer; position: relative; }
.card--select .card-check {
  position: absolute; top: 16px; left: 16px; z-index: 3; width: 26px; height: 26px; margin: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; border-radius: 9px;
  background: rgba(255, 255, 255, .85); border: 1.5px solid rgba(20, 20, 23, .35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card--select .card-check:checked {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.4l2.7 2.7 5.7-6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--green);
}
.card--select .card-check:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.card--select.is-selected { box-shadow: inset 0 1px 0 #fff, 0 0 0 2.5px var(--green), 0 12px 30px rgba(40, 179, 75, .22); }
.card--select.is-disabled { opacity: .45; cursor: default; }
.card--select.is-disabled:hover { transform: none; }
.select-bar { position: fixed; left: 0; right: 0; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 50; padding: 0 1rem; pointer-events: none; }
.select-bar-in {
  pointer-events: auto; max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  padding: .7rem .8rem .7rem 1.2rem; border-radius: 22px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: inset 0 1px 0 #fff, 0 18px 50px rgba(25, 20, 55, .25);
}
.select-bar-in .row { gap: .45rem; }
.select-count { font-weight: 700; }
main.page:has(~ .select-bar) { padding-bottom: 8rem; }

/* Calendário */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal-nav { display: flex; align-items: center; gap: .6rem; }
.cal-title { font-size: 1.35rem; min-width: 11.5rem; text-align: center; }
.cal-arrow { width: 2.4rem; height: 2.4rem; padding: 0; font-size: 1.3rem; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); font-weight: 600; }
.lg::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; vertical-align: .05em; }
.lg--pendente::before { background: var(--amber); } .lg--recusada::before { background: var(--red); } .lg--aprovada::before { background: var(--green); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 8px; border-radius: var(--r);
  background: rgba(255, 255, 255, .34); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--lg-shadow);
}
.cal-wd { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: .3rem 0; }
.cal-cell {
  min-height: 118px; border-radius: 14px; padding: .4rem; display: flex; flex-direction: column; gap: .3rem;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
}
.cal-cell.is-out { background: transparent; border-color: transparent; }
.cal-cell.is-today { box-shadow: 0 0 0 2px var(--ink); background: rgba(255, 255, 255, .9); }
.cal-num { font-size: .82rem; font-weight: 700; color: var(--muted); }
.cal-cell.is-today .cal-num { color: #fff; background: var(--ink); border-radius: 999px; padding: 0 .45rem; align-self: flex-start; }
.cal-items { display: grid; gap: .25rem; }
.cal-item {
  display: flex; align-items: center; gap: .35rem; padding: .2rem .35rem .2rem .2rem; border-radius: 9px; text-decoration: none; color: var(--ink);
  font-size: .74rem; font-weight: 650; background: rgba(255, 255, 255, .8); border-left: 3px solid var(--amber); min-width: 0;
}
.cal-item--recusada { border-left-color: var(--red); } .cal-item--aprovada { border-left-color: var(--green); }
.cal-item:hover { background: #fff; }
.cal-thumb { position: relative; width: 22px; height: 22px; border-radius: 6px; overflow: hidden; flex: none; background: var(--stage); }
.cal-thumb img, .cal-thumb video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cal-thumb .play-badge { width: 12px; height: 12px; background-size: 6px, auto; }
.cal-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: .72rem; font-weight: 700; color: var(--muted); padding-left: .3rem; }
.agenda { display: none; }
.agenda-day { margin-bottom: 1.1rem; }
.agenda-day h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin-bottom: .5rem; }
.today-tag { font-size: .7rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 999px; padding: .05rem .5rem; }
.agenda-item {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 16px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 1px 0 #fff; margin-bottom: .4rem;
}
.agenda-item .cal-thumb { width: 42px; height: 42px; border-radius: 10px; }
.agenda-item .cal-thumb .play-badge { width: 20px; height: 20px; background-size: 8px, auto; }
.agenda-text { flex: 1; min-width: 0; display: grid; }
@media (max-width: 760px) {
  .cal-grid { display: none; }
  .agenda { display: block; }
  .cal-title { min-width: 0; font-size: 1.2rem; }
  .status-head { font-size: 1.25rem; }
  .select-bar-in { padding: .7rem; }
  .select-bar-in .row { width: 100%; }
  .select-bar-in .btn--approve { flex: 1; }
  .view-switch a { flex: 1 1 auto; padding: .5rem .45rem; font-size: .86rem; gap: .3rem; white-space: nowrap; }
  .view-switch .badge { min-width: 1.15rem; height: 1.15rem; font-size: .68rem; }
}
.lib-section { display: flex; align-items: baseline; gap: .5rem; font-size: 1.2rem; margin: 2rem 0 .9rem; }
.lib-section .n { font-size: .95rem; font-weight: 600; color: var(--muted); }
.kind-section:first-of-type .lib-section, .hello + .lib-section, .lib-bar + .form-msg + .lib-section { margin-top: .4rem; }
.folder-chip {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%;
  font-size: .75rem; font-weight: 650; color: var(--muted); padding: .1rem .55rem .1rem .45rem; border-radius: 999px;
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(20, 20, 23, .1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.folder-chip::before {
  content: ""; width: 12px; height: 10px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 2a1 1 0 0 1 1-1h2.6l1.2 1.2H10a1 1 0 0 1 1 1V8a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1Z' fill='%23B9A8F5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-hint { margin: -.55rem 0 0; font-size: .82rem; color: var(--muted); }
.team-approve { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(20, 20, 23, .08); }
.team-approve .row { gap: .5rem; }
.approved-toggle {
  display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: 14px; cursor: pointer; font-weight: 500;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff;
}
.approved-toggle input { width: 1.05rem; height: 1.05rem; margin-top: .15rem; accent-color: var(--green); flex: none; }
.approved-toggle strong { display: block; font-weight: 700; }
.approved-toggle:has(input:checked) { background: rgba(120, 220, 140, .22); border-color: rgba(40, 179, 75, .35); }
.btn-drive::before {
  content: ""; width: 16px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M5.3 1h5.4l4.3 7.4-2.7 4.6H3.7L1 8.4Z' fill='none' stroke='%23141417' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M5.3 1 9.6 8.4M10.7 1 6.4 8.4M1 8.4h8.6' fill='none' stroke='%23141417' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--primary.btn-drive::before { filter: invert(1); }
.lib-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.btn-link::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.6 9.4a2.8 2.8 0 0 0 4 0l2.2-2.2a2.8 2.8 0 0 0-4-4l-.9.9M9.4 6.6a2.8 2.8 0 0 0-4 0L3.2 8.8a2.8 2.8 0 0 0 4 4l.9-.9' fill='none' stroke='%23141417' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lib-msg { margin: -.6rem 0 1.2rem; }
.lib-msg:empty { display: none; }
.lib-msg.is-warn { color: var(--wait); font-weight: 550; line-height: 1.5; }
.lib-msg .linklike { margin-left: .2rem; }
.lib-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.lib-card { display: flex; flex-direction: column; }
.lib-open { display: block; color: inherit; text-decoration: none; flex: 1; }
.lib-actions { padding: .1rem .6rem .6rem; }
.title-preview {
  display: grid; gap: .1rem; padding: .75rem 1rem; border-radius: 14px;
  background: rgba(255, 255, 255, .5); border: 1px dashed rgba(20, 20, 23, .2);
}
.title-preview strong { font-size: 1.05rem; color: var(--muted); }
.title-preview.is-ready { border-style: solid; border-color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .75); box-shadow: inset 0 1px 0 #fff; }
.title-preview.is-ready strong { color: var(--ink); }
.post-date-row { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.post-date-row label { flex: 1; min-width: 180px; }
input[type=date] {
  width: 100%; border-radius: var(--r-sm); padding: .6rem .8rem; font-size: 1rem;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 3px rgba(20, 20, 40, .08), 0 0 0 1px rgba(20, 20, 23, .06);
}
input[type=date]:focus { outline: none; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1.5px rgba(20, 20, 23, .55), 0 0 0 5px rgba(20, 20, 23, .08); }

/* ---------- Toque Frutiger Aero: bolhas ---------- */
.aero { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bolha {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, rgba(255,255,255,.95) 0 7%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 70% 78%, rgba(255,255,255,.55) 0 4%, rgba(255,255,255,0) 12%),
    radial-gradient(circle closest-side, rgba(190,230,255,.05) 0%, rgba(180,220,255,.14) 66%, rgba(215,195,255,.32) 84%, rgba(255,255,255,.9) 95%, rgba(255,255,255,0) 100%);
  animation: flutuar 12s ease-in-out infinite alternate;
}
.b1 { width: 150px; height: 150px; left: 4%;  top: 58%; animation-duration: 14s; }
.b2 { width: 62px;  height: 62px;  left: 13%; top: 84%; animation-duration: 10s; animation-delay: -3s; }
.b3 { width: 190px; height: 190px; right: 3%; top: 22%; animation-duration: 16s; animation-delay: -6s; }
.b4 { width: 86px;  height: 86px;  right: 12%; top: 70%; animation-duration: 11s; animation-delay: -2s; }
.b5 { width: 40px;  height: 40px;  left: 52%; top: 90%; animation-duration: 9s; animation-delay: -5s; }
.b6 { width: 30px;  height: 30px;  right: 4%; top: 55%; animation-duration: 8s; animation-delay: -1s; }
.b7 { width: 22px;  height: 22px;  left: 30%; top: 14%; animation-duration: 9s; animation-delay: -4s; }
@keyframes flutuar { from { transform: translateY(0); } to { transform: translateY(-22px); } }

@media (max-width: 860px) {
  .b1 { width: 96px; height: 96px; } .b3 { width: 120px; height: 120px; right: -30px; }
  .b5 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bolha { animation: none; } }

@media (max-width: 860px) {
  .piece, .piece--wide { grid-template-columns: 1fr; }
  .piece-view { position: static; }
  .frame--feed .stage { max-width: 460px; }
  .topbar { flex-wrap: wrap; gap: .6rem; border-radius: 26px; padding: .55rem .6rem .55rem 1rem; }
  .who span, .brand-sub { display: none; }
  .brand img { height: 24px; }
  .topnav { order: 3; width: 100%; }
  .topnav a { flex: 1 1 auto; text-align: center; white-space: nowrap; }
}
@media (max-width: 600px) {
  .topnav { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 20px; }
  .topnav a { padding: .45rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-item, .folder { transition: none; }
  .track, .card, .btn, .dot, .nav, .win-close, .icon-btn { transition: none; }
  .card:hover { transform: none; }
  .toast { animation: none; }
}
