/* Componentes do app, construídos sobre os tokens de tokens.css. */

#app { min-height: 100%; }
.spacer { flex: 1; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faint { color: var(--faint); }
.hint { color: var(--dim); font-size: 14px; margin: 8px 0; }
.hint.center, .center { text-align: center; }
.count { font-family: var(--ui); color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 8px; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--edge-hi); color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 13.5px; letter-spacing: -0.01em; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); border-color: var(--edge-top); }
.btn.primary { background: var(--y); border-color: transparent; color: var(--on-y); }
.btn.primary:hover:not(:disabled) { background: var(--y-hi); border-color: transparent; }
.btn.danger { background: var(--off); border-color: transparent; color: var(--white); }
.btn.danger.ghost { background: transparent; color: var(--off); }
.btn.danger.ghost:hover:not(:disabled) { background: rgba(255, 59, 48, 0.1); border-color: transparent; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; gap: 6px; }
.btn.block { width: 100%; height: 48px; font-size: 15px; margin-top: 6px; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: var(--r-tool);
  color: var(--dim); transition: background 0.2s, color 0.2s;
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.icon-btn.on { color: var(--y); background: var(--y-wash); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.lg { width: 40px; height: 40px; border-radius: 50%; background: var(--t2); border: 1px solid var(--edge-hi); color: var(--white); box-shadow: var(--sheen); transition: background 0.2s, border-color 0.2s; }
/* Barras do pause mais cheias, para pesar o mesmo que o triângulo. */
.icon-btn.lg svg { stroke-width: 3; }
/* Só o triângulo ganha o ajuste óptico para a direita; o pause fica no centro exato. */
.icon-btn.lg.play svg { stroke-width: 2; transform: translateX(1px); }
.icon-btn.lg:hover:not(:disabled) { background: var(--t3); border-color: var(--edge-top); color: var(--white); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: var(--pill);
  background: var(--t2); border: 1px solid var(--edge-hi);
  font-family: var(--display); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: border-color 0.2s;
}
.chip-btn:hover:not(.static) { border-color: var(--edge-top); }
.chip-btn.on { color: var(--white); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.chip-btn.warn { color: var(--y); border-color: var(--y-line); background: var(--y-wash); }
.chip-btn.static { cursor: default; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 26px; }

.link-btn { color: var(--dim); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill); border: 1px solid var(--edge-hi); color: var(--soft); font-size: 12.5px; white-space: nowrap; }
.pill.ok { color: var(--on); border-color: rgba(78, 199, 127, 0.35); background: rgba(78, 199, 127, 0.08); }
.pill.warn { color: var(--y); border-color: var(--y-line); background: var(--y-wash); }
.badge { display: inline-block; padding: 1px 8px; border-radius: var(--pill); background: var(--t3); color: var(--soft); font-family: var(--display); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge.accent { background: var(--y); color: var(--on-y); }
.tag { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--edge); border-radius: var(--pill); padding: 0 7px; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: var(--on-y); font-family: var(--display); font-weight: 700; flex: none; letter-spacing: -0.02em; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.s-in_progress.status-dot, .s-in_progress .status-dot { background: var(--white); }
.s-needs_review.status-dot, .s-needs_review .status-dot { background: var(--y); box-shadow: 0 0 8px rgba(248, 177, 51, 0.8); }
.s-changes_requested.status-dot, .s-changes_requested .status-dot { background: var(--off); box-shadow: 0 0 8px rgba(255, 59, 48, 0.7); }
.s-approved.status-dot, .s-approved .status-dot { background: var(--on); box-shadow: 0 0 8px rgba(78, 199, 127, 0.7); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--pill); border: 1px solid var(--edge-hi); color: var(--soft); font-size: 13px; white-space: nowrap; transition: border-color 0.2s; }
.status-pill:hover:not(:disabled) { border-color: var(--edge-top); }
.status-pill:disabled { opacity: 1; }
.status-pill.s-approved { color: var(--on); border-color: rgba(78, 199, 127, 0.35); background: rgba(78, 199, 127, 0.08); }
.status-pill.s-needs_review { color: var(--y); border-color: var(--y-line); background: var(--y-wash); }
.status-pill.s-changes_requested { color: var(--off); border-color: rgba(255, 59, 48, 0.4); background: rgba(255, 59, 48, 0.1); }
.status-pill.s-in_progress { color: var(--white); }

.seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--t0); border: 1px solid var(--edge); flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border-radius: var(--pill); color: var(--dim); font-size: 13px; display: inline-grid; place-items: center; transition: color 0.2s, background 0.2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--t3); color: var(--white); }
.seg.icons button { padding: 0 10px; }

