@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jakarta";
  src: url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --side: #0d0d10;
  --card: #111114;
  --tile: #16161a;
  --tile-hover: #1c1c21;
  --input: #0b0b0e;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);
  --text: #f3f3f5;
  --text-soft: #c9c9d0;
  --muted: #7c7c86;
  --faint: #4a4a52;
  --accent: #beee62;
  --accent-hi: #caf17e;
  --accent-base: #85a745;
  --accent-deep: #5f7731;
  --accent-rgb: 190, 238, 98;
  --on-accent: #0b0b0d;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-line: rgba(var(--accent-rgb), 0.45);
  --danger: #ef4d4d;
  --danger-rgb: 239, 77, 77;
  --danger-text: #ff8f8f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-xl: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(var(--accent-rgb), 0.07), transparent 62%),
    radial-gradient(720px 460px at 100% 108%, rgba(var(--accent-rgb), 0.035), transparent 62%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-track {
  background: transparent;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 9500;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

img[src*="/assets/icons/"] {
  filter: invert(1);
  opacity: 0.72;
}

.vxl {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.vxl.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vxl__palco {
  display: grid;
  justify-items: center;
  transition: transform 0.5s var(--ease);
}

.vxl.is-done .vxl__palco {
  transform: scale(0.96);
}

.vxl__logo {
  width: 112px;
  height: 112px;
  transform-origin: 50% 88%;
  animation: vxlCai 1.15s both;
}

.vxl__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vxl__svg mask {
  mask-type: alpha;
}

.vxl__onda {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: vxlOnda 0.9s var(--ease) 0.52s forwards;
}

.vxl__bl {
  fill: #fff;
  opacity: 0.38;
}

.vxl__b {
  --o: 0;
  --t: 1.2s;
  transform-box: fill-box;
  transform-origin: center;
  animation-name: vxlCresce;
  animation-duration: 0.55s, var(--t);
  animation-timing-function: cubic-bezier(0.34, 1.9, 0.64, 1), ease-in-out;
  animation-delay: calc(0.78s + var(--o) * 0.08s), calc(1.4s + var(--o) * 0.08s);
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: both, none;
}

.vxl__barras .vxl__b:nth-child(1) {
  --o: 3;
  --t: 1.3s;
}

.vxl__barras .vxl__b:nth-child(2) {
  --o: 1;
  --t: 1.05s;
}

.vxl__barras .vxl__b:nth-child(3) {
  --o: 0;
  --t: 1.5s;
}

.vxl__barras .vxl__b:nth-child(4) {
  --o: 2;
  --t: 0.9s;
}

.vxl__barras .vxl__b:nth-child(5) {
  --o: 4;
  --t: 1.2s;
}

.vxl__b--p {
  animation-name: vxlCresce, vxlFalaP;
}

.vxl__b--m {
  animation-name: vxlCresce, vxlFalaM;
}

.vxl__b--c {
  animation-name: vxlCresce, vxlFalaC;
}

.vxl__luz {
  animation: vxlLuz 3.2s cubic-bezier(0.45, 0, 0.2, 1) 1.2s infinite;
}

.vxl__nome {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-top: 18px;
  color: #f4f8ec;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  animation: vxlSobe 0.7s var(--ease) 0.95s both;
}

.vxl__nome b {
  color: var(--accent);
  font-weight: 800;
}

.vxl__nome span {
  margin-left: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.vxl__linha {
  position: relative;
  width: 148px;
  height: 2px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(235, 243, 226, 0.08);
  animation: vxlSobe 0.7s var(--ease) 1.1s both;
}

.vxl__linha i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.45), var(--accent));
  animation: vxlVai 1.15s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

@keyframes vxlCai {
  0% { opacity: 0; transform: translateY(-54px) scale(0.86, 1.12); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  46% { opacity: 1; transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  54% { transform: translateY(0) scale(1.07, 0.9); animation-timing-function: ease-out; }
  68% { transform: translateY(0) scale(0.97, 1.04); }
  82% { transform: translateY(0) scale(1.012, 0.99); }
  100% { opacity: 1; transform: none; }
}

@keyframes vxlOnda {
  from { opacity: 0.6; transform: scale(0.55); }
  to { opacity: 0; transform: scale(1.6); }
}

@keyframes vxlCresce {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes vxlFalaP {
  0% { transform: scaleY(1); }
  20% { transform: scaleY(1.9); }
  42% { transform: scaleY(0.7); }
  62% { transform: scaleY(1.6); }
  82% { transform: scaleY(0.62); }
  100% { transform: scaleY(1.35); }
}

@keyframes vxlFalaM {
  0% { transform: scaleY(1); }
  22% { transform: scaleY(0.45); }
  44% { transform: scaleY(1.35); }
  66% { transform: scaleY(0.62); }
  86% { transform: scaleY(1.2); }
  100% { transform: scaleY(0.8); }
}

@keyframes vxlFalaC {
  0% { transform: scaleY(1); }
  26% { transform: scaleY(0.55); }
  52% { transform: scaleY(1.1); }
  76% { transform: scaleY(0.45); }
  100% { transform: scaleY(0.9); }
}

@keyframes vxlLuz {
  0% { transform: translateX(0); }
  38%,
  100% { transform: translateX(880px); }
}

@keyframes vxlSobe {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes vxlVai {
  from { transform: translateX(-100%); }
  to { transform: translateX(270%); }
}

body.auth-pending .login-view,
body.auth-pending .app-shell,
body.is-authenticated .login-view {
  display: none;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--tile);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.22s ease, transform 0.18s var(--ease);
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--tile-hover);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.5;
  transform: none;
}

.button img {
  width: 16px;
  height: 16px;
  flex: none;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.16);
}

.button-primary:hover {
  border-color: var(--accent-hi);
  background: var(--accent-hi);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.26);
}

.button-primary img,
.button-primary img[src*="/assets/icons/"] {
  filter: none;
  opacity: 0.88;
}

.button-secondary {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.button-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.18);
}

.button-ghost {
  background: transparent;
  color: var(--text-soft);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button-danger:hover {
  border-color: #ff6262;
  background: #ff6262;
}

.button-full {
  width: 100%;
}

.button.is-busy {
  color: transparent !important;
  pointer-events: none;
}

.button.is-busy > * {
  visibility: hidden;
}

.button.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.button-primary.is-busy::after {
  border-color: rgba(11, 11, 13, 0.22);
  border-top-color: var(--on-accent);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--tile);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--tile-hover);
}

