/* Corte Final — estética "soft gray": superfícies cinza foscas, bordas com brilho, barra de ícones escura */
:root {
  --page-a: #c4c4c4;
  --page-b: #a6a6a6;
  --win: #c2c2c2;
  --main: #bbbbbb;
  --card-a: #cacaca;
  --card-b: #c0c0c0;
  --hi: rgba(255, 255, 255, .55);
  --hi-strong: rgba(255, 255, 255, .8);
  --line: rgba(0, 0, 0, .09);
  --text: #1c1c1e;
  --muted: #555558;
  --faint: #78787c;
  --ink: #232325;
  --rail: #262628;
  --review: #3b56b0;
  --changes: #b0402a;
  --approved: #24794f;
  --pending: #69696d;
  --mint: #2f9a68;
  --r-xl: 26px;
  --r-lg: 18px;
  --r: 13px;
  --r-sm: 10px;
  --raise: 0 1px 0 rgba(255, 255, 255, .65) inset, 0 12px 28px -14px rgba(0, 0, 0, .35);
  --raise-sm: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 12px -6px rgba(0, 0, 0, .25);
  --inset: inset 0 1px 3px rgba(0, 0, 0, .10), 0 1px 0 rgba(255, 255, 255, .45);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 90% at 15% 0%, var(--page-a), var(--page-b) 70%) fixed;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