.switch { appearance: none; width: 34px; height: 20px; border-radius: var(--pill); background: var(--t3); position: relative; cursor: pointer; flex: none; margin: 0; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); transition: transform 0.2s, background 0.2s; }
.switch:checked { background: var(--y); }
.switch:checked::after { transform: translateX(14px); background: var(--on-y); }
.switch-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; cursor: pointer; }
.switch-text { flex: 1; display: flex; flex-direction: column; color: var(--text); }
.switch-text small { color: var(--dim); font-size: 13px; }

/* ---------- Formulários ---------- */

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.field small { color: var(--faint); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='search'], input[type='datetime-local'], textarea {
  width: 100%; background: var(--t0); border: 1px solid var(--edge-hi); border-radius: var(--r-field); padding: 10px 14px; outline: none; color: var(--text);
  transition: border-color 0.2s;
}
input:focus, textarea:focus { border-color: var(--y); }
/* Campos de texto já mostram o foco pela borda: o contorno geral ficaria dobrado. */
input:not([type='checkbox']):not([type='range']):focus-visible, textarea:focus-visible { outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: none; display: block; }
.form-error { color: var(--off); font-size: 14px; margin: 0 0 12px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.actions.between { justify-content: space-between; }
.dialog-text { color: var(--soft); margin-bottom: 16px; }

/* ---------- Estados ---------- */

.spinner-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px; color: var(--dim); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--t3); border-top-color: var(--y); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-center { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.empty { text-align: center; padding: 64px 20px; max-width: 440px; margin: 0 auto; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--y-wash); border: 1px solid rgba(248, 177, 51, 0.25); color: var(--y); margin-bottom: 18px; }
.empty h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.empty-body { color: var(--dim); display: grid; gap: 18px; justify-items: center; }
.empty-body b { color: var(--soft); }

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 300; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--t3); border: 1px solid var(--edge-top); color: var(--white); padding: 10px 16px; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8); font-size: 14px; line-height: 1.4; text-align: center; animation: rise 0.25s var(--ease-out); }
.toast.error { border-color: rgba(255, 59, 48, 0.6); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), inset 3px 0 0 var(--off); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Janelas e menus ---------- */