.icon-button img {
  width: 16px;
  height: 16px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.15s ease, gap 0.2s var(--ease);
}

.text-button:hover {
  gap: 9px;
  color: var(--accent-hi);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field > span:first-child {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.field > span:first-child small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="email"],
input:not([type]),
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--input);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.18s ease, box-shadow 0.2s ease, background-color 0.18s ease;
}

textarea {
  min-height: 92px;
  padding: 11px 13px;
  line-height: 1.5;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  outline: none;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.6;
}

input[type="search"]::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.4;
}

input[type="number"] {
  -moz-appearance: textfield;
}

select {
  padding-right: 36px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c7c86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

select option {
  background: var(--card);
  color: var(--text);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap .field-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.input-wrap input {
  padding-left: 40px;
}

.input-wrap input:has(+ .input-action) {
  padding-right: 88px;
}

.input-action {
  position: absolute;
  right: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--tile);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.input-action:hover {
  background: var(--tile-hover);
  color: var(--text);
}

.select-field,
.select-wrap {
  position: relative;
  display: block;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field img {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.search-field input {
  min-height: 40px;
  height: 40px;
  padding-left: 37px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
}

.check-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-ready,
.status-complete,
.status-active {
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.status-processing,
.status-uploading,
.status-created,
.status-cancelling {
  background: rgba(255, 255, 255, 0.07);
  color: #e6e6eb;
}

.status-processing::before,
.status-uploading::before,
.status-cancelling::before {
  animation: pulse 1s ease-in-out infinite;
}

.status-error,
.status-blocked,
.status-expired {
  background: rgba(var(--danger-rgb), 0.14);
  color: var(--danger-text);
}

.status-cancelled {
  color: var(--muted);
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.skeleton-card,
.card-skeleton,
.list-skeleton,
.folder-card-skeleton,
.chat-admin-row-skeleton,
.rv-skel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--tile) 30%, #1d1d22 50%, var(--tile) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.list-skeleton {
  height: 58px;
  border-radius: var(--r-md);
}

.card-skeleton {
  height: 262px;
}

.folder-card-skeleton {
  height: 228px;
  border-radius: 16px;
}

.chat-admin-row-skeleton {
  height: 66px;
  border-radius: var(--r-md);
}

.rv-skel {
  height: 380px;
  border-radius: 16px;
}

.skeleton-card {
  min-height: 118px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 44px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.012);
}

.empty-state-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 380px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.empty-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.empty-state h3 {
  font-size: 16px;
}

.empty-state p {
  margin-bottom: 8px;
  color: var(--muted);
}

.login-view {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  overflow: hidden;
}

.login-view::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(46% 46% at 50% 50%, #000, transparent 82%);
  mask-image: radial-gradient(46% 46% at 50% 50%, #000, transparent 82%);
}

.login-view::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 680px;
  height: 680px;
  margin: -340px 0 0 -340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1), transparent 62%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
}

.login-card {
  width: min(420px, 100%);
  padding: 34px 32px 30px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: fadeUp 0.6s var(--ease) both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
}

.login-logo img {
  width: 28px;
  height: 28px;
}

.login-brand-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.login-brand-copy small {
  display: block;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-heading h1 {
  font-size: 26px;
}

.login-heading p {
  margin: 6px 0 24px;
  color: var(--muted);
}

.login-submit {
  height: 48px;
  margin-top: 6px;
  font-size: 14px;
}

.button-arrow {
  transition: transform 0.2s var(--ease);
}

.login-submit:hover .button-arrow {
  transform: translateX(4px);
}

.form-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger-text);
  font-size: 12.5px;
  font-weight: 600;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12px;
}

.security-note img {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 18px 14px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--side);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.09);
  transition: transform 0.35s var(--ease);
}

.wordmark:hover .brand-symbol {
  transform: rotate(-6deg) scale(1.05);
}

.brand-symbol img {
  width: 26px;
  height: 26px;
}

.wordmark-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.wordmark-copy strong b {
  color: var(--accent);
}

.wordmark-copy small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  margin: 18px 12px 6px;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar-nav:not(:has(.nav-gestao:not([hidden]))) .nav-label-gestao {
  display: none;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-md);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-link img {
  width: 17px;
  height: 17px;
  opacity: 0.5;
  transition: opacity 0.16s ease, transform 0.25s var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-link:hover img {
  opacity: 0.85;
  transform: scale(1.06);
}

.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-link.is-active::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7);
}

.nav-link.is-active img {
  opacity: 1;
}

.nav-count,
.nav-live-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.nav-link.is-active .nav-count {
  background: var(--accent);
  color: var(--on-accent);
}

