/* Lion Review — telas do dono: moldura (lateral + barra de cima), projetos, projeto (pastas, grade/lista de videos),
   ajustes, fila de envio, compartilhar, atividade, entrar/configurar. Usa os tokens de theme.css. Prefixo das classes: ap- */

/* ---------- moldura ---------- */
.ap-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
.ap-side {
  width: var(--side-w); flex: none; display: flex; flex-direction: column; min-height: 0; z-index: 40;
  background: var(--bg-1); border-right: 1px solid var(--line);
}
.ap-side-head { height: var(--top-h); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); }
.ap-side-head .logo:hover { text-decoration: none; }
.ap-side-x { display: none; }
.ap-side-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 10px 16px; }
.ap-side-sec { display: flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.ap-side-sec .ap-nav { flex: 1; }
.ap-side-plus { color: var(--text-3); }
.ap-nav {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text-2); font-size: 13.5px; font-weight: 550; text-align: left; cursor: pointer; transition: background .12s, color .12s;
}
.ap-nav .ic { color: var(--text-3); transition: color .12s; }
.ap-nav:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.ap-nav:hover .ic, .ap-nav.on .ic { color: var(--text); }
.ap-nav.on { background: var(--bg-3); color: var(--text); }
.ap-nav-n {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.ap-side-list { display: flex; flex-direction: column; gap: 1px; }
.ap-sp { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px 0 14px; border-radius: var(--r-sm); color: var(--text-2); font-size: 13px; transition: background .12s, color .12s; }
.ap-sp:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.ap-sp.on { background: var(--accent-bg); color: var(--text); font-weight: 600; }
.ap-sp-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-sp-c { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 500; }
.ap-sp-arch { margin-top: 6px; color: var(--text-3); }
.ap-sp-arch .ic { color: var(--text-3); }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.ap-dot-lg { width: 12px; height: 12px; }
.ap-side-add {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; margin-top: 8px; padding: 0 12px; border: 1px dashed var(--line-2);
  border-radius: var(--r-sm); background: none; color: var(--text-3); font-size: 13px; cursor: pointer; transition: color .12s, border-color .12s, background .12s;
}
.ap-side-add:hover { color: var(--text); border-color: #4a4a57; background: var(--bg-2); }
.ap-side-empty { margin: 4px 12px 2px; color: var(--text-3); font-size: 12.5px; }
.ap-skl { height: 20px; margin: 6px 12px; }
.ap-side-foot { flex: none; border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.ap-store { display: block; padding: 9px 10px 11px; margin-bottom: 4px; border-radius: var(--r-sm); color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.ap-store:hover { background: var(--bg-3); text-decoration: none; color: var(--text); }
.ap-store-t { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ap-store-t .ic { color: var(--text-3); }
.ap-bar { display: block; height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.ap-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s; }
.ap-bar.warn i { background: var(--warn); }
.ap-bar.bad i { background: var(--bad); }
.ap-user { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; margin-top: 4px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.ap-user:hover { background: var(--bg-3); }
.ap-user-av { display: inline-flex; }
.ap-user-n { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-user > .ic { color: var(--text-3); }

.ap-body { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; position: relative; }
.ap-top {
  height: var(--top-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--line); background: var(--bg-1); position: relative; z-index: 20;
}
.ap-burger { display: none; position: relative; }
.ap-burger-n {
  position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg-1);
}
.ap-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.ap-crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); padding: 5px 7px; border-radius: 6px; transition: background .12s, color .12s; }
.ap-crumb > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
a.ap-crumb:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.ap-crumb.cur { color: var(--text); font-weight: 650; }
.ap-crumb-sep { color: var(--text-3); padding: 0 1px; }
.ap-crumb-back { display: none; }
.ap-top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.ap-search {
  display: flex; align-items: center; gap: 8px; width: 260px; height: 34px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--text-3); cursor: text; transition: border-color .12s, box-shadow .12s;
}
.ap-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.ap-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 13px; }
.ap-search input::placeholder { color: var(--text-3); }
.ap-search:focus-within kbd { display: none; }
.ap-search-btn { display: none; }
.ap-actions { display: flex; align-items: center; gap: 8px; }
.ap-main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; outline: none; position: relative; }
.ap-scrim { display: none; }

/* ---------- pagina ---------- */
.ap-page { padding: 24px 28px 64px; max-width: 1680px; margin: 0 auto; min-height: 100%; }
.ap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 18px; flex-wrap: wrap; margin-bottom: 24px; }
.ap-head-main { min-width: 0; flex: 1 1 280px; }
.ap-h1 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ap-sub { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }
.ap-head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-ptitle { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ap-ptitle-ic { color: #f0b54a; display: inline-flex; }
.ap-ptitle .ap-more, .ap-ptitle .btn { color: var(--text-3); }
.ap-tag { display: inline-flex; align-items: center; flex: none; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--bg-3); color: var(--text-2); font-size: 11px; font-weight: 650; }
.ap-tag.bad { background: var(--bad-bg); color: var(--bad); }
.ap-tag.warn { background: var(--warn-bg); color: var(--warn); }
.ap-sep { color: #3d3d48; }
.ap-n { color: var(--text-3); font-weight: 600; font-variant-numeric: tabular-nums; }

/* controle segmentado */
.ap-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg-1); border: 1px solid var(--line); }
.ap-seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 6px;
  background: none; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s;
}
.ap-seg button:hover { color: var(--text); }
.ap-seg button.on { background: var(--bg-4); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.ap-seg button span { color: var(--text-3); font-weight: 600; }
.ap-seg-ic button { width: 32px; padding: 0; }
.ap-seg-full { display: flex; }
.ap-seg-full button { flex: 1; }

/* select pequeno com icone */
.ap-selectw {
  position: relative; display: inline-flex; align-items: center; height: 34px; padding-left: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg-1); color: var(--text-3); transition: border-color .12s;
}
.ap-selectw:hover { border-color: #45454f; }
.ap-selectw:focus-within { border-color: var(--accent); }
.ap-selectw.on { border-color: rgba(123, 108, 255, .6); color: var(--accent-2); }
.ap-select, .ap-share .select {
  height: 100%; padding: 0 28px 0 8px; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 550; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
}
.ap-share .select { border: 1px solid var(--line-2); background-color: var(--bg-1); padding: 0 30px 0 11px; border-radius: var(--r-sm); height: 36px; width: 100%; }
.ap-share .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.ap-select option, .ap-share .select option { background: var(--bg-2); color: var(--text); }

/* botao "mais" aparece ao passar o mouse */
.ap-more { color: var(--text-3); }
.ap-pc .ap-more, .ap-vc .ap-more, .ap-fc .ap-more { opacity: 0; transition: opacity .12s; }
.ap-pc:hover .ap-more, .ap-vc:hover .ap-more, .ap-fc:hover .ap-more, .ap-more:focus-visible, .ap-vc.sel .ap-more { opacity: 1; }

/* ---------- projetos (inicio) ---------- */
.ap-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.ap-pc {
  position: relative; min-width: 0; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ap-pc:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .38); }