.overlay { position: fixed; inset: 0; background: rgba(8, 8, 9, 0.72); display: grid; place-items: center; padding: 16px; z-index: 200; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(460px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--t1); border: 1px solid var(--edge); border-radius: var(--r-panel); box-shadow: var(--sheen), 0 60px 120px -60px rgba(0, 0, 0, 0.9); animation: rise 0.25s var(--ease-out); }
.modal.wide { width: min(620px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 14px 24px; }
.modal-head h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.modal-body { padding: 4px 24px 24px; overflow-y: auto; }

.dropdown { display: inline-flex; }
.dropdown > span:first-child { display: inline-flex; }
.dropdown-pop { position: fixed; z-index: 260; animation: rise 0.18s var(--ease-out); }
.context-menu { position: fixed; z-index: 250; }
.menu { min-width: 200px; max-width: min(340px, calc(100vw - 16px)); max-height: min(var(--menu-max, 70dvh), 480px); overflow-y: auto; background: var(--t2); border: 1px solid var(--edge-hi); border-radius: var(--r-card); padding: 6px; box-shadow: var(--sheen), var(--lift); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; white-space: nowrap; color: var(--text); font-size: 14px; transition: background 0.15s; }
.menu-item:hover:not(:disabled) { background: var(--t3); color: var(--white); }
.menu-item.danger { color: var(--off); }
.menu-icon { width: 16px; display: inline-grid; place-items: center; color: var(--dim); }
.menu-item.checked .menu-icon { color: var(--y); }
.menu-item.danger .menu-icon { color: inherit; }
.menu-hint { margin-left: auto; padding-left: 18px; color: var(--faint); font-size: 12.5px; }
.menu-sep { height: 1px; background: var(--edge-hi); margin: 6px 4px; }
.menu-heading { padding: 8px 10px 4px; color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

.tabs { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--t0); border: 1px solid var(--edge); margin: 18px 0; }
.tabs button { height: 30px; padding: 0 14px; border-radius: var(--pill); color: var(--dim); font-size: 13.5px; transition: color 0.2s, background 0.2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--t3); color: var(--white); }
.group { border-top: 1px solid var(--edge); padding: 16px 0 6px; }
.group h3 { font-family: var(--ui); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.row-field { display: flex; align-items: center; gap: 8px; padding: 7px 0; flex-wrap: wrap; }
.row-label { width: 92px; display: inline-flex; align-items: center; gap: 8px; color: var(--soft); flex: none; }
.row-field input.grow { width: auto; min-width: 120px; height: 36px; padding: 0 14px; }

/* ---------- Tabelas ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--t0); }
.table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.table th { text-align: left; font-family: var(--ui); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--edge); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--edge); color: var(--soft); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background 0.15s; }
.table tbody tr:hover { background: var(--t1); }
.table tbody tr.selected { background: var(--y-wash); box-shadow: inset 2px 0 0 var(--y); }
.table tbody tr.drop { outline: 2px solid var(--y); outline-offset: -2px; }
.table .num { text-align: right; font-size: 13.5px; }
.table td.strong { color: var(--white); font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.table td.strong svg { color: var(--dim); vertical-align: -2px; margin-right: 4px; }
.table td.strong small { font-family: var(--ui); color: var(--faint); font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.table tr.dim td { opacity: 0.5; }
/* A coluna do nome fica com o espaço que sobra e corta o texto com reticências. */
.table.rows td.col-name { width: 100%; max-width: 0; min-width: 200px; }
.name-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.name-cell .badge { flex: none; }
.row-thumb { width: 60px; flex: none; }
.row-thumb .thumb { border-radius: 6px; }
.row-thumb .thumb-badge, .row-thumb .thumb-uploading span { display: none; }
.row-thumb .thumb svg { width: 18px; height: 18px; margin: 0; }

/* Com menos largura, saem primeiro as colunas menos consultadas (em vez de rolar a tabela de lado). */
@media (max-width: 1320px) { .table .col-date { display: none; } }
@media (max-width: 1160px) { .table .col-size { display: none; } }
@media (max-width: 1040px) { .table .col-duration { display: none; } }
@media (max-width: 900px) { .table .col-duration { display: table-cell; } }
@media (max-width: 700px) { .table .col-duration, .table .col-extra { display: none; } }
@media (max-width: 520px) { .table .col-comments { display: none; } }

/* ---------- Marca e telas de entrada ---------- */

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; height: 26px; width: auto; user-select: none; }
.gate-card .brand img { height: 30px; }
/* Isotipo: assinatura e botão de voltar nas telas internas. */
.mark { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--r-tool); transition: background 0.2s; }
.mark img { display: block; height: 22px; width: auto; user-select: none; transition: transform 0.2s var(--ease-out); }
a.mark:hover { background: rgba(255, 255, 255, 0.07); }
a.mark:hover img { transform: scale(1.08); }
.mark.static { width: auto; height: auto; place-items: start; }
.gate-card .mark img { height: 34px; }
.share-head .mark img { height: 28px; }
.gate { position: relative; min-height: 100dvh; display: grid; place-items: center; padding: 20px; overflow: clip; }
/* A luz do estúdio e a diagonal de 45° da marca, só nas telas de entrada. */
.gate::before { content: ''; position: absolute; width: 620px; height: 520px; right: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 177, 51, 0.3), rgba(248, 177, 51, 0) 70%); filter: blur(90px); pointer-events: none; }
.gate::after { content: ''; position: absolute; width: 1400px; height: 1px; left: 30%; top: 70%; transform: rotate(-45deg); transform-origin: left center; background: linear-gradient(90deg, rgba(248, 177, 51, 0), rgba(248, 177, 51, 0.35) 40%, rgba(248, 177, 51, 0)); pointer-events: none; }
.gate-card { position: relative; z-index: 1; width: min(420px, 100%); background: linear-gradient(180deg, rgba(38, 38, 41, 0.62), rgba(22, 22, 24, 0.82)); border: 1px solid var(--edge); border-radius: 28px; padding: 32px; box-shadow: var(--sheen), 0 60px 120px -60px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.gate-card h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 28px 0 10px; }
.gate-card > p { color: var(--soft); margin-bottom: 20px; }
.gate-card form { margin-top: 22px; }
.gate-card > .gate-foot { margin: 18px 0 0; text-align: center; color: var(--faint); font-size: 13px; }

/* ---------- Projetos ---------- */