.nav-live-count {
  gap: 5px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-hi);
}

.nav-live-count::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.sidebar-drive {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.02));
}

.sidebar-drive-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.14);
}

.sidebar-drive-icon img {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

.sidebar-drive-copy b {
  display: block;
  font-size: 12.5px;
  line-height: 1.2;
}

.sidebar-drive-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.session-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-base));
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 800;
}

.session-copy {
  flex: 1;
  min-width: 0;
}

.session-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.session-copy small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.session-card .icon-button {
  width: 32px;
  height: 32px;
  border-color: transparent;
  background: transparent;
}

.session-card .icon-button:hover {
  background: rgba(var(--danger-rgb), 0.12);
}

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--topbar-h);
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-soft);
}

.topbar-title {
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar-title h1 {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sync-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.sync-status.is-loading i {
  background: #d9d9de;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  animation: pulse 0.9s ease-in-out infinite;
}

.sync-status.is-error {
  border-color: rgba(var(--danger-rgb), 0.3);
  color: var(--danger-text);
}

.sync-status.is-error i {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(var(--danger-rgb), 0.15);
}

.upload-center-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 7px 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  animation: fadeUp 0.4s var(--ease) both;
}

.upload-center-trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
}

.upload-center-trigger-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
}

.upload-center-trigger-icon img {
  width: 15px;
  height: 15px;
  opacity: 0.95;
}

.upload-center-trigger.is-active .upload-center-trigger-icon {
  animation: halo 1.6s ease-in-out infinite;
}

.upload-center-trigger-copy small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
}

.upload-center-trigger-copy strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.upload-center-trigger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 800;
}

.upload-center-trigger.is-active .upload-center-trigger-badge,
.upload-center-trigger.is-complete .upload-center-trigger-badge {
  background: var(--accent);
  color: var(--on-accent);
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 28px 28px 64px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  margin-bottom: 18px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(100% 140% at 0% 0%, rgba(var(--accent-rgb), 0.13), transparent 58%),
    var(--card);
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.09), transparent 65%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  max-width: 620px;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-sub {
  max-width: 520px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-actions .button {
  height: 44px;
  padding: 0 18px;
}

.hero-steps {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.22);
}

.hero-steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.hero-steps strong {
  display: block;
  font-size: 13.5px;
}

.hero-steps small {
  color: var(--muted);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.stat-card:not(.skeleton-card):hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tile);
}

.stat-icon img {
  width: 16px;
  height: 16px;
}

.stat-card:first-child .stat-icon {
  background: var(--accent-soft);
}

.stat-value {
  display: block;
  margin-top: 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-foot {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head .section-kicker {
  margin-bottom: 4px;
}

.panel-head h3 {
  font-size: 16px;
}

.panel-head.compact {
  margin-bottom: 16px;
}

.mini-clip-list,
.activity-list,
.upload-history,
.team-list {
  display: grid;
  gap: 8px;
}

.mini-clip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--tile);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.mini-clip-row:hover {
  border-color: var(--line-strong);
  background: var(--tile-hover);
}

.mini-thumb {
  position: relative;
  width: 92px;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #0b0b0d;
}

.mini-thumb img,
.folder-cover img,
.clip-media img,
.folder-detail-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s var(--ease);
}

.mini-thumb img.is-loaded,
.folder-cover img.is-loaded,
.clip-media img.is-loaded,
.folder-detail-cover img.is-loaded {
  opacity: 1;
}

.mini-copy,
.activity-copy,
.history-copy,
.team-copy {
  flex: 1;
  min-width: 0;
}

.mini-copy strong,
.activity-copy strong,
.history-copy strong,
.team-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-copy small,
.activity-copy small,
.history-copy small,
.team-copy small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.activity-row,
.history-row,
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--tile);
  transition: border-color 0.18s ease;
}

.activity-row:hover,
.history-row:hover,
.team-row:hover {
  border-color: var(--line-strong);
}

.row-meta {
  flex: none;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.queue-action {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.queue-action:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-heading h2 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-heading p {
  margin-top: 6px;
  color: var(--text-soft);
}

.page-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.folder-search {
  width: 280px;
}

.folders-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.folders-head h3 {
  font-size: 15px;
}

.folders-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.results-meta,
.results-meta p,
.folder-results-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.results-meta p {
  margin-bottom: 12px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 16px;
}

.folder-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: transform 0.3s var(--ease), border-color 0.22s ease, box-shadow 0.3s ease;
}

.folder-card:hover,
.folder-card:focus-within {
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(var(--accent-rgb), 0.1);
  transform: translateY(-3px);
}

.folder-card.is-selected {
  border-color: var(--accent);
}

.folder-select {
  display: block;
  width: 100%;
  text-align: left;
}

.folder-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #18181d, #0d0d10);
}

.folder-cover::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.folder-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.folder-card:hover .folder-cover img {
  transform: scale(1.05);
}

.folder-open-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.folder-card:hover .folder-open-mark,
.folder-select:focus-visible .folder-open-mark {
  opacity: 1;
  transform: none;
}

.folder-card-body {
  display: block;
  padding: 12px 14px 14px;
}

.folder-card-body strong {
  display: block;
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.folder-card-body small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.card-menu {
  position: relative;
}

.folder-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
}

.menu-trigger {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(8, 8, 10, 0.6);
  transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.2s ease;
}

.menu-trigger:hover,
.card-menu.is-open .menu-trigger {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 8, 10, 0.85);
}

.folder-menu .menu-trigger {
  opacity: 0;
}