svg { flex: none; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden { display: none !important; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer; white-space: nowrap; text-decoration: none;
  background: linear-gradient(rgba(255,255,255,.34), rgba(255,255,255,.18));
  border: 1px solid var(--hi); box-shadow: var(--raise-sm); color: var(--text);
  transition: background .15s, transform .06s, box-shadow .15s;
}
.btn:hover { background: linear-gradient(rgba(255,255,255,.48), rgba(255,255,255,.28)); }
.btn:active { transform: translateY(1px); box-shadow: var(--inset); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 17px; height: 17px; }
.btn.primary { background: linear-gradient(#38383b, var(--ink)); color: #f4f4f5; border-color: #1a1a1b; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 10px 20px -10px rgba(0,0,0,.6); }
.btn.primary:hover { background: linear-gradient(#444447, #2b2b2d); }
.btn.approve { background: linear-gradient(#2e8a5c, var(--approved)); color: #fff; border-color: #1d6040; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 20px -10px rgba(20,80,50,.7); }
.btn.changes { color: var(--changes); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { background: rgba(255,255,255,.22); color: var(--text); }
.btn.danger { color: var(--changes); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.dashed { border-style: dashed; border-color: rgba(0,0,0,.18); box-shadow: none; background: transparent; justify-content: flex-start; }

/* ---------- campos ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(0,0,0,.08); box-shadow: var(--inset);
}
textarea.input { height: auto; min-height: 76px; padding: 11px 14px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: rgba(0,0,0,.35); background: rgba(255,255,255,.32); }
.input::placeholder { color: var(--faint); }
.err { color: var(--changes); font-size: 13px; min-height: 1em; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 44px; }

/* ---------- moldura: barra de ícones + janela ---------- */
.frame { display: flex; gap: 14px; height: 100vh; padding: 18px; }
.rail-wrap { width: 92px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.rail-shell {
  flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px; gap: 14px;
  background: rgba(255,255,255,.14); border: 1px solid var(--hi); border-radius: 30px; box-shadow: var(--raise);
}
.rail-shell.bottom { flex: none; }
.rail {
  width: 100%; background: linear-gradient(#2c2c2f, var(--rail)); border-radius: 22px; padding: 14px 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 16px 30px -12px rgba(0,0,0,.6);
}
.rail .logo { width: 52px; height: 52px; display: grid; place-items: center; color: #f2f2f2; }
.rail .logo svg { width: 30px; height: 30px; }
.rail .rule { width: 36px; height: 1px; background: rgba(255,255,255,.14); margin: 2px 0 4px; }
.rail a, .rail button {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: #e6e6e8;
  text-decoration: none; border: 0; background: none; cursor: pointer; position: relative; transition: background .15s;
}
.rail a:hover, .rail button:hover { background: rgba(255,255,255,.07); }
.rail a.on { background: linear-gradient(#545458, #424245); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 14px -6px rgba(0,0,0,.6); }
.rail svg { width: 24px; height: 24px; }
.rail .dot { position: absolute; top: 12px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #e0a04a; }
.vlabel {
  writing-mode: vertical-rl; transform: rotate(180deg); margin: 14px 0;
  font: 600 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(0,0,0,.28);
  display: flex; align-items: center; gap: 14px;
}
.vlabel::before, .vlabel::after { content: ""; width: 1px; height: 30px; background: rgba(0,0,0,.14); }

.window {
  flex: 1; min-width: 0; display: flex; position: relative;
  background: linear-gradient(#c6c6c6, var(--win)); border: 1px solid var(--hi); border-radius: var(--r-xl);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -30px rgba(0,0,0,.4);
  overflow: hidden;
}

/* ---------- barra lateral ---------- */
.sidebar { width: 312px; flex: none; padding: 22px 20px 20px 24px; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.frame.collapsed .sidebar { display: none; }
.win-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.traffic { display: flex; gap: 9px; }
.traffic i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 -2px 3px rgba(0,0,0,.25), inset 0 2px 2px rgba(255,255,255,.6), 0 1px 1px rgba(0,0,0,.15); }
.traffic i:nth-child(1) { background: #d98a8d; }
.traffic i:nth-child(2) { background: #d6bd7c; }
.traffic i:nth-child(3) { background: #8fc4a3; }
.collapse-btn { background: none; border: 0; padding: 4px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.collapse-btn:hover { color: var(--text); background: rgba(255,255,255,.2); }
.collapse-btn svg { width: 22px; height: 22px; display: block; }

.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #4a4a4d, #1f1f21); color: #f1f1f1; font-weight: 600; font-size: 19px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.35), 0 8px 18px -8px rgba(0,0,0,.6);
}
.profile b { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 18px; }
.profile b svg { width: 14px; height: 14px; }
.profile span { color: var(--faint); font-size: 14.5px; display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-label { font-size: 14px; color: var(--faint); margin: 14px 0 8px; display: flex; align-items: center; justify-content: space-between; }
.nav-label button { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed rgba(0,0,0,.3); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text); padding: 0; }
.nav-label button svg { width: 14px; height: 14px; }
.nav-item {
  display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: 14px;
  text-decoration: none; font-size: 16px; color: var(--text); border: 1px solid transparent; transition: background .15s;
}
.nav-item svg { width: 22px; height: 22px; color: #2a2a2c; }
.nav-item:hover { background: rgba(255,255,255,.16); }
.nav-item.on {
  background: linear-gradient(#d8dada, #ccd0cf); border-color: var(--hi-strong);
  box-shadow: 0 1px 0 #fff inset, 0 10px 22px -10px rgba(0,0,0,.4);
}
.cnt {
  margin-left: auto; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: grid; place-items: center;
  font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.28); box-shadow: var(--inset);
}
.sep { height: 1px; background: rgba(0,0,0,.1); box-shadow: 0 1px 0 rgba(255,255,255,.45); margin: 14px 0 4px; flex: none; }

.tree { margin-top: 10px; border: 1px solid var(--hi); background: rgba(255,255,255,.1); border-radius: 16px; padding: 8px; box-shadow: var(--inset); }
.tree a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.tree a span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree a:hover { background: rgba(255,255,255,.18); }
.tree a.on { background: rgba(0,0,0,.08); font-weight: 500; }
.tree svg { width: 19px; height: 19px; color: var(--muted); }
.tree .kids { margin: 2px 0 4px 20px; padding-left: 10px; border-left: 1.5px solid rgba(0,0,0,.16); }
.tree .kids a { font-size: 14.5px; min-height: 36px; }
.tree .empty-t { color: var(--faint); font-size: 13.5px; padding: 8px 10px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; margin: 0 5px; }

/* ---------- área principal ---------- */
.main {
  flex: 1; min-width: 0; margin: 10px 10px 10px 0; border-radius: 22px; overflow-y: auto;
  background: linear-gradient(#bebebe, var(--main)); border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.07);
}
.frame.collapsed .main, .window.solo .main { margin-left: 10px; }
.main-inner { padding: 46px 52px 90px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 42px; line-height: 1.1; font-weight: 500; letter-spacing: -.025em; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 14px; margin-bottom: 14px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--text); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h2.section { font-size: 34px; font-weight: 500; letter-spacing: -.02em; margin: 54px 0 16px; }

/* cartões de números */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.stat {
  border-radius: var(--r-lg); padding: 20px 22px 18px; display: grid; gap: 6px; text-decoration: none;
  background: linear-gradient(var(--card-a), var(--card-b)); border: 1px solid var(--hi); box-shadow: var(--raise);
  transition: transform .15s;
}
a.stat:hover { transform: translateY(-2px); }
.stat .lbl { font-size: 17px; }
.stat .big { display: flex; align-items: center; gap: 12px; font-size: 76px; line-height: 1.05; font-weight: 400; letter-spacing: -.045em; }
.pill { font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.28); color: var(--c, var(--mint)); box-shadow: var(--inset); }
.stat .sub { font-size: 13.5px; color: var(--muted); }
.see { margin-top: 14px; display: inline-flex; gap: 10px; align-items: center; height: 48px; padding: 0 18px; border-radius: 14px; border: 1px dashed rgba(0,0,0,.2); text-decoration: none; font-size: 16px; }
.see:hover { background: rgba(255,255,255,.16); }
.see svg { width: 18px; height: 18px; }

/* abas sublinhadas */
.utabs { display: flex; gap: 34px; border-bottom: 1.5px solid rgba(0,0,0,.08); margin-bottom: 20px; }
.utabs button { background: none; border: 0; padding: 0 0 12px; font-size: 17px; color: var(--faint); cursor: pointer; position: relative; }
.utabs button.on { color: var(--text); }
.utabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.75); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.utabs .count { font-size: 12px; color: var(--faint); margin-left: 6px; }

/* cartões de projeto / vídeo */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  background: linear-gradient(var(--card-a), var(--card-b)); border: 1px solid var(--hi); box-shadow: var(--raise);
  transition: transform .15s;
}
a.card:hover { transform: translateY(-2px); }
.thumb { aspect-ratio: 16/9; background: #2a2a2c center/cover no-repeat; position: relative; display: grid; place-items: center; color: #77777b; }
.card .thumb { margin: 8px 8px 0; border-radius: 12px; }
.thumb > svg { width: 30px; height: 30px; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(20,20,22,.72); padding: 1px 7px; border-radius: 6px; font-size: 11px; color: #fff; }
.card-body { padding: 12px 16px 16px; display: grid; gap: 6px; }
.card-title { font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 8px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; color: var(--c);
  background: rgba(255,255,255,.28); box-shadow: var(--inset);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-pending { --c: var(--pending); } .s-review { --c: var(--review); } .s-changes { --c: var(--changes); } .s-approved { --c: var(--approved); }

.empty {
  border-radius: var(--r-lg); padding: 56px 24px; text-align: center; color: var(--muted);
  border: 1px dashed rgba(0,0,0,.18); background: rgba(255,255,255,.06);
}
.empty h3 { color: var(--text); margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.empty p { margin: 0; }

/* lista de vídeos */
.vlist { display: grid; gap: 12px; }
.vrow {
  display: grid; grid-template-columns: 168px 1fr auto; gap: 18px; align-items: center; padding: 10px;
  border-radius: var(--r-lg); background: linear-gradient(var(--card-a), var(--card-b)); border: 1px solid var(--hi); box-shadow: var(--raise-sm);
}
.vrow .thumb { border-radius: 11px; cursor: pointer; }
.vrow h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 500; }
.vrow h3 a { text-decoration: none; } .vrow h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vrow .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.vrow .proj { font-size: 12.5px; color: var(--faint); margin-bottom: 2px; }
.due.late { color: var(--changes); font-weight: 500; }
.progress { height: 5px; background: rgba(0,0,0,.12); border-radius: 3px; overflow: hidden; margin-top: 10px; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.dropzone { border: 1.5px dashed rgba(0,0,0,.2); border-radius: var(--r-lg); padding: 24px; text-align: center; color: var(--muted); margin-top: 16px; transition: background .15s, border-color .15s; }
.dropzone.over { border-color: var(--ink); background: rgba(255,255,255,.2); color: var(--text); }

/* painel de armazenamento */
.panel { border-radius: var(--r-lg); padding: 22px; background: linear-gradient(var(--card-a), var(--card-b)); border: 1px solid var(--hi); box-shadow: var(--raise); display: grid; gap: 14px; max-width: 760px; }
.panel h3 { margin: 0; font-size: 19px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.panel h3 svg { width: 22px; height: 22px; }
.panel p { margin: 0; color: var(--muted); }
.meter { height: 8px; background: rgba(0,0,0,.12); border-radius: 4px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.toggle input { accent-color: var(--ink); width: 18px; height: 18px; }

/* ---------- modal e avisos ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(70,70,72,.45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 20px; animation: fade .15s; }
.modal {
  width: 100%; max-width: 480px; padding: 26px; display: grid; gap: 18px; border-radius: 24px;
  background: linear-gradient(#d0d0d0, #c4c4c4); border: 1px solid var(--hi-strong);
  box-shadow: 0 1px 0 #fff inset, 0 30px 70px -20px rgba(0,0,0,.5);
}
.modal h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
.copy { display: flex; gap: 6px; }
.copy input { font-family: var(--mono); font-size: 12px; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #f2f2f3; padding: 11px 18px; border-radius: 12px; font-weight: 500; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); animation: fade .15s; }
.toast.error { background: var(--changes); color: #fff; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth .window { max-width: 1080px; width: 100%; min-height: 620px; flex: none; }
.auth-side {
  width: 46%; margin: 10px; border-radius: 20px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(#2e2e31, var(--rail)); color: #ececee; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 20px 40px -20px rgba(0,0,0,.6);
}
.auth-side .brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; }
.auth-side .brand svg { width: 28px; height: 28px; }
.auth-side h1 { font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 500; margin: 0 0 16px; }
.auth-side p { color: #a9a9ad; margin: 0; font-size: 16px; max-width: 40ch; }
.auth-points { display: grid; gap: 14px; margin-top: 34px; }
.auth-points div { display: flex; gap: 14px; align-items: baseline; color: #a9a9ad; font-size: 14.5px; }
.auth-points b { color: #f1f1f2; font-weight: 500; }
.auth-points .mono { color: #77777c; font-size: 12px; }
.auth-form { flex: 1; display: grid; place-items: center; padding: 40px; }
.auth-form form { width: 100%; max-width: 360px; display: grid; gap: 16px; }
.auth-form h2 { margin: 0 0 4px; font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.switch-link { background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.auth-form .traffic { position: absolute; top: 22px; right: 26px; }

/* ---------- revisão ---------- */
.review-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr 400px; }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 10px 14px 24px; gap: 14px; }
.stage-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stage-head .crumbs { margin: 0; flex: 1; min-width: 0; }
.stage-head .crumbs b { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player {
  flex: 1; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden;
  background: #19191b; border-radius: 20px; border: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 20px 40px -24px rgba(0,0,0,.6);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.player .overlay-tc { position: absolute; left: 14px; top: 12px; background: rgba(0,0,0,.55); color: #fff; padding: 3px 9px; border-radius: 7px; font-size: 12px; pointer-events: none; }
.controls {
  display: grid; gap: 10px; padding: 12px 16px 12px; border-radius: 18px;
  background: linear-gradient(var(--card-a), var(--card-b)); border: 1px solid var(--hi); box-shadow: var(--raise-sm);
}
.timeline { position: relative; height: 36px; cursor: pointer; user-select: none; touch-action: none; }
.track { position: absolute; left: 0; right: 0; top: 24px; height: 7px; background: rgba(0,0,0,.14); border-radius: 4px; box-shadow: inset 0 1px 2px rgba(0,0,0,.2); }
.track .buf { position: absolute; inset: 0 auto 0 0; background: rgba(0,0,0,.12); border-radius: 4px; }
.track .played { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 4px; }
.track .sel { position: absolute; top: -4px; height: 15px; background: rgba(255,255,255,.4); border: 1.5px solid var(--ink); border-radius: 5px; }
.playhead { position: absolute; top: 16px; width: 2px; height: 22px; background: var(--ink); transform: translateX(-1px); pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.marker {
  position: absolute; top: 0; height: 18px; min-width: 18px; transform: translateX(-9px); padding: 0 5px;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 600; border-radius: 9px; cursor: pointer; z-index: 2;
  background: var(--ink); color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.marker.team { background: #f3f3f4; color: var(--ink); }
.marker.resolved { opacity: .35; }
.marker.range { transform: none; border-radius: 5px; justify-content: start; }
.marker:hover, .marker.hl { outline: 2px solid var(--mint); outline-offset: 1px; z-index: 3; }
.hover-tip { position: absolute; bottom: 40px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 11px; pointer-events: none; white-space: nowrap; }
.ctrl-row { display: flex; align-items: center; gap: 6px; }
.ctrl-row .tc { font-size: 14px; margin: 0 10px; }
.ctrl-row select.input { height: 32px; width: auto; padding: 0 10px; font-size: 13px; border-radius: 9px; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border: 1px solid rgba(0,0,0,.18); border-radius: 5px; color: var(--muted); background: rgba(255,255,255,.2); }

.side { margin: 10px 10px 10px 0; border-radius: 22px; background: linear-gradient(#bebebe, var(--main)); border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 1px 4px rgba(0,0,0,.07); display: grid; grid-template-rows: auto auto 1fr auto; min-height: 0; overflow: hidden; }
.side-head { padding: 22px 22px 14px; display: grid; gap: 14px; }
.side-head h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.status-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.side .utabs { padding: 0 22px; gap: 22px; margin: 0; }
.side .utabs button { font-size: 15px; padding-bottom: 10px; }
.clist { overflow-y: auto; padding: 12px; }
.comment { padding: 12px 12px 12px 14px; border-radius: 14px; border: 1px solid transparent; display: grid; gap: 5px; cursor: pointer; transition: background .12s; }
.comment:hover { background: rgba(255,255,255,.16); }
.comment.hl { background: linear-gradient(#d2d4d4, #c9cccb); border-color: var(--hi-strong); box-shadow: 0 1px 0 #fff inset, 0 8px 18px -10px rgba(0,0,0,.4); }
.comment.resolved .ctext { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.chead { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.chead .who { font-weight: 600; }
.chead .when { color: var(--faint); margin-left: auto; }
.num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; background: #f3f3f4; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.num.client { background: var(--ink); color: #fff; }
.tcchip { font-family: var(--mono); font-size: 11.5px; color: var(--text); background: rgba(255,255,255,.35); padding: 1px 7px; border-radius: 6px; border: 0; cursor: pointer; box-shadow: var(--inset); }
.tcchip.general { color: var(--muted); cursor: default; }
.role { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.ctext { white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.cactions { display: flex; gap: 2px; opacity: 0; transition: opacity .1s; }
.comment:hover .cactions, .comment.hl .cactions, .comment:focus-within .cactions { opacity: 1; }
.cactions button { background: none; border: 0; color: var(--muted); font-size: 12.5px; padding: 3px 7px; border-radius: 6px; cursor: pointer; }
.cactions button:hover { color: var(--text); background: rgba(255,255,255,.3); }
.replies { margin: 4px 0 0 30px; display: grid; gap: 8px; border-left: 1.5px solid rgba(0,0,0,.15); padding-left: 12px; }
.reply-box { margin: 6px 0 0 30px; display: grid; gap: 6px; }
.activity { padding: 16px 22px; display: grid; gap: 12px; font-size: 14px; overflow-y: auto; }
.activity .when { color: var(--faint); font-size: 12px; }
.composer { padding: 14px 16px 16px; display: grid; gap: 8px; border-top: 1px solid rgba(0,0,0,.08); box-shadow: 0 -1px 0 rgba(255,255,255,.35) inset; }
.composer textarea { min-height: 70px; max-height: 200px; }
.composer .row { justify-content: space-between; }
.timepick { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.timepick label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; margin-right: 4px; }
.timepick input { accent-color: var(--ink); }
.hint { font-size: 11.5px; color: var(--faint); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .sidebar { width: 260px; }
  .review-grid { grid-template-columns: 1fr 340px; }
}
@media (max-width: 860px) {
  .frame { padding: 10px; gap: 10px; height: auto; min-height: 100vh; }
  .rail-wrap { display: none; }
  .sidebar { display: none; }
  .window { flex-direction: column; }
  .main { margin: 10px; }
  .main-inner { padding: 28px 20px 60px; }
  .page-head h1 { font-size: 32px; }
  .vrow { grid-template-columns: 110px 1fr; } .vrow > .row { grid-column: 1 / -1; }
  .review-grid { grid-template-columns: 1fr; }
  .player { min-height: 54vw; }
  .side { margin: 0 10px 10px; min-height: 70vh; }
  .auth-side { display: none; }
  .hide-sm { display: none; }
}
.expand { display: none; margin: 0 0 14px -6px; }
.frame.collapsed .expand { display: inline-flex; }
.crumbs .expand { margin: 0 4px 0 -6px; }
.rail-shell { min-height: 0; overflow: hidden; }
.rail-shell:first-child .vlabel { flex: 1; min-height: 0; overflow: hidden; justify-content: center; }
.vlabel::before, .vlabel::after { flex: none; height: 22px; }
.rail { flex: none; }
@media (max-height: 720px) { .rail a, .rail button { width: 46px; height: 46px; } .rail { gap: 6px; } }
.sidebar > * { flex-shrink: 0; }
.role-tag { display: inline-block !important; margin-top: 4px; font-size: 11px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ink) !important; background: rgba(255,255,255,.3); padding: 1px 8px; border-radius: 6px; box-shadow: var(--inset); }

/* Janela (modal) centralizada de forma robusta em qualquer navegador */
.modal-bg {
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center; overflow-y: auto;
  -webkit-backdrop-filter: blur(3px);
}
.modal { margin: auto; flex: 0 1 480px; width: auto; min-width: 0; max-height: calc(100vh - 40px); overflow-y: auto; }