.home-bar { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 clamp(16px, 4vw, 40px); }
.home-main { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 96px; }
.who { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px 0 5px; border-radius: var(--pill); color: var(--soft); font-size: 14px; border: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.who:hover:not(:disabled) { border-color: var(--edge-hi); color: var(--white); }
.who:disabled { opacity: 1; }

.finder-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; min-height: 36px; }
.finder-title { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.finder-count { color: var(--dim); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.size-s { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.grid.size-l { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { position: relative; display: block; background: var(--t1); border: 1px solid var(--edge); border-radius: var(--r-card); overflow: hidden; cursor: pointer; user-select: none; transition: border-color 0.25s; }
.card:hover { border-color: var(--edge-top); }
.card.selected { border-color: var(--y); box-shadow: 0 0 0 1px var(--y); }
.card.drop { border-color: var(--y); box-shadow: 0 0 0 2px var(--y), 0 0 40px rgba(248, 177, 51, 0.25); }
.card.dim { opacity: 0.55; }
.grid.size-l .card { border-radius: var(--r-panel); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb.folder { background: linear-gradient(180deg, var(--t2), var(--t1)); color: var(--y); }
.thumb-icon { color: var(--faint); }
.thumb-scrub { position: absolute; inset: 0; background: #000; display: grid; place-items: center; }
.thumb-scrub i { background-repeat: no-repeat; }
.thumb-scrubline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--y); box-shadow: 0 0 10px rgba(248, 177, 51, 0.8); }
.thumb-badge { position: absolute; padding: 1px 8px; border-radius: var(--pill); background: rgba(18, 18, 20, 0.82); border: 1px solid var(--edge-hi); color: var(--white); font-family: var(--display); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.thumb-badge.br { right: 8px; bottom: 8px; }
.thumb-badge.tl { left: 8px; top: 8px; }
.thumb-badge.accent { background: var(--y); border-color: transparent; color: var(--on-y); font-weight: 700; }
.thumb-uploading { position: absolute; inset: 0; background: rgba(14, 14, 16, 0.8); display: grid; place-content: center; gap: 10px; text-align: center; font-size: 13px; color: var(--soft); padding: 0 16%; }
.bar { height: 4px; border-radius: 4px; background: var(--t3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--y); border-radius: 4px; transition: width 0.2s; }
.card-info { padding: 12px 14px 10px; }
.card-name { font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.015em; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; min-height: 28px; }
.meta-comments { display: inline-flex; align-items: center; gap: 4px; }
.card-more { margin-right: -6px; }
.drop-hint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(248, 177, 51, 0.92); color: var(--on-y); font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; pointer-events: none; }
.card.project .card-name { font-size: 19px; letter-spacing: -0.025em; }

/* ---------- Equipe ---------- */

.team-main { max-width: 1080px; }
/* O isotipo do cabeçalho alinha com o título, e não com a área clicável em volta dele. */
.home-bar > .mark { margin-left: -8px; }
.team-lead { color: var(--dim); font-size: 14px; max-width: 64ch; margin: -6px 0 22px; }
.table.team tbody tr { cursor: default; }
.table.team td { padding-top: 12px; padding-bottom: 12px; }
.table.team td.col-name { width: 100%; max-width: 0; min-width: 240px; }
.table.team .col-actions { width: 1%; padding-left: 0; text-align: right; }
.table.team tr.off td:not(.col-actions) { opacity: 0.5; }
.person { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.person-name { color: var(--white); font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.person-name .tag { margin-left: 8px; vertical-align: 1px; }
.person-name .tag.root { color: var(--soft); border-color: var(--edge-top); }
.row-lock { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--faint); cursor: help; }
.person small { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.person-tags { display: none; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.team-section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; gap: 4px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.03em; }
.table.invites .col-actions { padding-right: 12px; }
.invite-history { margin-top: 22px; }
.invite-history h3 { font-weight: 400; margin-bottom: 4px; }
.invite-history ul { list-style: none; margin: 0; padding: 0; }
.invite-history li { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; padding: 10px 2px; border-bottom: 1px solid var(--edge); color: var(--dim); font-size: 13.5px; }
.invite-history li .grow { flex: 1 1 220px; }
.invite-history .who { color: var(--soft); }
.invite-history .link-btn { margin-top: 12px; }
@media (max-width: 1000px) { .table.team .col-created { display: none; } }
@media (max-width: 720px) {
  .table.team .col-role, .table.team .col-status, .table.team .col-seen, .table.invites .col-left, .table.invites .col-uses, .table.invites .col-by { display: none; }
  .table.team td.col-name { min-width: 0; }
  .person-tags { display: flex; }
}

/* ---------- Página do projeto ---------- */

.project-page { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100dvh; }
.sidebar { background: var(--t0); border-right: 1px solid var(--edge); display: flex; flex-direction: column; min-height: 0; padding: 12px 10px; }
.sidebar > .mark { margin: 0 0 2px 2px; }
.project-head { display: flex; align-items: center; gap: 12px; padding: 10px 6px 16px 8px; }
.project-head .grow { display: flex; flex-direction: column; }
.project-head b { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; color: var(--white); }
.project-head small { color: var(--y); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.project-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--y); color: var(--on-y); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: -0.03em; flex: none; }
.tree { flex: 1; overflow-y: auto; min-height: 0; }
.tree-row { display: flex; align-items: center; gap: 2px; width: 100%; min-height: 34px; border-radius: 8px; color: var(--dim); text-align: left; padding-right: 8px; font-size: 14px; transition: background 0.15s, color 0.15s; }
.tree-row:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.tree-row.on { background: var(--t2); color: var(--white); box-shadow: inset 2px 0 0 var(--y); }
.tree-row.on svg { color: var(--y); }
.tree-row.drop { outline: 2px solid var(--y); outline-offset: -2px; }
.tree-link { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 6px 0; }
.twisty { width: 18px; height: 24px; display: grid; place-items: center; color: var(--faint); flex: none; }
.twisty svg { transition: transform 0.2s var(--ease); color: inherit !important; }
.twisty.open svg { transform: rotate(90deg); }
.twisty.none { visibility: hidden; }
.side-links { border-top: 1px solid var(--edge); padding-top: 10px; margin-top: 10px; }
.side-links .tree-row { gap: 10px; padding: 6px 10px; }
.tree.picker { max-height: 46dvh; border: 1px solid var(--edge-hi); border-radius: var(--r-field); background: var(--t0); padding: 6px; }
.tree.picker .tree-row { gap: 10px; }
.tree.picker .tree-row.on { background: var(--y-wash); color: var(--white); }
.finder { position: relative; overflow-y: auto; padding: 26px clamp(16px, 3vw, 36px) 110px; min-width: 0; }
.nav-toggle, .nav-scrim { display: none; }

.crumbs { display: flex; align-items: center; gap: 8px; color: var(--dim); min-width: 0; font-size: 14px; }
.crumbs a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 24ch; transition: color 0.2s; }
.crumbs a:hover { color: var(--white); }
.crumbs .sep { color: var(--faint); }
.crumbs.big { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; flex-wrap: wrap; }
.crumbs.big a.current { color: var(--white); }
.search { width: 240px !important; height: 36px; padding: 0 14px !important; border-radius: var(--pill) !important; }

.drop-area { position: absolute; inset: 12px; border: 1px dashed var(--y); border-radius: 28px; background: rgba(248, 177, 51, 0.08); color: var(--y); display: grid; place-content: center; justify-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; pointer-events: none; z-index: 5; }
.selection-bar { position: fixed; left: calc(50% + 136px); bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: var(--t2); border: 1px solid var(--edge-hi); border-radius: var(--pill); box-shadow: var(--sheen), var(--lift); z-index: 50; max-width: calc(100vw - 24px); overflow-x: auto; animation: rise 0.25s var(--ease-out); }
.selection-count { color: var(--soft); font-size: 13.5px; padding: 0 10px 0 2px; white-space: nowrap; }

.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.versions li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--t0); border: 1px solid var(--edge); border-radius: var(--r-card); }
.versions .grow { display: flex; flex-direction: column; }
.versions b { color: var(--white); }
.versions small { color: var(--dim); font-size: 12.5px; }
.version-thumb { width: 68px; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; flex: none; }
.version-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Bandeja de uploads ---------- */

.tray { position: fixed; right: 18px; bottom: 18px; width: min(360px, calc(100vw - 32px)); background: var(--t2); border: 1px solid var(--edge-hi); border-radius: var(--r-panel); box-shadow: var(--sheen), var(--lift); z-index: 60; overflow: hidden; }
.tray header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.tray header > svg:first-child { color: var(--y); }
.tray header b { flex: 1; font-size: 14px; color: var(--white); }
.tray header > svg:last-child { transition: transform 0.2s var(--ease); transform: rotate(180deg); color: var(--dim); }
.tray.open header > svg:last-child { transform: none; }
.tray-pct { color: var(--y); font-family: var(--display); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.tray ul { list-style: none; margin: 0; padding: 6px 10px 10px; max-height: 240px; overflow-y: auto; }
.tray li { padding: 7px 6px; }
.tray-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 5px; }
.tray-row small { color: var(--dim); font-size: 12px; white-space: nowrap; }
.tray li.failed small { color: var(--off); white-space: normal; }
.tray > .bar { border-radius: 0; height: 2px; }

/* ---------- Revisão ---------- */

.viewer-page { height: 100dvh; display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--edge); background: var(--t0); }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.viewer-name { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; min-width: 60px; line-height: 1.3; }
.viewer-bar .crumbs { flex-shrink: 10; font-size: 13.5px; }
.paging { display: inline-flex; align-items: center; color: var(--dim); font-family: var(--display); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* A largura do painel vem da divisória arrastável; os limites daqui valem em qualquer tamanho de janela. */
.review { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, var(--comments-w, 380px), max(380px, 100% - 640px)); }
.review-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #000; }
.review-main:fullscreen { width: 100vw; height: 100vh; }
/* Em tela cheia o quadro ocupa tudo o que sobra, também nas telas estreitas (onde ele tem altura fixa). */
.review-main:fullscreen .stage { flex: 1; height: auto; }
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.media.audio { opacity: 0; pointer-events: none; }
.stage-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: var(--soft); padding: 24px; }
.stage-msg > svg { color: var(--y); }
.stage-msg.cover { background: #000; z-index: 3; }
.stage-msg.passive { pointer-events: none; }
.stage-msg small { color: var(--dim); }
.overlay-box { position: absolute; pointer-events: none; }
.overlay-svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.9)); }
.overlay-svg.drawing { pointer-events: all; cursor: crosshair; touch-action: none; }
/* Convite para tocar: vidro cinza sobre a imagem, sem cor de marca, para não brigar com o vídeo. */
.big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; padding-left: 3px; color: var(--white); background: rgba(38, 38, 41, 0.55); border: 1px solid rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 34px -14px rgba(0, 0, 0, 0.8); transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out); }
/* Um traço fino na cor do ícone arredonda as pontas do triângulo. */
.big-play svg { stroke-width: 2.4; }
.big-play:hover { background: rgba(60, 60, 59, 0.7); border-color: rgba(255, 255, 255, 0.3); transform: translate(-50%, -50%) scale(1.05); }
.big-play:active { transform: translate(-50%, -50%) scale(0.97); }
.drawbar { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: rgba(18, 18, 20, 0.86); border: 1px solid var(--edge-hi); border-radius: var(--pill); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--sheen), var(--lift); z-index: 4; max-width: calc(100% - 16px); overflow-x: auto; }
.drawbar .icon-btn { border-radius: 50%; }
.drawbar-sep { width: 1px; height: 20px; background: var(--edge-top); margin: 0 5px; flex: none; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid rgba(255, 255, 255, 0.25); flex: none; margin: 0 3px; transition: transform 0.2s var(--ease-out); }
.swatch.on { border-color: var(--t0); outline: 2px solid var(--white); transform: scale(1.1); }