.folder-card:hover .folder-menu .menu-trigger,
.folder-card:focus-within .folder-menu .menu-trigger,
.folder-menu.is-open .menu-trigger {
  opacity: 1;
}

.menu-dots {
  display: flex;
  gap: 3px;
}

.menu-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 196px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: #141417;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.card-menu.is-open .menu-popover {
  display: block;
}

.card-menu.opens-up .menu-popover {
  top: auto;
  bottom: calc(100% + 6px);
}

.card-menu.aligns-left .menu-popover {
  right: auto;
  left: 0;
}

.menu-popover button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.menu-popover button:hover,
.menu-popover button:focus-visible {
  background: var(--tile-hover);
  color: var(--text);
  outline: none;
}

.menu-popover img {
  width: 15px;
  height: 15px;
}

.menu-popover .danger-action {
  color: var(--danger-text);
}

.menu-popover .danger-action:hover {
  background: rgba(var(--danger-rgb), 0.12);
  color: var(--danger-text);
}

.folder-detail-header {
  position: relative;
  margin-bottom: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    var(--card);
}

.folder-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 16px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
  transition: color 0.16s ease, border-color 0.16s ease, gap 0.2s var(--ease);
}

.folder-back-button:hover {
  gap: 10px;
  border-color: var(--line-strong);
  color: var(--text);
}

.folder-detail-summary {
  display: flex;
  align-items: center;
  gap: 20px;
}

.folder-detail-cover {
  position: relative;
  width: 240px;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--tile);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.folder-detail-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.folder-detail-copy small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.folder-detail-copy h2 {
  overflow: hidden;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
}

.folder-detail-copy #folderDetailMeta {
  color: var(--text-soft);
  font-weight: 600;
}

.clips-publisher {
  margin-bottom: 22px;
  padding: 0;
  overflow: hidden;
}

.publisher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.publisher-copy h3 {
  margin-top: 8px;
  font-size: 17px;
}

.publisher-copy h3 strong {
  color: var(--accent);
}

.publisher-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.publisher-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 11.5px;
  font-weight: 800;
}

.publisher-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.publisher-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.destination-summary {
  display: none;
}

.publisher-ready .button {
  height: 44px;
  padding: 0 18px;
}

.upload-composer-body {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
  animation: fadeUp 0.35s var(--ease) both;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 20px;
  border: 1.5px dashed rgba(var(--accent-rgb), 0.35);
  border-radius: 18px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    rgba(255, 255, 255, 0.012);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.05);
  outline: none;
}

.dropzone.is-dragging {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.09);
  transform: scale(1.012);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 17px;
  background: var(--accent-soft);
  transition: transform 0.35s var(--ease);
}

.dropzone:hover .dropzone-icon,
.dropzone.is-dragging .dropzone-icon {
  transform: translateY(-3px);
}

.dropzone-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.95;
}

.dropzone strong {
  font-size: 16.5px;
  font-weight: 800;
}

.dropzone p {
  color: var(--text-soft);
}

.dropzone p span {
  color: var(--accent);
  font-weight: 700;
}

.dropzone small {
  color: var(--muted);
  font-size: 12px;
}

.upload-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
}

.upload-split-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.upload-split-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-split-switch,
.cover-remove-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

.upload-split-switch::after,
.cover-remove-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.28s var(--ease), background-color 0.2s ease;
}

.upload-split-toggle input:checked + .upload-split-switch {
  background: var(--accent);
}

.upload-split-toggle input:checked + .upload-split-switch::after {
  background: var(--on-accent);
  transform: translateX(16px);
}

.upload-split-toggle input:focus-visible + .upload-split-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.upload-split-copy strong {
  display: block;
  font-size: 13px;
}

.upload-split-copy small {
  color: var(--muted);
  font-size: 12px;
}

.upload-split-skip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.upload-split-skip input {
  width: 84px;
  min-height: 36px;
  height: 36px;
}

.upload-split-skip small {
  color: var(--muted);
}

.batch-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
}

.batch-overview small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.batch-overview strong {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.batch-overview .text-button {
  margin-left: auto;
}

.upload-queue {
  display: grid;
  gap: 8px;
  max-height: 380px;
  margin-top: 12px;
  padding-right: 2px;
  overflow-y: auto;
}

.queue-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
  animation: fadeUp 0.3s var(--ease) both;
}

.queue-item.is-error {
  border-color: rgba(var(--danger-rgb), 0.35);
}

.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-type-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.queue-copy {
  flex: 1;
  min-width: 0;
}

.queue-copy strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.queue-copy small {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.queue-percent {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-appearance: none;
  appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-base), var(--accent));
  transition: width 0.3s ease;
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-base), var(--accent));
}

.progress-track {
  margin-top: 10px;
}

.queue-error {
  margin-top: 8px;
  color: var(--danger-text);
  font-size: 12px;
  font-weight: 600;
}

.upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.upload-guide {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tile);
}

.process-steps {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  display: flex;
  gap: 12px;
}

.process-steps li > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.process-steps strong {
  display: block;
  font-size: 13px;
}

.process-steps p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.clips-created {
  margin-top: 6px;
}

.clips-created-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.clips-created-head h3 {
  font-size: 19px;
}

.clips-created-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.created-count {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tile);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 190px;
  gap: 10px;
  margin-bottom: 12px;
}

.toolbar select {
  min-height: 40px;
  height: 40px;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
  gap: 16px;
}

.clip-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: transform 0.3s var(--ease), border-color 0.22s ease, box-shadow 0.3s ease;
}