.ap-pc.arch { opacity: .75; }
.ap-pc-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: #08080a; overflow: hidden; border-bottom: 1px solid var(--line); }
.ap-pc-cover:hover { text-decoration: none; }
.ap-pc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.ap-pc:hover .ap-pc-cover img { transform: scale(1.035); }
.ap-pc-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 800; letter-spacing: -.02em;
  color: color-mix(in srgb, var(--pc, #7b6cff) 75%, #fff);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pc, #7b6cff) 34%, transparent) 0%, transparent 62%),
    radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--pc, #7b6cff) 16%, transparent), transparent 62%), #111115;
}
.ap-pc-count, .ap-pc-open {
  position: absolute; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px;
  background: rgba(8, 8, 10, .74); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.ap-pc-count { left: 8px; }
.ap-pc-open { right: 8px; background: var(--accent); }
.ap-pc-b { padding: 12px 10px 14px 14px; }
.ap-pc-t { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ap-pc-name { flex: 1; min-width: 0; color: var(--text); font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-pc-name:hover { text-decoration: none; color: #fff; }
.ap-pc-c { margin: 2px 0 0 17px; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-pc-m { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 17px; color: var(--text-3); font-size: 12px; }
.ap-empty-wrap { display: block; }
.ap-first {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 20px 56px; border: 1px dashed var(--line-2); border-radius: 16px;
  background: radial-gradient(620px 300px at 50% 0%, rgba(123, 108, 255, .11), transparent 70%), var(--bg-1);
}
.ap-first-art {
  width: 76px; height: 76px; border-radius: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(123, 108, 255, .28), rgba(123, 108, 255, .08)); color: var(--accent-2); box-shadow: 0 10px 40px rgba(123, 108, 255, .22);
}
.ap-first-art .ic { width: 36px; height: 36px; }
.ap-first h2 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.015em; }
.ap-first p { margin: 8px 0 24px; color: var(--text-2); max-width: 460px; }
.ap-steps { display: flex; gap: 24px; margin: 36px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 13px; flex-wrap: wrap; justify-content: center; }
.ap-steps li { display: flex; align-items: center; gap: 9px; }
.ap-steps b { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-3); color: var(--text); font-size: 11.5px; }
.ap-grid-empty { grid-column: 1 / -1; padding: 52px 16px; }

/* ---------- projeto: pastas ---------- */
.ap-sec { margin-bottom: 28px; }
.ap-sec-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ap-sec-h h2, .ap-tb-t { margin: 0; font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .07em; display: flex; align-items: center; gap: 8px; }
.ap-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 10px; }
.ap-fc {
  display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 6px 0 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; min-width: 0;
}
.ap-fc:hover { border-color: var(--line-2); background: #1c1c22; }
.ap-fc-ic { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(245, 184, 65, .12); color: #f0b54a; flex: none; }
.ap-fc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ap-fc-n { color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-fc-n:hover { text-decoration: none; }
.ap-fc-c { color: var(--text-3); font-size: 12px; }
.ap-fc.ap-drop-on { border-color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.ap-dragging .ap-fc { border-style: dashed; border-color: #4a4a58; }

/* ---------- projeto: barra de ferramentas (presa no topo; com selecao vira a barra de acoes) ---------- */
.ap-tb {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap;
  min-height: 54px; margin: -10px 0 6px; padding: 10px 0; background: var(--bg);
}
.ap-tb-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-tb.selmode > .ap-tb-t, .ap-tb.selmode > .ap-tb-r { display: none; }
.ap-selbar { display: none; }
.ap-tb.selmode > .ap-selbar {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; padding: 5px 5px 5px 12px; border-radius: 10px;
  background: #1d1a33; border: 1px solid rgba(123, 108, 255, .4); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); animation: lr-pop .12s ease-out;
}
.ap-selbar-n { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 650; font-size: 13px; white-space: nowrap; color: var(--text); }
.ap-selbar-n .ic { color: var(--accent-2); }
.ap-selbar [data-sa="clear"] { color: var(--text-2); }

/* ---------- cartao de video ---------- */
.ap-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 24px 18px; }
.ap-vc { position: relative; min-width: 0; border-radius: 10px; }
.ap-vc-tw { position: relative; }
.ap-vc-th {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050506; border: 1px solid var(--line);
  transition: border-color .12s, box-shadow .12s;
}
.ap-vc-th:hover { text-decoration: none; }
.ap-vc:hover .ap-vc-th { border-color: #3b3b47; }
.ap-vc.sel .ap-vc-th { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ap-vc-th img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; }
.ap-vc-strip { position: absolute; inset: 0; background-repeat: no-repeat; background-color: #050506; opacity: 0; pointer-events: none; }
.ap-vc-th.scrub .ap-vc-strip { opacity: 1; }
.ap-vc-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .14); opacity: 0; pointer-events: none; }
.ap-vc-line i { display: block; height: 100%; width: 0; background: var(--accent); }
.ap-vc-th.scrub .ap-vc-line { opacity: 1; }
.ap-vc-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center;
  color: var(--text-3); background: repeating-linear-gradient(135deg, #0d0d10 0 10px, #101014 10px 20px);
}
.ap-vc-ph small { font-size: 11.5px; line-height: 1.3; }
.ap-vc-dur {
  position: absolute; right: 7px; bottom: 7px; height: 20px; padding: 0 6px; border-radius: 5px; background: rgba(0, 0, 0, .74); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; pointer-events: none;
}
.ap-vc-th.scrub .ap-vc-dur { bottom: 10px; background: var(--accent); }
.ap-vc-ver { position: absolute; left: 8px; top: 8px; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); transition: transform .14s; }
.ap-vc:hover .ap-vc-ver, .ap-vc.sel .ap-vc-ver { transform: translateX(30px); }
.ap-vc-gone { position: absolute; left: 8px; bottom: 8px; height: 20px; padding: 0 7px; border-radius: 5px; background: rgba(245, 184, 65, .9); color: #1d1500; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; }
.ap-vc-ck { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; opacity: 0; transition: opacity .12s; cursor: pointer; z-index: 2; }
.ap-vc:hover .ap-vc-ck, .ap-vc.sel .ap-vc-ck, .ap-vc-ck:focus-within { opacity: 1; }
.ap-vc-ck input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ap-vc-ck span { position: absolute; inset: 0; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .45); transition: background .12s, border-color .12s; pointer-events: none; }
.ap-vc-ck input:checked + span { background: var(--accent); border-color: var(--accent); }
.ap-vc-ck input:checked + span::after { content: ""; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ap-vc-ck input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-vc-i { padding: 10px 2px 0; }
.ap-vc-t { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ap-vc-name { flex: 1; min-width: 0; color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-vc-name:hover { text-decoration: none; color: #fff; }
.ap-vc .ap-more { margin: -4px -6px -4px 0; }
.ap-vc-m { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: var(--text-3); min-width: 0; }
.ap-vc-when { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-stbtn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 22px; flex: none; display: inline-flex; }
.ap-stbtn .pill { transition: filter .12s; }
.ap-stbtn:hover .pill { filter: brightness(1.3); }
.ap-cm { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 12px; font-weight: 600; flex: none; font-variant-numeric: tabular-nums; }
.ap-cm.on { color: var(--accent-2); }
.ap-cm.none { opacity: .5; }

/* envio no cartao */
.ap-vc-up { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .86)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.ap-vc-upt { font-size: 11.5px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-vc-upb { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.ap-vc-upb i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s; }
.ap-vc-up.paused .ap-vc-upb i, .ap-vr-up.paused .ap-vc-upb i { background: var(--warn); }
.ap-vc.pend .ap-vc-th { border-style: dashed; }

/* soltar arquivo */
.ap-vc-dropnote {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center;
  background: rgba(123, 108, 255, .32); color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.ap-vc.ap-drop-on .ap-vc-dropnote { display: flex; }
.ap-vc.ap-drop-on .ap-vc-th { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 30px rgba(123, 108, 255, .25); }
.ap-vr.ap-drop-on { background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.ap-dropov {
  position: fixed; z-index: 80; pointer-events: none; border: 2px dashed var(--accent); border-radius: 12px; background: rgba(123, 108, 255, .05);
  display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 26px;
}
.ap-dropov-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 21px; background: var(--accent); color: #fff;
  font-weight: 650; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); max-width: 100%;
}
.ap-dropov-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 60px 20px; border: 1.5px dashed var(--line-2); border-radius: 14px;
  background: var(--bg-1); cursor: pointer; transition: border-color .15s, background .15s;
}
.ap-dropzone:hover { border-color: var(--accent); background: rgba(123, 108, 255, .05); }
.ap-dz-ic { width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent-2); margin-bottom: 8px; }
.ap-dz-ic .ic { width: 26px; height: 26px; }
.ap-dropzone h3 { margin: 0; font-size: 17px; font-weight: 700; }
.ap-dropzone p { margin: 0 0 12px; color: var(--text-2); max-width: 420px; }
.ap-dropzone .hint { margin-top: 6px; }

/* ---------- lista de videos ---------- */
.ap-vlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-1); }
.ap-vr {
  display: grid; grid-template-columns: 26px 76px minmax(0, 1fr) 132px 64px 64px 78px 92px 34px; align-items: center; gap: 12px;
  min-height: 58px; padding: 6px 10px 6px 14px; border-top: 1px solid var(--line); font-size: 13px; transition: background .1s;
}
.ap-vr:first-child { border-top: 0; }
.ap-vr:hover { background: #16161b; }
.ap-vr.sel { background: var(--accent-bg); }
.ap-vr-h { min-height: 36px; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.ap-vr-h:hover { background: none; }
.ap-vr-ck { display: flex; align-items: center; }
.ap-vr-ck input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; cursor: pointer; }
.ap-vr-th { position: relative; display: block; width: 76px; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #050506; border: 1px solid var(--line); }
.ap-vr-th img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ap-vr-th .ap-vc-ph small { display: none; }
.ap-vr-th .ap-vc-ph .ic { width: 15px; height: 15px; }
.ap-vr-n { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-vr-n > a { color: var(--text); font-weight: 600; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-vr-n > a:hover { text-decoration: none; color: #fff; }
.ap-vr-up { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; max-width: 280px; }
.ap-vr-up .ap-vc-upt { color: var(--text-2); }
.ap-vr-d, .ap-vr-s, .ap-vr-u { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- fila de envio ---------- */
.ap-uq {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 384px; max-width: calc(100vw - 24px); border-radius: 14px; background: #1b1b21;
  border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: lr-pop .16s ease-out;
}
.ap-uq-h { position: relative; display: flex; align-items: center; gap: 2px; padding: 11px 8px 12px 16px; }
.ap-uq-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; user-select: none; }
.ap-uq-title { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-uq-sub { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ap-uq-sub:empty { display: none; }
.ap-uq-total { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.ap-uq.busy .ap-uq-total { background: rgba(255, 255, 255, .06); }
.ap-uq-total i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.ap-uq:not(.busy) .ap-uq-total i { background: var(--ok); }
.ap-uq-list { max-height: min(340px, 48vh); overflow-y: auto; border-top: 1px solid var(--line); }
.ap-uq.min .ap-uq-list { display: none; }
.ap-uq-it { display: flex; align-items: center; gap: 12px; padding: 10px 8px 11px 14px; border-top: 1px solid var(--line); }
.ap-uq-it:first-child { border-top: 0; }
.ap-uq-th { width: 56px; height: 32px; flex: none; border-radius: 5px; overflow: hidden; background: #0a0a0d; display: flex; align-items: center; justify-content: center; color: var(--text-3); border: 1px solid var(--line); }
.ap-uq-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-uq-m { flex: 1; min-width: 0; }
.ap-uq-name { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.ap-uq-fn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-uq-v { display: inline-flex; flex: none; }
.ap-uq-st { margin-top: 2px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-uq-bar { height: 3px; margin-top: 7px; border-radius: 3px; background: var(--bg-4); overflow: hidden; }
.ap-uq-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.ap-uq-warn { margin-top: 6px; font-size: 11.5px; color: var(--warn); line-height: 1.35; }
.ap-uq-act { display: flex; align-items: center; gap: 2px; flex: none; }
.ap-uq-it.s-done .ap-uq-bar i { background: var(--ok); }
.ap-uq-it.s-done .ap-uq-th { color: var(--ok); }
.ap-uq-it.s-error .ap-uq-bar i { background: var(--bad); }
.ap-uq-it.s-error .ap-uq-th { color: var(--bad); }
.ap-uq-it.s-error .ap-uq-st { color: var(--bad); white-space: normal; }
.ap-uq-it.s-paused .ap-uq-bar i { background: var(--warn); }
.ap-uq-it.s-paused .ap-uq-st { white-space: normal; }
.ap-uq-it.s-paused .ap-uq-th { color: var(--warn); }
.ap-uq-it.s-canceled { opacity: .5; }
.ap-uq-it.s-queued .ap-uq-st, .ap-uq-it.s-prep .ap-uq-st { color: var(--text-3); }
/* no player (body.rv-body) a fila nao pode cobrir a caixa de comentario (coluna da direita) nem os controles (embaixo):
   fica no canto de baixo do video, acima dos controles; no celular, embaixo da barra de cima */
body.rv-body .ap-uq { left: 16px; right: auto; bottom: 100px; }
@media (max-width: 760px), (max-width: 1024px) and (orientation: portrait) {
  body.rv-body .ap-uq { left: 8px; right: 8px; top: 60px; bottom: auto; width: auto; max-width: none; }
}

/* ---------- atividade ---------- */
.ap-actpop {
  position: fixed; z-index: 95; width: 400px; max-width: calc(100vw - 16px); max-height: min(580px, calc(100vh - 20px)); display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); animation: lr-pop .12s ease-out; overflow: hidden;
}
.ap-actpop-h { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--line); flex: none; }
.ap-actpop-h b { font-size: 14.5px; }
.ap-actpop-n { flex: 1; color: var(--accent-2); font-size: 12px; font-weight: 650; }
.ap-actpop-list { overflow-y: auto; padding: 6px; min-height: 0; }
.ap-ev { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 9px; background: none; color: var(--text); text-align: left; cursor: pointer; transition: background .1s; }
.ap-ev:hover { background: var(--bg-3); }
.ap-ev-av { position: relative; flex: none; display: inline-flex; }
.ap-ev-av .av { width: 32px; height: 32px; font-size: 12px; }
.ap-ev-k {
  position: absolute; right: -5px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-4); color: var(--text-2); border: 2px solid var(--bg-2);
}
.ap-ev:hover .ap-ev-k { border-color: var(--bg-3); }
.ap-ev-k .ic { width: 10px; height: 10px; stroke-width: 2.6; }
.ap-ev-k.k-approved { background: var(--ok); color: #06281b; }
.ap-ev-k.k-changes { background: var(--bad); color: #fff; }
.ap-ev-k.k-comment, .ap-ev-k.k-reply { background: var(--accent); color: #fff; }
.ap-ev-k.k-upload { background: var(--info); color: #fff; }
.ap-ev-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-ev-l { font-size: 13px; line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; }
.ap-ev-l b { color: var(--text); font-weight: 650; }
.ap-ev-v { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; background: var(--bg-4); font-size: 10.5px; font-weight: 700; color: var(--text); vertical-align: 1px; }
.ap-ev-q {
  font-size: 12.5px; color: var(--text); padding: 6px 9px; border-radius: 7px; background: var(--bg-1); border: 1px solid var(--line);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.ap-ev-m { font-size: 11.5px; color: var(--text-3); }
.ap-ev-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.ap-ev.new .ap-ev-dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(123, 108, 255, .2); }
.ap-actpop-more { display: block; width: 100%; height: 36px; margin-top: 4px; border: 0; border-radius: 8px; background: none; color: var(--accent-2); font-weight: 600; cursor: pointer; }
.ap-actpop-more:hover { background: var(--bg-3); }
.ap-actpop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--text-2); font-size: 13px; }
.ap-actpop-empty .ic { width: 30px; height: 30px; color: var(--text-3); margin-bottom: 6px; }
.ap-actpop-empty b { color: var(--text); }
.ap-skel-ev { height: 58px; margin: 6px; border-radius: 9px; }

/* ---------- compartilhar ---------- */
.ap-share-modal { width: min(600px, 100%) !important; }
.ap-tabs { display: flex; gap: 4px; padding: 3px; margin: 4px 0 16px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line); }
.ap-tabs button { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ap-tabs button > span { overflow: hidden; text-overflow: ellipsis; }
.ap-tabs button:hover { color: var(--text); }
.ap-tabs button.on { background: var(--bg-4); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.ap-tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; }
.ap-share-load { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
.ap-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ap-opt { position: relative; display: flex; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-1); cursor: pointer; transition: border-color .12s, background .12s; min-width: 0; }
.ap-opt:hover { border-color: #47475a; }
.ap-opt.on { border-color: var(--accent); background: rgba(123, 108, 255, .08); }
.ap-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-opt-ic { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--bg-3); color: var(--text-2); flex: none; transition: background .12s, color .12s; }
.ap-opt.on .ap-opt-ic { background: var(--accent); color: #fff; }
.ap-opt-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-opt-b b { font-size: 13.5px; }
.ap-opt-b small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.ap-pick { margin: -4px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); overflow: hidden; }
.ap-pick-h { display: flex; align-items: center; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); }
.ap-pick-q { flex: 1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text-3); min-width: 0; }
.ap-pick-q:focus-within { border-color: var(--accent); }
.ap-pick-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 13px; }
.ap-pick-list { max-height: 214px; overflow-y: auto; padding: 4px; }
.ap-pick-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; min-width: 0; }
.ap-pick-row:hover { background: var(--bg-3); }
.ap-pick-row input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; margin: 0; }
.ap-pick-th { width: 48px; height: 27px; border-radius: 4px; overflow: hidden; background: #050506; flex: none; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.ap-pick-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-pick-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-pick-empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 13px; }
.ap-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ap-expdate { margin-top: 8px; }
.ap-pass { position: relative; }
.ap-pass .input { padding-right: 42px; }
.ap-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 30px; height: 28px; border: 0; border-radius: 6px; background: none;
  color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ap-eye:hover { color: var(--text); background: var(--bg-3); }
.ap-passset { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg-1); font-size: 13px; color: var(--text-2); min-width: 0; }
.ap-passset span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-passset.off { color: var(--warn); }
.ap-perms { display: flex; flex-direction: column; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); padding: 2px 14px; }
.ap-perm { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 11px 0; border-top: 1px solid var(--line); }
.ap-perm:first-child { border-top: 0; }
.ap-perm-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ap-perm-t b { font-size: 13.5px; font-weight: 600; }
.ap-perm-t small { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.ap-share-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 0 18px; }
.ap-share-done { text-align: center; padding: 6px 0 20px; }
.ap-done-ic { width: 54px; height: 54px; border-radius: 50%; margin: 4px auto 12px; display: flex; align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok); }
.ap-done-ic .ic { width: 26px; height: 26px; stroke-width: 2.4; }
.ap-share-done h3 { margin: 0; font-size: 17px; font-weight: 700; }
.ap-share-done > p { margin: 6px 0 18px; font-size: 13px; }
.ap-linkbox { display: flex; gap: 8px; }
.ap-linkbox .input { flex: 1; min-width: 0; font-size: 12.5px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.ap-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--bg-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.ap-chip.bad { background: var(--bad-bg); color: var(--bad); }
.ap-done-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ap-links { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; }
.ap-link { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-1); }
.ap-link.off .ap-link-m, .ap-link.off .ap-link-ic { opacity: .6; }
.ap-link-ic { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--accent-bg); color: var(--accent-2); }
.ap-link.off .ap-link-ic { background: var(--bg-3); color: var(--text-3); }
.ap-link-m { min-width: 0; }
.ap-link-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ap-link-n b { font-size: 13.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-link-s { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ap-link-u { font-size: 11.5px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-link-a { display: flex; align-items: center; gap: 4px; }
.ap-link-confirm { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border-radius: 8px; background: var(--bad-bg); font-size: 12.5px; flex-wrap: wrap; }
.ap-link-confirm span { flex: 1; min-width: 160px; }
.ap-share-empty { padding: 28px 16px 36px; }
.ap-share-empty p { margin: 0 0 8px; }

/* ---------- janelas pequenas ---------- */
.ap-form-err { margin: 0 0 10px; }
.ap-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.ap-sw { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .22); transition: transform .1s, box-shadow .12s; }
.ap-sw:hover { transform: scale(1.1); }
.ap-sw.on { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--c); }
.ap-fpick { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; padding-bottom: 8px; }
.ap-fpick-row { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; }
.ap-fpick-row span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-fpick-row:hover { background: var(--bg-3); }
.ap-fpick-row.on { background: var(--accent-bg); }
.ap-fpick-row .ic { color: var(--text-3); }
.ap-fpick-row.on .ic { color: var(--accent-2); }

/* ---------- ajustes ---------- */
.ap-set { max-width: 880px; }
.ap-set-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; margin: -8px 0 18px; padding: 8px 0; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
.ap-set-nav a { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ap-set-nav a:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.ap-set-card { margin-bottom: 18px; scroll-margin-top: 64px; }
.ap-set-card > header { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 2px; }
.ap-set-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg-3); color: var(--accent-2); flex: none; }
.ap-set-card h2 { margin: 0; font-size: 15.5px; font-weight: 700; }
.ap-set-card header p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }
.ap-set-b { padding: 16px 20px 20px; }
.ap-saved {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; flex: none;
  background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 650; white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s;
}
.ap-saved.on { opacity: 1; transform: none; }
.ap-set-b > .field:last-child, .ap-set-b form.field { margin-bottom: 0; }
.ap-inline { display: flex; gap: 8px; }
.ap-inline .input { flex: 1; min-width: 0; }
.ap-hook-on { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(52, 211, 153, .28); background: var(--ok-bg); flex-wrap: wrap; }
.ap-hook-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); flex: none; }
.ap-hook-on > div:nth-child(2) { flex: 1; min-width: 170px; display: flex; flex-direction: column; }
.ap-hook-on small { color: var(--text-2); font-size: 12px; }
.ap-hook-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-set-sw { margin: 16px 0 0; }
.ap-sto-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ap-sto-big { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.ap-sto-pct { font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ap-sto-pct.warn { color: var(--warn); }
.ap-sto-pct.bad { color: var(--bad); }
.ap-sto-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--bg-4); gap: 2px; }
.ap-sto-bar i { display: block; height: 100%; min-width: 3px; }
.ap-sto-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; }
.ap-sto-legend a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); min-width: 0; }
.ap-sto-legend a:hover { color: var(--text); text-decoration: none; }
.ap-sto-h { margin: 22px 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.ap-big { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ap-big-r { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.ap-big-r:first-child { border-top: 0; }
.ap-big-r:hover { background: #16161b; }
.ap-big-ic { color: var(--text-3); display: inline-flex; }
.ap-big-n { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--text); }
.ap-big-n > span, .ap-big-n > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-big-n > small { color: var(--text-3); font-size: 11.5px; }
.ap-big-n:hover { text-decoration: none; color: #fff; }
.ap-big-s { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.ap-big-del { color: var(--text-3); }
.ap-big-del:hover { color: var(--bad); }
.ap-set-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ap-unit { position: relative; flex: 1; min-width: 0; }
.ap-unit .input { padding-right: 42px; }
.ap-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 12.5px; pointer-events: none; }
.ap-clean .ap-perm { padding-top: 22px; border: 0; }
.ap-clean-t { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.ap-danger { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 22px; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255, 95, 109, .26); background: rgba(255, 95, 109, .05); flex-wrap: wrap; }
.ap-danger > div { display: flex; flex-direction: column; min-width: 0; }
.ap-danger small { color: var(--text-2); font-size: 12px; }
.ap-set-actions { display: flex; justify-content: flex-end; }

/* ---------- entrar / configurar ---------- */
.ap-auth {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px;
  background: radial-gradient(900px 520px at 50% -8%, rgba(123, 108, 255, .2), transparent 62%), radial-gradient(640px 420px at 88% 110%, rgba(123, 108, 255, .08), transparent 60%), var(--bg);
}
.ap-auth-card { width: min(404px, 100%); padding: 30px 28px 26px; border-radius: 18px; background: rgba(24, 24, 29, .94); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: lr-pop .18s ease-out; }
.ap-auth-wait { display: flex; align-items: center; justify-content: center; min-height: 220px; }
.ap-auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.ap-auth-logo svg { width: 36px; height: 36px; filter: drop-shadow(0 6px 18px rgba(123, 108, 255, .45)); }
.ap-auth-h { margin: 0; text-align: center; font-size: 21px; font-weight: 750; letter-spacing: -.015em; }
.ap-auth-p { margin: 6px 0 22px; text-align: center; color: var(--text-2); font-size: 13.5px; }
.ap-auth-form .btn-block { margin-top: 6px; }
.ap-auth-err { margin: -2px 0 12px; padding: 9px 12px; border-radius: 8px; background: var(--bad-bg); }
.ap-auth-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }
.ap-auth-foot { display: flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--text-3); font-size: 12.5px; }
.ap-auth-foot button { border: 0; background: none; color: var(--text-3); cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 12.5px; }
.ap-auth-foot button:hover { color: var(--text); }
.ap-auth-foot button.on { color: var(--text); font-weight: 650; }
.ap-meter { height: 4px; border-radius: 4px; background: var(--bg-4); overflow: hidden; margin-top: 2px; }
.ap-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.ap-meter i.lv1 { background: var(--bad); }
.ap-meter i.lv2 { background: var(--warn); }
.ap-meter i.lv3 { background: #a3d65c; }
.ap-meter i.lv4 { background: var(--ok); }

/* ---------- carregando / erro / auxiliares ---------- */
.ap-skc { min-width: 0; }
.ap-skc-img { aspect-ratio: 16 / 9; border-radius: 10px; }
.ap-skc-p .ap-skc-img { border-radius: 12px; }
.ap-skc-l1 { height: 14px; width: 68%; margin-top: 12px; }
.ap-skc-l2 { height: 12px; width: 42%; margin-top: 8px; }
.ap-err { min-height: 50vh; }
.ap-err p { margin: 0; max-width: 460px; }
.ap-err-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.ap-file-in { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
.ap-probe { position: fixed; left: 0; bottom: 0; width: 64px; height: 36px; opacity: .01; pointer-events: none; z-index: -1; }

/* ---------- telas menores ---------- */
@media (max-width: 1100px) {
  .ap-search { width: 200px; }
  .ap-vr { grid-template-columns: 26px 72px minmax(0, 1fr) 128px 60px 60px 88px 34px; }
  .ap-vr > :nth-child(7) { display: none; }
}
@media (max-width: 900px) {
  .ap-side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease;
    box-shadow: 0 0 60px rgba(0, 0, 0, .6);
  }
  .ap-drawer .ap-side { transform: none; }
  .ap-scrim { position: fixed; inset: 0; z-index: 65; display: block; background: rgba(5, 5, 8, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .ap-drawer .ap-scrim { opacity: 1; pointer-events: auto; }
  .ap-side-x { display: inline-flex; }
  .ap-burger { display: inline-flex; }
  .ap-top { padding: 0 10px 0 6px; gap: 6px; }
  .ap-vr { grid-template-columns: 26px 72px minmax(0, 1fr) 120px 56px 34px; }
  .ap-vr > :nth-child(6), .ap-vr > :nth-child(7), .ap-vr > :nth-child(8) { display: none; }
}
@media (max-width: 640px) {
  .ap-page { padding: 16px 16px 76px; }
  .ap-head { margin-bottom: 18px; align-items: flex-start; }
  .ap-h1 { font-size: 19px; }
  .ap-crumb:not(.cur), .ap-crumb-sep { display: none; }
  .ap-crumb-back { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--text-2); border-radius: 6px; flex: none; }
  .ap-crumb-back:hover { background: var(--bg-3); color: var(--text); }
  .ap-search { display: none; }
  .ap-searching .ap-search { display: flex; position: absolute; left: 8px; right: 8px; top: 8px; width: auto; z-index: 3; background: var(--bg-1); }
  .ap-search-btn:not([hidden]) { display: inline-flex; }
  .ap-top-r { gap: 6px; }
  .ap-act { width: 36px; padding: 0; }
  .ap-act .ap-act-l { display: none; }
  .ap-pgrid { grid-template-columns: 1fr; gap: 14px; }
  .ap-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .ap-vc-when { display: none; }
  .ap-vc-m { gap: 8px; }
  .ap-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ap-fc { height: 56px; gap: 10px; padding-left: 10px; }
  .ap-fc-ic { width: 30px; height: 30px; }
  /* celular: titulo + grade/lista + nova pasta numa linha; filtro e ordem dividem a linha de baixo */
  .ap-tb { gap: 8px; }
  .ap-tb-r { display: contents; }
  .ap-tb-t { flex: 1; order: 0; }
  .ap-tb [data-view] { order: 1; }
  .ap-tb [data-newfolder] { order: 2; width: 34px; padding: 0; }
  .ap-tb [data-newfolder] span { display: none; }
  .ap-tb .ap-selectw { order: 3; flex: 1 1 calc(50% - 4px); min-width: 0; }
  .ap-tb .ap-select { width: 100%; min-width: 0; }
  .ap-vr { grid-template-columns: 22px 64px minmax(0, 1fr) 30px; gap: 10px; padding-left: 10px; }
  .ap-vr > :nth-child(4), .ap-vr > :nth-child(5) { display: none; }
  .ap-vr-th { width: 64px; }
  .ap-tb.selmode > .ap-selbar { flex-wrap: nowrap; gap: 4px; padding-left: 10px; }
  .ap-selbar .btn > span { display: none; }
  .ap-selbar .btn { width: 32px; padding: 0; flex: none; }
  .ap-uq { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
  .ap-grid2, .ap-grid3, .ap-set-split, .ap-scope { grid-template-columns: 1fr; }
  .ap-set-b { padding: 14px 16px 18px; }
  .ap-set-card > header { padding: 16px 16px 2px; }
  .ap-inline { flex-wrap: wrap; }
  .ap-big-del span { display: none; }
  .ap-auth-card { padding: 26px 18px 22px; }
  .ap-tabs button > .ic { display: none; }
  .ap-link { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 10px 10px 12px; }
  .ap-link-ic { display: none; }
  .ap-first { padding: 44px 16px 40px; }
  .ap-steps { flex-direction: column; gap: 10px; align-items: flex-start; }
}
/* tela de toque: sem "passar o mouse"; caixas de selecao so no modo selecao (menu do cartao > Selecionar) */
@media (hover: none) {
  .ap-pc .ap-more, .ap-vc .ap-more, .ap-fc .ap-more { opacity: 1; }
  .ap-vc-ck { opacity: 0; pointer-events: none; }
  .ap-selecting .ap-vc-ck { opacity: 1; pointer-events: auto; }
  .ap-vc-ver, .ap-vc:hover .ap-vc-ver { transform: none; }
  .ap-selecting .ap-vc-ver { transform: translateX(30px); }
}