.seek { position: relative; height: 34px; padding-top: 10px; cursor: pointer; touch-action: none; background: var(--ground); }
.seek-track { position: relative; height: 4px; background: var(--t3); margin: 0 14px; border-radius: 3px; }
.seek:hover .seek-track { height: 6px; margin-top: -1px; }
.seek-buffer, .seek-played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.seek-buffer { background: var(--edge-top); }
.seek-played { background: var(--y); }
.seek-head { position: absolute; top: -5px; width: 3px; height: 14px; margin-left: -1.5px; background: var(--white); border-radius: 2px; pointer-events: none; box-shadow: 0 0 10px rgba(248, 177, 51, 0.8); }
.seek-range { position: absolute; top: -4px; bottom: -4px; background: rgba(255, 255, 255, 0.14); border-top: 1px solid var(--white); border-bottom: 1px solid var(--white); }
.seek-handle { position: absolute; top: -4px; bottom: -4px; width: 8px; background: var(--white); border-radius: 3px; cursor: ew-resize; }
.seek-handle.in { left: -4px; }
.seek-handle.out { right: -4px; }
.seek-marks { position: relative; height: 12px; margin: 5px 14px 0; }
.seek-mark { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 5px; border: 2px solid var(--ground); box-sizing: content-box; transition: transform 0.2s var(--ease-out); }
.seek-mark:hover { transform: scale(1.3); }
.seek-mark.done { opacity: 0.35; }
.seek-mark.active { border-color: var(--white); z-index: 1; }
.seek-tip { position: absolute; bottom: 38px; transform: translateX(-50%); display: grid; justify-items: center; gap: 5px; padding: 5px 5px 4px; background: rgba(18, 18, 20, 0.9); border: 1px solid var(--edge-hi); border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--white); pointer-events: none; z-index: 5; box-shadow: var(--lift); }
.seek-thumb { border-radius: 8px; background-repeat: no-repeat; }