.clip-card:hover,
.clip-card:focus-within {
  z-index: 2;
  border-color: var(--line-strong);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.clip-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #0b0b0d;
}

.clip-card:hover .clip-media img {
  transform: scale(1.04);
}

.clip-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.clip-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.clip-status.status-ready {
  display: none;
}

.clip-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.preview-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.6);
  color: #fff;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.22s ease, transform 0.3s var(--ease), background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.clip-card:hover .preview-button,
.preview-button:focus-visible {
  opacity: 1;
  transform: none;
}

.preview-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.clip-body {
  padding: 12px 14px 14px;
}

.clip-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.clip-title-row > div:first-child {
  min-width: 0;
}

.clip-title-row strong {
  display: block;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.clip-title-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.clip-title-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.clip-title-actions .menu-trigger {
  border-color: var(--line);
  background: var(--tile);
}

.clip-title-actions .menu-trigger:hover,
.clip-title-actions .card-menu.is-open .menu-trigger {
  background: var(--tile-hover);
}

.clip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.clip-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--tile);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.clip-meta > span.is-res {
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.clip-meta > span i {
  display: none;
}

.clip-optimizing {
  background: var(--accent-soft) !important;
  color: var(--accent-hi) !important;
}

.clip-optimizing i {
  display: inline-block !important;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}

.clip-error {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(var(--danger-rgb), 0.1);
  color: var(--danger-text);
  font-size: 12px;
  font-weight: 600;
}

.clip-card.is-processing .clip-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.pagination:empty {
  display: none;
}

.page-button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--tile);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.page-button:hover:not(:disabled) {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
}

.page-button:disabled {
  opacity: 0.4;
}

.page-indicator {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.upload-history-panel {
  margin-top: 26px;
}

.modal,
.upload-center-dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.modal {
  width: min(580px, calc(100vw - 32px));
}

.modal-small {
  width: min(420px, calc(100vw - 32px));
}

.preview-modal {
  width: min(980px, calc(100vw - 32px));
}

.modal::backdrop,
.upload-center-dialog::backdrop {
  background: rgba(4, 4, 6, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-card,
.upload-center-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
}

.modal-head .section-kicker {
  margin-bottom: 4px;
}

.modal-head h2 {
  font-size: 20px;
  line-height: 1.2;
}

.modal-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.modal-head p:empty {
  display: none;
}

.modal-body {
  flex: 1;
  padding: 4px 24px 20px;
  overflow-y: auto;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.confirm-body {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding-top: 24px;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border: 1px solid rgba(var(--danger-rgb), 0.3);
  border-radius: 15px;
  background: rgba(var(--danger-rgb), 0.12);
}

.confirm-icon img {
  width: 20px;
  height: 20px;
}

.confirm-body h2 {
  font-size: 19px;
}

.confirm-body p {
  color: var(--text-soft);
}

.preview-modal .modal-card {
  overflow: hidden;
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  background: #000;
}

.preview-stage video {
  display: block;
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #000;
}

.preview-stage .empty-state {
  width: 100%;
  border: 0;
  border-radius: 0;
}

.preview-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.cover-field > span:first-child {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.cover-picker {
  display: grid;
  gap: 12px;
}

.cover-editor {
  display: grid;
  gap: 10px;
}

.cover-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, #15151a, #0c0c0f);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.cover-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.cover-preview.is-dragging canvas {
  cursor: grabbing;
}

.cover-preview.is-removing {
  opacity: 0.35;
  filter: grayscale(1);
}

.cover-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cover-empty-state img {
  width: 42px;
  height: 42px;
  opacity: 0.25;
}

.cover-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cover-preview.is-dragging .cover-crop-grid,
.cover-preview.is-editing:hover .cover-crop-grid {
  opacity: 1;
}

.cover-adjustments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
}

.cover-adjust-copy {
  grid-column: 1 / -1;
}

.cover-adjust-copy strong {
  display: block;
  font-size: 12.5px;
}

.cover-adjust-copy small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}

.cover-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.cover-zoom input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.cover-zoom output {
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cover-reset {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.cover-reset:hover {
  color: var(--text);
}

.cover-picker-copy {
  display: grid;
  gap: 10px;
}

.cover-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.file-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.file-button:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.18);
}

.file-button img {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

.cover-res {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cover-res-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--tile);
  color: var(--text-soft);
  font-size: 12px;
}

.cover-res-item b {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.cover-res-item i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.cover-res-item.is-need i {
  background: var(--accent);
}

.cover-res-item.is-ok {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--accent-soft);
}

.cover-res-item.is-ok i {
  background: var(--accent);
}

.cover-res-item.is-ok b {
  color: var(--accent-hi);
}

.cover-res-item.is-low {
  border-color: rgba(var(--danger-rgb), 0.4);
  background: rgba(var(--danger-rgb), 0.09);
}

.cover-res-item.is-low i {
  background: var(--danger);
}

.cover-res-item.is-low b {
  color: var(--danger-text);
}

.cover-remove-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.cover-remove-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cover-remove-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
  transition: border-color 0.2s ease;
}

.cover-remove-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: rgba(var(--danger-rgb), 0.12);
}

.cover-remove-icon img {
  width: 15px;
  height: 15px;
}

.cover-remove-copy {
  flex: 1;
}

.cover-remove-copy strong {
  display: block;
  font-size: 12.5px;
}

.cover-remove-copy small {
  color: var(--muted);
  font-size: 11.5px;
}

.cover-remove-option.is-selected .cover-remove-card {
  border-color: rgba(var(--danger-rgb), 0.45);
}