.transport { display: flex; align-items: center; gap: 8px; padding: 4px 12px 12px; background: var(--ground); }
.transport-side { flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0; }
/* O lado esquerdo nunca encolhe abaixo dos seus botões: sem espaço, quem cede é o outro lado, e nada fica por baixo do timecode. */
.transport-side:not(.end) { min-width: max-content; }
.transport-side.end { justify-content: flex-end; }
/* Com um trecho marcado, o tempo total sai do timecode; se ainda faltar espaço, o indicador do trecho encurta com reticências em vez de cobrir o timecode. */
.transport:has(.transport-side.end .chip-btn) .timecode span { display: none; }
.transport-side.end .chip-btn, .transport-side.end .chip-btn .ellipsis { min-width: 0; }
.timecode { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--t1); border: 1px solid var(--edge); font-family: var(--display); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: border-color 0.2s; }
.timecode:hover:not(.static) { border-color: var(--edge-top); }
.timecode b { font-weight: 700; color: var(--white); letter-spacing: 0; }
.timecode span { color: var(--dim); font-weight: 500; }
.timecode svg { color: var(--dim); }
.timecode.static { cursor: default; }
.volume { display: inline-flex; align-items: center; }
.volume input { width: 0; opacity: 0; transition: width 0.2s var(--ease), opacity 0.2s; accent-color: var(--y); }
.volume:hover input, .volume:focus-within input { width: 76px; opacity: 1; margin-right: 6px; }