.cover-remove-option.is-selected .cover-remove-toggle {
  background: var(--danger);
}

.cover-remove-option.is-selected .cover-remove-toggle::after {
  transform: translateX(16px);
}

.folder-where {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 12.5px;
}

.folder-where b {
  color: var(--accent-hi);
}

.folder-where img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.upload-center-dialog {
  width: min(660px, calc(100vw - 32px));
}

.upload-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
}

.upload-center-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upload-center-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 15px;
  background: var(--accent-soft);
}

.upload-center-mark img {
  width: 22px;
  height: 22px;
  opacity: 0.95;
}

.upload-center-head .section-kicker {
  margin-bottom: 2px;
}

.upload-center-head h2 {
  font-size: 19px;
}

.upload-center-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.upload-batch-progress {
  margin: 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--tile);
}

.upload-batch-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 700;
}

.upload-batch-topline strong {
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.upload-total-track {
  height: 8px;
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.upload-total-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-base), var(--accent));
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.45);
  transform: scaleX(0);
  transform-origin: left center;
}

.upload-live-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.upload-live-metrics small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.upload-live-metrics strong {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.upload-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 24px 0;
}

.upload-result-grid span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
}

.upload-result-grid i {
  grid-row: span 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.upload-result-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.upload-result-grid strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.result-pending {
  background: #8a8a94;
}

.result-active {
  background: #e6e6eb;
  animation: pulse 1s ease-in-out infinite;
}

.result-success {
  background: var(--accent);
}

.result-error {
  background: var(--danger);
}

.upload-center-queue {
  display: grid;
  gap: 8px;
  max-height: 38vh;
  margin: 12px 24px 0;
  padding-right: 2px;
  overflow-y: auto;
}

.upload-center-queue:empty {
  display: none;
}

.upload-center-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--tile);
}

.upload-center-item-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.upload-center-item-copy small {
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.upload-center-item-copy progress {
  margin-top: 7px;
}

.upload-center-item-copy em {
  display: block;
  margin-top: 6px;
  color: var(--danger-text);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}

.upload-center-item-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.upload-center-item.status-uploading .upload-center-item-state {
  color: var(--text);
}

.upload-center-item.status-complete .upload-center-item-state {
  color: var(--accent);
}

.upload-center-item.status-error {
  border-color: rgba(var(--danger-rgb), 0.35);
}

.upload-center-item.status-error .upload-center-item-state {
  color: var(--danger-text);
}

.upload-center-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 24px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.upload-center-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.upload-center-foot > div {
  display: flex;
  gap: 10px;
  flex: none;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 8000;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #141417;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.4s var(--ease) both;
}

.toast.is-leaving {
  animation: toastOut 0.19s ease forwards;
}

.toast-dot {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}

.toast-error .toast-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(var(--danger-rgb), 0.15);
}

.toast-warning .toast-dot,
.toast-info .toast-dot {
  background: #e6e6eb;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.toast-copy {
  flex: 1;
  min-width: 0;
}

.toast-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.toast-copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12.5px;
}

.toast-close {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.rv-command,
.chat-admin-command {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.rv-command h2,
.chat-admin-command h2 {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.rv-command p,
.chat-admin-command p {
  max-width: 560px;
  margin-top: 6px;
  color: var(--text-soft);
}

.rv-command-actions,
.chat-admin-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-signal,
.chat-admin-signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 11.5px;
  font-weight: 800;
}

.rv-signal i,
.chat-admin-signal i,
.chat-admin-live-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.chat-admin-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-soft);
  font-size: 12.5px;
}

.chat-admin-live-chip strong {
  color: var(--text);
}

.rv-gate,
.chat-admin-gate {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.rv-gate-copy,
.chat-admin-gate > div {
  flex: 1;
  min-width: 0;
}

.rv-gate-copy .section-kicker,
.chat-admin-gate .section-kicker {
  margin-bottom: 2px;
}

.rv-gate h3,
.chat-admin-gate h3 {
  font-size: 16px;
}

.rv-gate p,
.chat-admin-gate p {
  margin-top: 2px;
  color: var(--muted);
}

.rv-gate-icon,
.chat-admin-gate-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 15px;
  background: var(--accent-soft);
}

.rv-gate-icon img,
.chat-admin-gate-icon img {
  width: 22px;
  height: 22px;
}

.rv-gate-spin {
  position: absolute;
  inset: -3px;
  display: none;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 17px;
  animation: spin 1s linear infinite;
}

.rv-gate.is-conectando .rv-gate-spin {
  display: block;
}

.rv-gate.is-erro .rv-gate-icon {
  background: rgba(var(--danger-rgb), 0.12);
}

.rv-tabs,
.chat-admin-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.rv-tab,
.chat-admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-md);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.rv-tab:hover,
.chat-admin-tab:hover {
  color: var(--text);
}

.rv-tab img,
.chat-admin-tab img {
  width: 15px;
  height: 15px;
}

.rv-tab b,
.chat-admin-tab b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.rv-tab.is-active,
.chat-admin-tab.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.rv-tab.is-active b,
.chat-admin-tab.is-active b {
  background: var(--accent);
  color: var(--on-accent);
}

.rv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.rv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 0.2s ease, transform 0.3s var(--ease), opacity 0.3s ease;
}

.rv-card:hover {
  border-color: var(--line-strong);
}

.rv-card.is-busy {
  pointer-events: none;
}

.rv-card.is-saindo {
  opacity: 0;
  transform: scale(0.96);
}

.rv-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #18181d, #0d0d10);
}