.comments { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--t0); border-left: 1px solid var(--edge); }
/* Divisória entre o vídeo e os comentários: uma faixa de pegar de 9px em cima da borda. */
.split { position: absolute; left: -5px; top: 0; bottom: 0; width: 9px; z-index: 5; cursor: col-resize; touch-action: none; }
.split::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: transparent; transition: background 0.2s; }
.split:hover::after, .split:focus-visible::after { background: var(--edge-top); }
.split.dragging::after { background: var(--y); }
.comments-head { display: flex; align-items: center; gap: 2px; padding: 12px 10px 10px 18px; }
.comments-head h2 { font-family: var(--ui); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); flex: 1; }
.comments-head .count { letter-spacing: 0; text-transform: none; color: var(--faint); }
.comments-list { flex: 1; overflow-y: auto; padding: 4px 10px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.comments-empty { margin: auto; text-align: center; color: var(--soft); display: grid; gap: 8px; justify-items: center; padding: 24px; }
.comments-empty > svg { color: var(--y); }
.comments-empty small { color: var(--dim); font-size: 13.5px; }
.comment { border: 1px solid transparent; border-radius: var(--r-card); padding: 11px 12px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.comment:hover { background: var(--t1); }
.comment.active { background: var(--t1); border-color: var(--edge-hi); box-shadow: inset 2px 0 0 var(--y); }
.comment.done > header, .comment.done .comment-text, .comment.done .comment-meta { opacity: 0.5; }
.comment header { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.comment-author { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.comment-index { margin-left: auto; color: var(--faint); font-family: var(--display); font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.comment-body { padding-left: 34px; margin-top: 5px; }
.comment-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.stamp { display: inline-block; padding: 1px 9px; border-radius: var(--pill); background: var(--y-wash); border: 1px solid var(--y-line); color: var(--y); font-family: var(--display); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stamp.off { background: transparent; border-color: var(--edge-hi); color: var(--faint); text-decoration: line-through; }
.has-drawing { color: var(--y); display: inline-flex; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 15px; line-height: 1.5; }
.edited { color: var(--faint); font-size: 12.5px; }
.comment-actions { display: flex; align-items: center; gap: 4px; min-height: 28px; margin-top: 4px; }
.resolve { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--edge-top); display: grid; place-items: center; color: transparent; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.resolve:hover { border-color: var(--on); color: var(--on); }
.resolve.on { background: var(--on); border-color: var(--on); color: var(--on-y); }
.resolve.static { cursor: default; }
.reply { border-left: 1px solid var(--edge-top); padding: 6px 0 2px 12px; margin-top: 8px; cursor: default; }
.reply .comment-text { padding-left: 28px; margin-top: 2px; }
.reply-form { display: grid; gap: 8px; justify-items: end; margin-top: 10px; }
.comment-edit textarea, .reply-form textarea { min-height: 64px; font-size: 14.5px; }
.comment-edit .actions { margin-top: 8px; }

.composer { position: relative; border-top: 1px solid var(--edge); padding: 12px; display: grid; gap: 8px; background: var(--t0); }
/* Puxador na borda de cima da caixa de comentário: arrastar muda a altura do campo de texto. */
.composer-grip { position: absolute; left: 0; right: 0; top: -5px; height: 9px; z-index: 2; cursor: row-resize; touch-action: none; }
.composer-grip::after { content: ''; position: absolute; left: 50%; top: 3px; width: 32px; height: 3px; margin-left: -16px; border-radius: 2px; background: var(--edge-hi); transition: background 0.2s; }
.composer-grip:hover::after, .composer-grip:focus-visible::after { background: var(--edge-top); }
.composer-grip.dragging::after { background: var(--y); }
.composer-note { display: flex; align-items: center; gap: 7px; color: var(--y); font-size: 13px; }
.composer-box { display: flex; align-items: flex-start; gap: 9px; background: var(--ground); border: 1px solid var(--edge-hi); border-radius: var(--r-field); padding: 10px 12px; transition: border-color 0.2s; }
.composer-box:focus-within { border-color: var(--y); }
.composer-box textarea { border: 0; padding: 0; background: none; border-radius: 0; min-height: min(var(--composer-h, 23px), 45dvh); line-height: 23px; }
/* O instante do comentário mora na fileira de ferramentas: a caixa fica inteira para o texto. */
.composer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 4px; }
.composer-tools .stamp { cursor: pointer; padding: 4px 11px; margin-right: 4px; }
.composer-tools .btn { margin-left: auto; }
.composer-off { border-top: 1px solid var(--edge); padding: 16px; color: var(--dim); text-align: center; font-size: 14px; }

.shortcuts { display: grid; gap: 20px; }
.shortcuts h3 { font-family: var(--ui); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--y); margin-bottom: 8px; }
.shortcut { display: flex; align-items: center; gap: 14px; padding: 5px 0; color: var(--soft); }
kbd { min-width: 84px; font-family: var(--display); font-weight: 600; font-size: 12.5px; color: var(--white); background: var(--t2); border: 1px solid var(--edge-hi); border-radius: 8px; padding: 3px 8px; text-align: center; white-space: nowrap; }

/* ---------- Comparação ---------- */

.compare-labels { display: grid; grid-template-columns: 1fr 1fr; background: var(--ground); }
.compare-labels > span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.compare-stage { flex: 1; min-height: 0; background: #000; position: relative; }
.compare-stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.compare-stage.side { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--edge); }
.compare-stage.side video { min-height: 0; height: 100%; }
.compare-stage.wipe { touch-action: none; cursor: ew-resize; }
.compare-stage.wipe video { position: absolute; inset: 0; }
.wipe-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--y); box-shadow: 0 0 14px rgba(248, 177, 51, 0.7); pointer-events: none; }
.wipe-line span { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--y); box-shadow: 0 0 40px rgba(248, 177, 51, 0.35); }
.compare-seek { flex: 3; accent-color: var(--y); min-width: 80px; }
.viewer-page.compare .transport { padding-top: 12px; }
.viewer-page.compare .transport-side { flex: none; }

/* ---------- Links de revisão ---------- */

.share-link { display: flex; gap: 8px; }
.share-link input { font-size: 14px; height: 36px; padding: 0 14px; border-radius: var(--pill); color: var(--soft); }
.share-summary { color: var(--soft); font-size: 14px; margin-top: 12px; }
.share-summary.warn { color: var(--y); }
.share-items { list-style: none; margin: 0; padding: 0; }
.share-items li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--soft); }
.share-items li > svg { color: var(--dim); }
.activity { display: grid; gap: 0; max-height: 50dvh; overflow-y: auto; }
.activity-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; color: var(--soft); border-bottom: 1px solid var(--edge); font-size: 14px; }
.activity-row b { color: var(--white); }
.activity-row i { font-style: normal; color: var(--text); }
.activity-row time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.viewed { background: var(--white); }
.dot.commented { background: var(--y); box-shadow: 0 0 8px rgba(248, 177, 51, 0.8); }
.dot.downloaded { background: var(--on); }