.rv-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.rv-cover > img.is-on {
  opacity: 1;
}

.rv-cover-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.rv-cover-mark img {
  width: 36px;
  height: 36px;
  opacity: 0.22;
}

.rv-cover.has-capa .rv-cover-mark {
  display: none;
}

.rv-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.rv-flag.is-ok {
  background: var(--accent);
  color: var(--on-accent);
}

.rv-flag.is-no {
  background: rgba(var(--danger-rgb), 0.9);
}

.rv-cover-swap {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.rv-card:hover .rv-cover-swap,
.rv-cover-swap:focus-visible {
  opacity: 1;
}

.rv-cover-swap:hover {
  background: rgba(0, 0, 0, 0.85);
}

.rv-cover-swap img {
  width: 13px;
  height: 13px;
}

.rv-cover-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 11px;
  font-weight: 800;
}

.rv-body {
  flex: 1;
  padding: 14px 16px 6px;
}

.rv-title {
  margin-bottom: 8px;
  font-size: 16px;
}

.rv-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.rv-who strong {
  color: var(--text-soft);
}

.rv-who-face {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.rv-who-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-who-mod {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  font-size: 10px;
  font-weight: 800;
}

.rv-note {
  margin: 10px 0;
  color: var(--text-soft);
  font-size: 13px;
}

.rv-note:empty {
  display: none;
}

.rv-facts,
.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv-chips {
  margin-top: 8px;
}

.rv-facts span,
.rv-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--tile);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.rv-facts span:empty {
  display: none;
}

.rv-why-said {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: rgba(var(--danger-rgb), 0.1);
  color: var(--danger-text);
  font-size: 12px;
}

.rv-why-said b {
  margin-right: 6px;
}

.rv-files-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.rv-files-head small {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
}

.rv-files {
  display: flex;
  gap: 8px;
  padding-bottom: 6px;
  overflow-x: auto;
}

.rv-file {
  flex: 0 0 96px;
  min-width: 0;
}

.rv-file-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--tile);
}

.rv-file-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rv-file-art em {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.rv-file-swap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.rv-file-art:hover .rv-file-swap,
.rv-file-swap:focus-visible {
  opacity: 1;
}

.rv-file-swap img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.rv-file-name {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rv-edit,
.rv-recusa {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.rv-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.rv-field span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.rv-edit-row {
  display: flex;
  gap: 8px;
}

.rv-edit-msg {
  margin-top: 8px;
  color: var(--danger-text);
  font-size: 12px;
}

.rv-edit-msg:empty {
  display: none;
}

.rv-edit-msg.is-ok {
  color: var(--accent);
}

.rv-andando {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: rgba(9, 9, 11, 0.82);
  text-align: center;
}

.rv-card.is-andando .rv-andando,
.rv-card.is-feito .rv-andando {
  display: grid;
}

.rv-andando-roda {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.rv-card.is-feito .rv-andando-roda {
  border-color: var(--accent);
  background: var(--accent);
  animation: none;
}

.rv-andando b {
  font-size: 14px;
}

.rv-andando small {
  color: var(--muted);
  font-size: 12px;
}

.rv-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
}

.rv-actions .button {
  flex: 1;
  height: 38px;
}

.rv-ok {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.rv-ok:hover {
  border-color: var(--accent-hi);
  background: var(--accent-hi);
}

.rv-no {
  border-color: rgba(var(--danger-rgb), 0.35);
  background: rgba(var(--danger-rgb), 0.12);
  color: var(--danger-text);
}

.rv-no:hover {
  background: rgba(var(--danger-rgb), 0.2);
}

.rv-no.is-cheio {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.rv-actions .rv-icon-only {
  flex: 0 0 40px;
  padding: 0;
}

.rv-icon-only img {
  width: 16px;
  height: 16px;
}

.rv-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
}

.rv-empty img {
  width: 34px;
  height: 34px;
  opacity: 0.55;
}

.rv-empty strong {
  font-size: 16px;
}

.rv-empty p {
  max-width: 380px;
  color: var(--muted);
}

.team-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.team-copy strong {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.02em;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.role-owner,
.role-admin,
.role-manager {
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.chat-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.chat-admin-metric {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.chat-admin-metric-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--tile);
}

.chat-admin-metric-icon img {
  width: 17px;
  height: 17px;
}

.chat-admin-metric-icon.is-live {
  background: var(--accent-soft);
}

.chat-admin-metric-icon.is-alert {
  background: rgba(var(--danger-rgb), 0.1);
}

.chat-admin-metric-copy {
  min-width: 0;
}

.chat-admin-metric-copy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-admin-metric-copy strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.chat-admin-metric-copy span {
  display: block;
  overflow: hidden;
  color: var(--faint);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat-storage-track {
  position: absolute;
  right: 16px;
  bottom: 10px;
  left: 16px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.chat-storage-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}

.chat-storage-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.chat-storage-ledger > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  font-size: 12.5px;
}

.chat-storage-ledger span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.chat-storage-ledger i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
}

.chat-storage-ledger i.is-audio {
  background: var(--accent-base);
}

.chat-storage-ledger i.is-file {
  background: #c9c9d0;
}

.chat-storage-ledger i.is-other {
  background: #5a5a63;
}

.chat-storage-ledger strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.chat-admin-pane {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.chat-admin-pane-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-admin-pane-head h3 {
  font-size: 16px;
}

.chat-admin-pane-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.chat-admin-owner-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.chat-admin-owner-note img {
  width: 14px;
  height: 14px;
}

.chat-danger-button {
  border-color: rgba(var(--danger-rgb), 0.35);
  background: rgba(var(--danger-rgb), 0.12);
  color: var(--danger-text);
}

.chat-danger-button:hover {
  background: rgba(var(--danger-rgb), 0.2);
}

.chat-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 180px);
  gap: 10px;
  margin-bottom: 12px;
}

.chat-admin-toolbar.is-members {
  grid-template-columns: minmax(0, 1fr) repeat(2, 180px);
}

.chat-admin-toolbar select {
  min-height: 40px;
  height: 40px;
}

.chat-admin-results-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-message-list,
.chat-member-list {
  display: grid;
  gap: 8px;
}

.chat-message-row,
.chat-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--tile);
}

.chat-member-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
}