.share-page { max-width: 1280px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 72px; }
.share-head { display: grid; gap: clamp(28px, 5vw, 56px); margin-bottom: 32px; }
.share-title .eyebrow { margin-bottom: 18px; }
.share-title h1 { font-size: clamp(34px, 4.8vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.share-title p { color: var(--soft); margin-top: 14px; font-size: 16px; }

/* ---------- Telas estreitas ---------- */

/* Janela estreita de computador: o tempo total sai do timecode para os controles da barra caberem lado a lado. */
@media (max-width: 1040px) { .timecode span { display: none; } }

@media (max-width: 900px) {
  .wide-only { display: none; }
  .project-page { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 90; transform: translateX(-100%); transition: transform 0.25s var(--ease); }
  .nav-open .sidebar { transform: none; }
  .nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(8, 8, 9, 0.72); z-index: 80; }
  .nav-toggle { display: inline-grid; float: left; margin: -2px 6px 0 -8px; }
  .finder { padding: 16px 16px 120px; }
  .finder-title { font-size: 28px; }
  .crumbs.big { font-size: 21px; }
  .selection-bar { left: 50%; border-radius: var(--r-panel); }
  .grid, .grid.size-l { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .btn { padding: 0 12px; }

  .viewer-bar { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px 10px; }
  .viewer-bar .crumbs { display: none; }
  /* Tela do dono: quando não cabem na linha, status, comparar, baixar e compartilhar descem para uma segunda fileira, sempre à vista. */
  .viewer-bar.has-actions { flex-wrap: wrap; overflow-x: visible; }
  .viewer-bar.has-actions .viewer-name { flex: 1 1 0; }
  .viewer-bar.has-actions > .spacer { display: none; }
  .viewer-actions { margin-left: auto; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .review { display: flex; flex-direction: column; }
  .split { display: none; }
  .review-main { flex: none; }
  .stage { flex: none; height: min(46dvh, 56.25vw + 40px); }
  .comments { flex: 1; border-left: 0; border-top: 1px solid var(--edge); }
  .volume input { display: none; }
  .transport { gap: 4px; padding: 2px 8px 8px; }
  .compare-stage.side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .tray { right: 8px; bottom: 8px; }
  .gate-card { padding: 24px; border-radius: 22px; }
}

/* Celular: só o essencial na barra de reprodução (repetir e atalhos de teclado saem). */
@media (max-width: 560px) {
  .transport .opt { display: none; }
  .transport { padding: 2px 8px 10px; }
  /* Sem espaço para centralizar o timecode: ele segue os controles da esquerda. */
  .transport-side { flex: none; }
  .transport-side.end { flex: 1; }
  .timecode { height: 34px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
  .comments-head { padding-left: 14px; }
  .finder-bar .btn { height: 34px; }
}