.chat-message-row.is-deleted {
  opacity: 0.55;
}

.chat-message-row.is-pinned {
  border-color: rgba(var(--accent-rgb), 0.35);
}

.chat-member-row.is-banned {
  border-color: rgba(var(--danger-rgb), 0.3);
}

.chat-profile {
  position: relative;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #202026;
  font-size: 12px;
  font-weight: 800;
}

.chat-presence-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--tile);
  border-radius: 50%;
  background: #3a3a42;
}

.chat-presence-dot.is-online {
  background: var(--accent);
}

.chat-message-author,
.chat-member-copy > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.chat-message-author strong,
.chat-member-copy > div strong {
  color: var(--text);
  font-size: 13px;
}

.chat-role {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 10.5px;
  font-weight: 800;
}

.chat-role.role-owner,
.chat-role.role-admin {
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.chat-role.role-moderator {
  background: rgba(255, 255, 255, 0.1);
  color: #e6e6eb;
}

.chat-self-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 800;
}

.chat-message-text {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 13px;
  word-break: break-word;
}

.chat-message-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.22);
}

.chat-message-attachment > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--card);
}

.chat-message-attachment img {
  width: 14px;
  height: 14px;
}

.chat-message-attachment strong {
  display: block;
  font-size: 12.5px;
}

.chat-message-attachment small {
  color: var(--muted);
  font-size: 11.5px;
}

.chat-message-data {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
}

.chat-message-data .is-highlight {
  color: var(--accent);
}

.chat-member-copy {
  min-width: 0;
}

.chat-member-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.chat-role-control select {
  width: 152px;
  min-height: 34px;
  height: 34px;
  font-size: 12.5px;
}

.chat-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.chat-row-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chat-row-action img {
  width: 13px;
  height: 13px;
}

.chat-row-action:hover {
  color: var(--text);
}

.chat-row-action.is-active {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--accent-soft);
  color: var(--accent-hi);
}

.chat-row-action.is-danger {
  color: var(--danger-text);
}

.chat-row-action.is-danger:hover {
  border-color: rgba(var(--danger-rgb), 0.35);
  background: rgba(var(--danger-rgb), 0.12);
}

.chat-admin-pagination {
  margin-top: 14px;
}

.motion-fallback-in {
  animation: fadeUp 0.45s var(--ease) both;
}

.page-fallback-in {
  animation: fadeUp 0.35s var(--ease) both;
}

.menu-fallback-in {
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  50% { opacity: 0.4; }
}

@keyframes halo {
  0%,
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

@media (max-width: 1240px) {
  .stats-grid,
  .chat-admin-metrics,
  .chat-storage-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-layout,
  .dashboard-grid,
  .team-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-admin-toolbar,
  .chat-admin-toolbar.is-members {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .chat-admin-toolbar .chat-admin-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 286px;
    height: 100%;
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
    transform: translateX(-104%);
    transition: transform 0.34s var(--ease);
  }

  .sidebar.is-open {
    transform: none;
  }

  .sidebar-close {
    display: inline-flex;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s ease both;
  }

  .menu-button {
    display: inline-flex;
  }

  .topbar {
    padding: 0 16px;
  }

  .main-content {
    padding: 20px 16px 56px;
  }

  .sync-status span,
  #refreshButton span {
    display: none;
  }

  #refreshButton {
    width: 40px;
    padding: 0;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .toolbar .search-field {
    grid-column: 1 / -1;
  }

  .folder-detail-summary,
  .publisher-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .folder-detail-cover {
    width: 100%;
  }

  .page-heading-actions,
  .folder-search {
    width: 100%;
  }

  .folder-search {
    flex: 1 1 200px;
  }
}

@media (max-width: 600px) {
  .stats-grid,
  .chat-admin-metrics,
  .chat-storage-ledger,
  .upload-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-center-trigger-copy {
    display: none;
  }

  .upload-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 22px;
  }

  .hero-copy h2,
  .page-heading h2,
  .rv-command h2,
  .chat-admin-command h2,
  .folder-detail-copy h2 {
    font-size: 24px;
  }

  .upload-center-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-center-foot > div .button {
    flex: 1;
  }

  .chat-member-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-role-control,
  .chat-member-row .chat-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .login-card {
    padding: 28px 22px 24px;
  }
}

html.vx-leve *,
html.vx-leve *::before,
html.vx-leve *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.vx-leve .topbar {
  background: var(--bg);
}

html.vx-leve .folder-card:hover,
html.vx-leve .clip-card:hover,
html.vx-leve .stat-card:hover {
  transform: none;
}

html.vx-leve .skeleton-card,
html.vx-leve .card-skeleton,
html.vx-leve .list-skeleton,
html.vx-leve .folder-card-skeleton,
html.vx-leve .chat-admin-row-skeleton,
html.vx-leve .rv-skel {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
