/* Synquei — app. Apple (Finder, Ajustes do Sistema, Logic) + ElevenLabs (preto e branco, pílulas, calma). */

/* ───────────── tokens ───────────── */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ededf0;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #8e8e93;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-2: rgba(0, 0, 0, 0.12);
  --hairline-strong: rgba(0, 0, 0, 0.24);
  --fill: rgba(0, 0, 0, 0.035);
  --fill-2: rgba(0, 0, 0, 0.06);
  --seg-bg: rgba(118, 118, 128, 0.12);
  --seg-on: #ffffff;
  --row-hover: #f6f6f8;
  --blue: #2f6bff;
  --blue-text: #2457d6;
  --lav: #a98bff;
  --lav-text: #7b5cf0;
  --ok: #30d158;
  --ok-text: #1d8a3d;
  --warn: #ff9f0a;
  --warn-text: #b25e00;
  --err: #ff453a;
  --err-text: #d70015;
  --primary-bg: #0b0b0c;
  --primary-fg: #ffffff;
  --primary-hover: #2a2a2d;
  --sidebar-bg: rgba(243, 243, 246, 0.72);
  --glass: rgba(255, 255, 255, 0.78);
  --menu-bg: #ffffff;
  --backdrop: rgba(20, 20, 24, 0.26);
  --stage: #08080a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 64px rgba(0, 0, 0, 0.16);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --sidebar-w: 232px;
  --t-blue: #2a78d6;
  --t-orange: #eb6834;
  --t-green: #1baf7a;
  --t-violet: #6250d6;
  --page-x: clamp(24px, 3.2vw, 56px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --surface: #161618;
    --surface-2: #1c1c1f;
    --surface-3: #242428;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-2: rgba(255, 255, 255, 0.14);
    --hairline-strong: rgba(255, 255, 255, 0.3);
    --fill: rgba(255, 255, 255, 0.04);
    --fill-2: rgba(255, 255, 255, 0.08);
    --seg-bg: rgba(118, 118, 128, 0.24);
    --seg-on: rgba(255, 255, 255, 0.16);
    --row-hover: #1c1c1f;
    --blue: #4d82ff;
    --blue-text: #7aa2ff;
    --lav-text: #b9a2ff;
    --ok-text: #4cd471;
    --warn-text: #ffb340;
    --err-text: #ff6961;
    --primary-bg: #f5f5f7;
    --primary-fg: #0b0b0c;
    --primary-hover: #ffffff;
    --sidebar-bg: rgba(24, 24, 27, 0.72);
    --glass: rgba(22, 22, 24, 0.78);
    --menu-bg: #1c1c1f;
    --backdrop: rgba(0, 0, 0, 0.5);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.55);
    --t-blue: #3987e5;
    --t-orange: #d95926;
    --t-green: #199e70;
    --t-violet: #9085e9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #161618;
  --surface-2: #1c1c1f;
  --surface-3: #242428;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --hairline-strong: rgba(255, 255, 255, 0.3);
  --fill: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.08);
  --seg-bg: rgba(118, 118, 128, 0.24);
  --seg-on: rgba(255, 255, 255, 0.16);
  --row-hover: #1c1c1f;
  --blue: #4d82ff;
  --blue-text: #7aa2ff;
  --lav-text: #b9a2ff;
  --ok-text: #4cd471;
  --warn-text: #ffb340;
  --err-text: #ff6961;
  --primary-bg: #f5f5f7;
  --primary-fg: #0b0b0c;
  --primary-hover: #ffffff;
  --sidebar-bg: rgba(24, 24, 27, 0.72);
  --glass: rgba(22, 22, 24, 0.78);
  --menu-bg: #1c1c1f;
  --backdrop: rgba(0, 0, 0, 0.5);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 64px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
  --t-blue: #3987e5;
  --t-orange: #d95926;
  --t-green: #199e70;
  --t-violet: #9085e9;
}

/* ───────────── base ───────────── */
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}
.num {
  font-variant-numeric: tabular-nums;
}
.sub {
  color: var(--text-2);
}
.muted {
  color: var(--text-3);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.grad {
  background: linear-gradient(90deg, var(--blue), var(--lav));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────────── animações ───────────── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  0% {
    transform: scale(0.94);
    opacity: 0;
  }
  60% {
    transform: scale(1.02);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@keyframes slide-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
@keyframes toast-in {
  from {
    transform: translateY(16px) scale(0.98);
    opacity: 0;
  }
}
@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
.tela {
  animation: rise 0.5s var(--ease) both;
}
.stagger > * {
  animation: rise 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

/* ───────────── botões ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--fill-2);
  color: var(--text);
  transition: background-color 0.15s, transform 0.18s var(--spring), box-shadow 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled) {
  background: var(--surface-3);
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-primary {
  background: var(--primary-bg);
  color: var(--primary-fg);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover:not(:disabled) {
  background: var(--blue);
  box-shadow: 0 8px 24px rgba(47, 107, 255, 0.3);
}
.btn-secondary {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline-2);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--fill-2);
}
.btn-danger {
  color: var(--err-text);
}
.btn-sm {
  height: 28px;
  padding: 0 11px;
  font-size: 12.5px;
}
.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
}
.btn-xl {
  height: 54px;
  padding: 0 30px;
  font-size: 16px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover {
  background: var(--fill-2);
  color: var(--text);
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
  flex: none;
}

/* ───────────── controles ───────────── */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--seg-bg);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg button {
  flex: none;
  height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button[aria-pressed="true"] {
  background: var(--seg-on);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.seg .count {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.field {
  display: grid;
  gap: 6px;
}
.field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.input,
.select {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  font-size: 13.5px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent);
}
.select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search .icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-3);
}
.search input {
  padding-left: 32px;
  border-radius: 999px;
  min-width: 220px;
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--seg-bg);
  transition: background-color 0.2s;
  pointer-events: none;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--spring);
}
.switch input:checked + i {
  background: var(--ok);
}
.switch input:checked + i::after {
  transform: translateX(16px);
}
.range {
  width: 100%;
  accent-color: var(--blue);
}

/* ───────────── shell ───────────── */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
  background: var(--sidebar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-right: 1px solid var(--hairline);
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 22px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
}
.brand b {
  font-weight: 800;
}
.brand span {
  font-weight: 500;
}
.brand-mark {
  width: 26px;
  height: 26px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav + .nav {
  margin-top: 18px;
}
.nav-label {
  padding: 0 10px 6px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.15s;
}
.nav-item .icon {
  color: var(--text-2);
}
.nav-item:hover {
  background: var(--fill);
}
.nav-item.is-on {
  background: var(--fill-2);
}
.nav-item.is-on .icon {
  color: var(--blue-text);
}
.nav-item[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.badge.is-live {
  background: var(--blue);
  color: #fff;
}
.badge.is-ok {
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  color: var(--ok-text);
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.proj-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--fill);
  border: 1px solid var(--hairline);
}
.proj-card b {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-card .sub {
  font-size: 12px;
}
.dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--text-3));
  flex: none;
}
.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 11.5px;
  color: var(--text-3);
}
.privacy .icon {
  width: 14px;
  height: 14px;
}
.main {
  min-width: 0;
}
.page {
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(28px, 2.6vw, 44px) var(--page-x) 120px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-head h1 {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.page-lead {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 60ch;
}
.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .grow {
  flex: 1;
}

/* barra de abas no celular */
.tabbar {
  display: none;
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .page {
    padding: 22px 16px calc(110px + env(safe-area-inset-bottom, 0px));
  }
  .page-head h1 {
    font-size: 26px;
  }
  .tabbar {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid var(--hairline-2);
  }
  .tabbar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 0 2px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-3);
  }
  .tabbar a .icon {
    width: 22px;
    height: 22px;
  }
  .tabbar a.is-on {
    color: var(--blue-text);
  }
  .search input {
    min-width: 0;
  }
}

/* ───────────── cartões e listas ───────────── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.card-pad {
  padding: 20px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.card-head h2,
.card-head h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.grid {
  display: grid;
  gap: 14px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--fill-2);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.chip .icon {
  width: 12px;
  height: 12px;
}
.chip-blue {
  background: color-mix(in srgb, var(--blue) 13%, transparent);
  color: var(--blue-text);
}
.chip-lav {
  background: color-mix(in srgb, var(--lav) 18%, transparent);
  color: var(--lav-text);
}
.chip-ok {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok-text);
}
.chip-warn {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  color: var(--warn-text);
}
.chip-err {
  background: color-mix(in srgb, var(--err) 14%, transparent);
  color: var(--err-text);
}
.chip-raw {
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 16%, transparent), color-mix(in srgb, var(--lav) 22%, transparent));
  color: var(--lav-text);
  font-weight: 600;
}
.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 56px 20px;
  color: var(--text-2);
}
.empty h2 {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.empty p {
  max-width: 44ch;
}

/* zona de soltar */
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 300px;
  padding: 40px 24px;
  border-radius: var(--r-xl);
  text-align: center;
  background: radial-gradient(60% 80% at 30% 0%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 70%), radial-gradient(60% 80% at 80% 10%, color-mix(in srgb, var(--lav) 12%, transparent), transparent 70%), var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--hairline-2);
  transition: box-shadow 0.25s, transform 0.3s var(--spring);
  overflow: hidden;
}
.drop.is-over {
  box-shadow: inset 0 0 0 2px var(--blue), 0 20px 60px -20px rgba(47, 107, 255, 0.45);
  transform: scale(1.005);
}
.drop h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.drop p {
  color: var(--text-2);
  max-width: 50ch;
}
.drop-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
}
.drop-wave i {
  width: 5px;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(var(--blue), var(--lav));
  animation: bar 1.4s var(--ease) infinite;
  animation-delay: calc(var(--i) * -120ms);
  transform-origin: center;
}
.drop .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fade 0.2s both;
  pointer-events: none;
}
.drop-overlay > div {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 56px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--blue);
  font-size: 18px;
  font-weight: 600;
  animation: pop 0.35s var(--spring) both;
}

/* ───────────── projetos ───────────── */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-top: 28px;
}
.proj {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow 0.2s, transform 0.3s var(--spring);
  cursor: pointer;
  text-align: left;
  border: 0;
}
.proj:hover {
  box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-md);
  transform: translateY(-2px);
}
.proj-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.proj h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.proj .lanes {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--stage);
  height: 74px;
  align-content: center;
}
.proj .lanes i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--c);
  opacity: 0.85;
}
.proj-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-2);
}
.section-title {
  margin: 36px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

/* ───────────── mídia ───────────── */
.dev {
  margin-bottom: 16px;
  overflow: hidden;
}
.dev-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.dev-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--c);
  box-shadow: 0 6px 16px -6px var(--c);
  flex: none;
}
.dev-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
  background: transparent;
  padding: 2px 6px;
  margin-left: -6px;
  border-radius: 6px;
  min-width: 60px;
  max-width: 100%;
}
.dev-name:hover {
  background: var(--fill);
}
.dev-name:focus {
  outline: none;
  background: var(--fill-2);
}
.dev-meta {
  font-size: 12.5px;
  color: var(--text-2);
}
.dev-head .grow {
  flex: 1;
  min-width: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  padding: 8px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  cursor: pointer;
  transition: background-color 0.12s;
}
.table tbody tr:hover {
  background: var(--row-hover);
}
.table tbody tr.is-sel {
  background: color-mix(in srgb, var(--blue) 9%, transparent);
}
.clip-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.clip-name > span {
  display: grid;
  min-width: 0;
}
.clip-name b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 34ch;
}
.clip-name small {
  font-size: 11.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 44ch;
}
.thumb {
  width: 46px;
  height: 30px;
  border-radius: 6px;
  background: var(--stage);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  flex: none;
  overflow: hidden;
  position: relative;
}
.thumb canvas {
  width: 100%;
  height: 100%;
}
.thumb .icon {
  width: 15px;
  height: 15px;
}
.chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.status .dot {
  width: 7px;
  height: 7px;
}
.status.is-busy .dot {
  background: var(--blue);
  animation: pulse 1s infinite;
}
.hide-sm {
}
@media (max-width: 1100px) {
  .hide-md {
    display: none;
  }
}
@media (max-width: 700px) {
  .hide-sm {
    display: none;
  }
  .clip-name b {
    max-width: 18ch;
  }
}
.ignored {
  margin-top: 18px;
}
.ignored summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 0;
}
.ignored ul {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--text-3);
  max-height: 260px;
  overflow: auto;
  padding: 8px 0;
}
.ignored li span {
  color: var(--text-2);
}

/* gaveta de detalhes */
.drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  animation: slide-in 0.35s var(--spring) both;
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-head h2 {
  font-size: 16px;
  font-weight: 600;
  word-break: break-all;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 16px 18px 40px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  font-size: 13px;
}
.kv dt {
  color: var(--text-3);
}
.kv dd {
  min-width: 0;
  word-break: break-word;
}
.warn-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  color: var(--warn-text);
  font-size: 13px;
}
.info-box {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 9%, transparent);
  color: var(--blue-text);
  font-size: 13px;
  align-items: flex-start;
}
.info-box .icon,
.warn-box .icon {
  margin-top: 1px;
}

/* ───────────── sincronizar ───────────── */
.sync-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) {
  .sync-layout {
    grid-template-columns: 1fr;
  }
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.set-row:last-child {
  border-bottom: 0;
}
.set-row > div {
  display: grid;
  gap: 2px;
}
.set-row b {
  font-size: 13.5px;
  font-weight: 600;
}
.set-row small {
  font-size: 12px;
  color: var(--text-2);
}
.hero-sync {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--stage);
  color: #fff;
  padding: 28px;
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 22px;
}
.hero-sync::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 60% at 20% 100%, rgba(77, 130, 255, 0.28), transparent 70%), radial-gradient(45% 60% at 85% 100%, rgba(169, 139, 255, 0.3), transparent 70%);
  pointer-events: none;
}
.hero-sync > * {
  position: relative;
}
.hero-sync h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero-sync p {
  color: rgba(255, 255, 255, 0.65);
}
.lanes-live {
  display: grid;
  gap: 8px;
}
.lane-live {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}
.lane-live canvas {
  width: 100%;
  height: 26px;
  transition: transform 1.2s var(--spring), opacity 0.4s;
}
.phases {
  display: grid;
  gap: 2px;
}
.phase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}
.phase .pi {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
  flex: none;
}
.phase.is-on {
  color: #fff;
}
.phase.is-on .pi {
  box-shadow: none;
}
.phase.is-done {
  color: rgba(255, 255, 255, 0.82);
}
.phase.is-done .pi {
  background: var(--ok);
  box-shadow: none;
  color: #fff;
}
.phase .pi .icon {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.phase .val {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
.progress {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lav));
  transition: width 0.4s var(--ease);
}
.progress.light {
  background: var(--fill-2);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px;
}
.stat {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  display: grid;
  gap: 4px;
}
.stat b {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 12.5px;
  color: var(--text-2);
}
.stat.ok b {
  color: var(--ok-text);
}
.stat.warn b {
  color: var(--warn-text);
}
.clip-progress {
  display: grid;
  gap: 2px;
  max-height: 420px;
  overflow: auto;
}
.cp {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
  padding: 7px 4px;
  font-size: 12.5px;
}
.cp .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp .bar {
  height: 4px;
  border-radius: 2px;
  background: var(--fill-2);
  overflow: hidden;
}
.cp .bar i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.cp .st {
  font-size: 11.5px;
  color: var(--text-3);
  text-align: right;
}

/* ───────────── linha do tempo ───────────── */
.tl-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1180px) {
  .tl-wrap {
    grid-template-columns: 1fr;
  }
}
.tl {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--stage);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(30, 20, 90, 0.5);
}
.tl-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.tl-bar .icon-btn {
  color: rgba(255, 255, 255, 0.7);
}
.tl-bar .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.tl-bar input[type="range"] {
  width: 140px;
  accent-color: #fff;
}
.tl-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}
.tl-heads {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}
.tl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  white-space: nowrap;
}
.tl-head span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.tl-ruler {
  position: relative;
  height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
}
.tl-ruler span {
  position: absolute;
  top: 0;
  bottom: 0;
  padding: 6px 0 0 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}
.tl-row {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tl-clip {
  position: absolute;
  top: 6px;
  height: calc(var(--lane-h) - 12px);
  border-radius: 7px;
  background: color-mix(in srgb, var(--c) 30%, #0d0d10);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.15s, transform 0.5s var(--spring), left 0.6s var(--spring);
  animation: fade 0.5s both;
}
.tl-clip.is-drag {
  cursor: grabbing;
  transition: box-shadow 0.15s;
  z-index: 3;
}
.tl-clip:hover {
  box-shadow: inset 0 0 0 1.5px var(--c);
}
.tl-clip.is-sel {
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--c) 50%, transparent);
  z-index: 2;
}
.tl-clip canvas {
  position: absolute;
  inset: 16px 0 2px;
  width: 100%;
  height: calc(100% - 18px);
  opacity: 0.9;
}
.tl-clip .lbl {
  position: absolute;
  top: 2px;
  left: 6px;
  right: 22px;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tl-clip .cf {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cf);
  box-shadow: 0 0 8px var(--cf);
}
.tl-clip.low {
  background-image: repeating-linear-gradient(135deg, rgba(255, 159, 10, 0.12) 0 6px, transparent 6px 12px);
}
.tl-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #fff;
  opacity: 0.6;
  pointer-events: none;
}
.tl-tip {
  position: absolute;
  z-index: 5;
  top: 32px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--mono);
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tl-empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-2);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.insp {
  position: sticky;
  top: 20px;
}
.insp-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.conf {
  display: grid;
  gap: 8px;
}
.conf-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.conf-top b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.meter {
  height: 6px;
  border-radius: 3px;
  background: var(--fill-2);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: var(--p);
  background: var(--cf, var(--ok));
  border-radius: 3px;
  transition: width 0.6s var(--spring);
}
.nudge {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.nudge button {
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--fill-2);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s, transform 0.15s var(--spring);
}
.nudge button:hover {
  background: var(--surface-3);
}
.nudge button:active {
  transform: scale(0.95);
}
.compare {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: var(--stage);
  display: block;
}
.loose {
  margin-top: 16px;
}
.loose-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
}

/* ───────────── exportar ───────────── */
.exp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) {
  .exp-layout {
    grid-template-columns: 1fr;
  }
}
.target {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow 0.2s, transform 0.3s var(--spring);
}
.target:hover {
  box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-md);
}
.target-top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.target-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--stage);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  flex: none;
}
.target h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.target ol {
  display: grid;
  gap: 6px;
  counter-reset: s;
  font-size: 12.5px;
  color: var(--text-2);
}
.target li {
  counter-increment: s;
  display: flex;
  gap: 8px;
}
.target li::before {
  content: counter(s);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fill-2);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
  flex: none;
}
.target .btn {
  justify-self: start;
}
.exp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: var(--r-xl);
  background: var(--stage);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.exp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 90% at 10% 100%, rgba(77, 130, 255, 0.3), transparent 70%), radial-gradient(40% 90% at 90% 0%, rgba(169, 139, 255, 0.28), transparent 70%);
}
.exp-hero > * {
  position: relative;
}
.exp-hero h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.exp-hero p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
}
.opts {
  display: grid;
  gap: 14px;
  padding: 18px;
}

/* ───────────── formatos ───────────── */
.fmt-sec {
  margin-top: 26px;
}
.fmt-sec h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.fmt-table td:first-child {
  font-weight: 600;
}
.fmt-table td {
  cursor: default;
}
.fmt-table tbody tr {
  cursor: default;
}
.ext {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}

/* ───────────── ajustes ───────────── */
.settings {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.settings .card-pad {
  padding: 4px 20px;
}
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--fill-2);
  box-shadow: inset 0 -1px 0 var(--hairline-2);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font);
}

/* ───────────── avisos, modal ───────────── */
.toasts {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
@media (max-width: 860px) {
  .toasts {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.4s var(--spring) both;
  pointer-events: auto;
  max-width: min(560px, 92vw);
}
.toast.is-out {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast .icon {
  width: 16px;
  height: 16px;
}
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--backdrop);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.2s both;
}
.modal {
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  display: grid;
  gap: 16px;
  animation: pop 0.35s var(--spring) both;
}
.modal h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.modal .row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .il-w0,
  .il-w1,
  .il-w2,
  .il-line,
  .il-check {
    animation: none !important;
  }
}

/* ajustes finos */
[hidden] {
  display: none !important;
}
.set-row > .seg {
  display: inline-flex;
  justify-self: start;
}
.nudge button {
  white-space: nowrap;
  font-size: 11.5px;
  padding: 0 2px;
}
.exp-layout .grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

/* app de desktop: barra de título do Mac integrada à barra lateral */
.is-desktop.platform-darwin .sidebar {
  padding-top: 50px;
  -webkit-app-region: drag;
}
.is-desktop .sidebar a,
.is-desktop .sidebar button,
.is-desktop .sidebar input {
  -webkit-app-region: no-drag;
}
.is-desktop.platform-darwin .main::before {
  content: "";
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: 28px;
  z-index: 15;
  -webkit-app-region: drag;
}
.is-desktop .privacy {
  display: none;
}

/* ───────────── movimento entre telas ───────────── */
@keyframes enter-fwd {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
}
@keyframes enter-back {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
}
@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}
@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}
@keyframes donut-in {
  from {
    stroke-dasharray: 0 999;
  }
}
#view[data-dir="fwd"] > .tela {
  animation: enter-fwd 0.45s var(--ease) both;
}
#view[data-dir="back"] > .tela {
  animation: enter-back 0.45s var(--ease) both;
}
/* a tela que só se redesenhou (progresso, um clique) não entra de novo */
#view.is-still .tela,
#view.is-still .stagger > *,
#view.is-still .pn-ola,
#view.is-still .pn-hero,
#view.is-still .pn-cartao,
#view.is-still .pn-soltar,
#view.is-still .pn-atalho,
#view.is-still .pn-bloco,
#view.is-still .pn-mini-lanes i,
#view.is-still .pn-hist i,
#view.is-still .pn-stack i,
#view.is-still .pn-barra i,
#view.is-still .pn-seg {
  animation: none !important;
}

/* ───────────── barra lateral: pílula, grupos e atividade ───────────── */
.nav-wrap {
  position: relative;
}
.nav-wrap .nav {
  position: relative;
  z-index: 1;
}
.nav-pill {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  border-radius: 8px;
  background: var(--fill-2);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s var(--spring), height 0.3s var(--spring), opacity 0.2s;
}
.nav-pill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--blue), var(--lav));
}
.nav-pill.is-on {
  opacity: 1;
}
.nav-wrap .nav-item.is-on {
  background: transparent;
}
.nav-wrap .nav-item.is-on:hover {
  background: var(--fill);
}
.nav-item .icon {
  transition: transform 0.3s var(--spring), color 0.2s;
}
.nav-item:hover .icon {
  transform: translateY(-1px) scale(1.06);
}
.sidebar-foot > .nav-item {
  margin: 0 0 -4px;
}
.atividade {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.atividade-led {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex: none;
}
.atividade-led i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--text-3);
  opacity: 0.35;
  transform: scaleY(0.3);
  transform-origin: bottom;
  transition: transform 0.4s var(--spring), background-color 0.3s, opacity 0.3s;
}
.atividade.is-ok .atividade-led i {
  background: var(--ok);
  opacity: 1;
}
.atividade.is-ok .atividade-led i:nth-child(1) { transform: scaleY(0.4); }
.atividade.is-ok .atividade-led i:nth-child(2) { transform: scaleY(0.7); }
.atividade.is-ok .atividade-led i:nth-child(3) { transform: scaleY(1); }
.atividade.is-ok .atividade-led i:nth-child(4) { transform: scaleY(0.6); }
.atividade.is-ok .atividade-led i:nth-child(5) { transform: scaleY(0.35); }
.atividade.is-live {
  color: var(--text);
}
.atividade.is-live .atividade-led i {
  background: var(--blue);
  opacity: 1;
  animation: bar 0.9s ease-in-out infinite;
}
.atividade.is-live .atividade-led i:nth-child(2) { animation-delay: -0.15s; }
.atividade.is-live .atividade-led i:nth-child(3) { animation-delay: -0.45s; }
.atividade.is-live .atividade-led i:nth-child(4) { animation-delay: -0.3s; }
.atividade.is-live .atividade-led i:nth-child(5) { animation-delay: -0.6s; }
.atividade-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* dica flutuante */
.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  max-width: 280px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(22, 22, 24, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-variant-numeric: tabular-nums;
}

/* sincronia pronta */
@keyframes festa-raio {
  from {
    transform: rotate(var(--a)) translateY(-30px) scaleY(0.3);
    opacity: 1;
  }
  to {
    transform: rotate(var(--a)) translateY(-170px) scaleY(1);
    opacity: 0;
  }
}
@keyframes festa-check {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  25% {
    transform: scale(1.08);
    opacity: 1;
  }
  35%,
  70% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}
@keyframes tick-draw {
  from {
    stroke-dashoffset: 30;
  }
}
.festa {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.festa-check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--lav));
  box-shadow: 0 18px 50px color-mix(in srgb, var(--blue) 40%, transparent);
  animation: festa-check 1.5s var(--ease) both;
}
.festa-check svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  animation: tick-draw 0.5s 0.2s var(--ease) both;
}
.festa i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 22px;
  margin: -11px 0 0 -2px;
  border-radius: 2px;
  background: var(--c);
  animation: festa-raio 0.95s var(--d) var(--ease) both;
}

/* ───────────── início (painel) ───────────── */
.page-painel > * + * {
  margin-top: 16px;
}
.pn-ola,
.pn-hero,
.pn-cartao,
.pn-soltar,
.pn-atalho,
.pn-bloco {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms + 60ms);
}
.pn-ola h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pn-ola {
  margin-bottom: 8px;
}
.pn-cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.is-blue { --tone: var(--t-blue); }
.is-green { --tone: var(--t-green); }
.is-violet { --tone: var(--t-violet); }
.is-orange { --tone: var(--t-orange); }
.pn-cartao,
.pn-atalho,
.pn-soltar {
  position: relative;
  overflow: hidden;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  isolation: isolate;
  transition: transform 0.35s var(--spring), box-shadow 0.3s;
}
.pn-cartao::before,
.pn-atalho::before,
.pn-soltar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone, var(--blue)) 16%, transparent), transparent 70%);
  transition: opacity 0.3s;
}
.pn-cartao:hover:not(:disabled)::before,
.pn-atalho:hover:not(:disabled)::before,
.pn-soltar:hover::before {
  opacity: 1;
}
.pn-cartao {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 214px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
}
.pn-cartao:hover:not(:disabled),
.pn-atalho:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--hairline-2), var(--shadow-md);
}
.pn-cartao:active:not(:disabled),
.pn-atalho:active:not(:disabled) {
  transform: scale(0.985);
}
.pn-cartao:disabled {
  cursor: default;
}
.pn-cartao-topo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pn-cartao-icone,
.pn-atalho-icone {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
}
.pn-cartao-icone .icon {
  width: 17px;
  height: 17px;
}
.pn-cartao-titulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.pn-seta {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  transition: transform 0.3s var(--spring);
}
.pn-cartao:hover:not(:disabled) .pn-seta {
  transform: translateX(3px);
  color: var(--text);
}
.pn-cartao-valor {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pn-cartao-valor small {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-2);
}
.pn-cartao-pe {
  margin-top: auto;
  font-size: 12.5px;
}
.pn-mini-lanes {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  background: var(--stage);
}
.pn-mini-lanes i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--c);
  width: min(var(--w), calc(100% - var(--o)));
  margin-left: var(--o);
  transform-origin: left;
  animation: grow-x 0.7s var(--spring) both;
  animation-delay: calc(var(--k) * 70ms + 260ms);
}
.pn-donut-wrap {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.pn-donut {
  width: 104px;
  height: 104px;
  overflow: visible;
}
.pn-seg {
  animation: donut-in 0.9s 0.25s var(--ease) both;
  transition: stroke-width 0.2s var(--spring);
}
.pn-seg:hover {
  stroke-width: 15;
}
.pn-donut-n {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  fill: var(--text);
  font-variant-numeric: tabular-nums;
}
.pn-donut-leg {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pn-donut-leg li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.pn-donut-leg b {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
}
.pn-hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 58px;
}
.pn-hist i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: var(--tone);
  transform-origin: bottom;
  animation: grow-y 0.6s var(--spring) both;
  animation-delay: calc(var(--i) * 35ms + 200ms);
  transition: filter 0.15s;
}
.pn-hist i.zero {
  background: var(--fill-2);
}
.pn-hist i:hover {
  filter: brightness(1.15);
}
.pn-hist-eixo {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.pn-stack {
  display: flex;
  gap: 2px;
  height: 12px;
}
.pn-stack i {
  width: var(--w);
  min-width: 4px;
  border-radius: 4px;
  background: var(--c);
  transform-origin: left;
  animation: grow-x 0.7s var(--spring) both;
  animation-delay: 0.25s;
  transition: filter 0.15s;
}
.pn-stack i:hover {
  filter: brightness(1.15);
}
.pn-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
}
.pn-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pn-legenda b {
  color: var(--text);
  font-weight: 600;
}

/* atalhos */
.pn-atalhos {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pn-soltar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 7%, var(--surface)), color-mix(in srgb, var(--lav) 9%, var(--surface)));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 26%, var(--hairline));
  cursor: pointer;
}
.pn-soltar:hover,
.pn-soltar.is-over {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--blue), var(--shadow-md);
}
.pn-soltar.is-over {
  transform: scale(1.015);
}
.pn-soltar-onda {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  flex: none;
}
.pn-soltar-onda i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(var(--blue), var(--lav));
  animation: bar 1.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.17s);
}
.pn-soltar-txt {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.pn-soltar-txt b {
  font-size: 15px;
  font-weight: 650;
}
.pn-soltar-txt span {
  font-size: 12.5px;
  color: var(--text-2);
}
.pn-soltar-seta {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--primary-bg);
  color: var(--primary-fg);
  transition: transform 0.35s var(--spring);
}
.pn-soltar:hover .pn-soltar-seta {
  transform: rotate(90deg);
}
.pn-atalho {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.pn-atalho:disabled {
  opacity: 0.45;
  cursor: default;
}
.pn-atalho-icone {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  transition: transform 0.35s var(--spring);
}
.pn-atalho:hover:not(:disabled) .pn-atalho-icone {
  transform: scale(1.08) rotate(-4deg);
}
.pn-atalho-txt {
  display: grid;
  gap: 2px;
}
.pn-atalho-txt b {
  font-size: 14px;
  font-weight: 600;
}
.pn-atalho-txt .sub {
  font-size: 12px;
}

/* aparelhos e recentes */
.pn-colunas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pn-bloco {
  padding: 16px 18px 12px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.pn-bloco-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.pn-bloco-topo h2 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pn-conta {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--fill-2);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}
.pn-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 0;
  background: none;
  padding: 4px 6px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
}
.pn-link:hover {
  color: var(--text);
  background: var(--fill);
}
.pn-link .icon {
  width: 14px;
  height: 14px;
}
.pn-lista {
  list-style: none;
  margin: 0 -8px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.pn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background-color 0.15s;
}
.pn-item.is-click {
  cursor: pointer;
}
.pn-item.is-click:hover {
  background: var(--row-hover);
}
.pn-dev {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
}
.pn-dev .icon {
  width: 18px;
  height: 18px;
}
.pn-item-txt {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.pn-item-txt b {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pn-item-txt .sub {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pn-barra {
  height: 4px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--fill-2);
  overflow: hidden;
}
.pn-barra i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 2px;
  background: var(--c);
  transform-origin: left;
  animation: grow-x 0.8s var(--spring) both;
  animation-delay: 0.35s;
}
.pn-pct {
  font-size: 12.5px;
  color: var(--text-2);
  flex: none;
}
.pn-proj-lanes {
  width: 46px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: var(--stage);
  display: grid;
  align-content: center;
  gap: 3px;
  flex: none;
}
.pn-proj-lanes i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--c);
  width: var(--w);
  margin-left: var(--o);
}
.pn-vazio {
  margin: 4px 0 6px;
  padding: 22px 16px;
  border-radius: 14px;
  border: 1px dashed var(--hairline-2);
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

/* sem projeto: ilustração */
.pn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-sm);
}
.pn-hero-txt h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pn-hero-txt p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 46ch;
}
.pn-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pn-ilustra {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--stage);
}
.pn-ilustra-svg {
  display: block;
  width: 100%;
  height: auto;
}
.il-box {
  fill: #1c1c1f;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.2;
}
.il-lens {
  fill: #2c2c31;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.2;
}
.il-dev {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--k) * 140ms + 200ms);
}
@keyframes il-w0 {
  0%, 12% { translate: 48px 0; opacity: 0.4; }
  46%, 86% { translate: 0 0; opacity: 1; }
  100% { translate: 48px 0; opacity: 0.4; }
}
@keyframes il-w1 {
  0%, 12% { translate: -36px 0; opacity: 0.4; }
  46%, 86% { translate: 0 0; opacity: 1; }
  100% { translate: -36px 0; opacity: 0.4; }
}
@keyframes il-w2 {
  0%, 12% { translate: 72px 0; opacity: 0.4; }
  46%, 86% { translate: 0 0; opacity: 1; }
  100% { translate: 72px 0; opacity: 0.4; }
}
@keyframes il-line {
  0%, 44% { opacity: 0; }
  50%, 86% { opacity: 1; }
  94%, 100% { opacity: 0; }
}
@keyframes il-check {
  0%, 50% { scale: 0; }
  58% { scale: 1.12; }
  64%, 86% { scale: 1; }
  94%, 100% { scale: 0; }
}
.il-w0 { animation: il-w0 6s var(--ease) infinite; }
.il-w1 { animation: il-w1 6s var(--ease) infinite; }
.il-w2 { animation: il-w2 6s var(--ease) infinite; }
.il-line {
  stroke: #9085e9;
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  animation: il-line 6s linear infinite;
}
.il-check {
  transform-box: fill-box;
  transform-origin: center;
  animation: il-check 6s var(--spring) infinite;
}
.il-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1240px) {
  .pn-atalhos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pn-soltar {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .pn-atalhos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pn-colunas,
  .pn-hero {
    grid-template-columns: 1fr;
  }
  .pn-hero {
    padding: 16px;
    gap: 18px;
  }
  .pn-soltar-onda {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .il-w0,
  .il-w1,
  .il-w2,
  .il-line,
  .il-check {
    animation: none !important;
  }
}
.som-vol {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(300px, 100%);
}

/* ───────────── tipos de projeto ───────────── */
.modal-back.is-out {
  opacity: 0;
  transition: opacity 0.18s;
}
.modal.modal-tipos {
  width: min(980px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  gap: 18px;
}
.tp-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tp-topo h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tp-topo .sub {
  margin-top: 4px;
  font-size: 13.5px;
}
.tp-nome {
  max-width: 460px;
}
.tp-grupos {
  display: grid;
  gap: 16px;
}
.tp-grupos .eyebrow {
  margin-bottom: 8px;
}
.tp-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.tp-tipo {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: inherit;
  color: inherit;
  text-align: left;
  transition: background-color 0.15s, box-shadow 0.2s, transform 0.25s var(--spring);
}
.tp-tipo:hover {
  background: var(--fill-2);
  transform: translateY(-1px);
}
.tp-tipo[aria-pressed="true"] {
  background: color-mix(in srgb, var(--tone) 10%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--tone);
}
.tp-icone,
.tipo-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: color-mix(in srgb, var(--tone, var(--text-3)) 15%, transparent);
  color: var(--tone, var(--text-2));
  transition: transform 0.3s var(--spring);
}
.tp-tipo[aria-pressed="true"] .tp-icone {
  transform: scale(1.08) rotate(-5deg);
}
.tp-icone .icon,
.tipo-ic .icon {
  width: 18px;
  height: 18px;
}
.tp-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-right: 14px;
}
.tp-txt b {
  font-size: 13.5px;
  font-weight: 600;
}
.tp-txt span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-2);
}
.tp-mc {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-3);
}
.tp-mc .icon {
  width: 14px;
  height: 14px;
}
.tp-pe {
  position: sticky;
  bottom: -24px;
  margin: 0 -24px -24px;
  padding: 16px 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 12px 20px;
  align-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--hairline);
}
.tp-pe .row {
  grid-column: 1 / -1;
}
.tp-dicas {
  font-size: 13px;
  color: var(--text-2);
}
.tp-dicas ul,
.pn-dicas ul {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}
.tp-mc-row,
.mc-cartao {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  cursor: pointer;
}
.tp-mc-row > span:nth-child(2),
.mc-cartao > span:nth-child(2) {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.tp-mc-row b,
.mc-cartao b {
  font-size: 13.5px;
  font-weight: 600;
}
.tp-mc-row small,
.mc-cartao small {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.35;
}
.tp-mc-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--lav));
}
.mc-cartao.is-on {
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 30%, transparent);
}
.mc-cartao:not(.is-on) .tp-mc-ic {
  background: var(--fill-2);
  color: var(--text-2);
}

/* etiqueta do tipo */
.tipo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--tone, var(--text-2));
  background: color-mix(in srgb, var(--tone, var(--text-3)) 13%, transparent);
}
.tipo-chip .icon {
  width: 14px;
  height: 14px;
}
.tipo-chip.is-mc {
  --tone: var(--blue-text);
}
.tipo-chip.is-none {
  --tone: var(--text-3);
}
.tipo-chip.is-alerta {
  --tone: var(--warn-text);
}
button.tipo-chip {
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.15s;
}
button.tipo-chip:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--tone, var(--text-3)) 20%, transparent);
}
.tipo-trocar {
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid color-mix(in srgb, var(--tone) 35%, transparent);
  font-weight: 500;
  opacity: 0.8;
}
.pn-tipo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pn-dicas {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--tone) 6%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 22%, var(--hairline));
  font-size: 13px;
  color: var(--text-2);
  animation: rise 0.6s var(--ease) both;
  animation-delay: 0.5s;
}
#view.is-still .pn-dicas {
  animation: none;
}
.pn-dicas ul {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 24px;
}

/* projetos por tipo */
.tipo-filtro {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin: 8px -2px 0;
  scrollbar-width: none;
}
.tipo-filtro button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  transition: background-color 0.15s, box-shadow 0.2s;
}
.tipo-filtro button .icon {
  width: 15px;
  height: 15px;
  color: var(--tone, var(--text-2));
}
.tipo-filtro button b {
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.tipo-filtro button:hover {
  background: var(--fill-2);
}
.tipo-filtro button[aria-selected="true"] {
  background: var(--primary-bg);
  color: var(--primary-fg);
  box-shadow: none;
}
.tipo-filtro button[aria-selected="true"] b,
.tipo-filtro button[aria-selected="true"] .icon {
  color: inherit;
  opacity: 0.7;
}
.tipo-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 15px;
  color: var(--text);
}
.tipo-titulo .tipo-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.proj-tipo {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: -2px;
}
.proj-mais {
  margin-top: 32px;
}
.proj-mais summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  list-style: none;
}
.proj-mais summary::-webkit-details-marker {
  display: none;
}
.proj-mais[open] summary {
  margin-bottom: 14px;
}
@media (max-width: 860px) {
  .tp-pe {
    grid-template-columns: 1fr;
  }
  .modal.modal-tipos {
    padding: 18px;
  }
  .tp-pe {
    margin: 0 -18px -18px;
    padding: 14px 18px 18px;
    bottom: -18px;
  }
}
.pn-dicas > div {
  flex: 1;
  min-width: 0;
}

/* ───────────── novo / fechar projeto ───────────── */
.novo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  margin: 0 0 16px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.15s;
}
.novo-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.novo-btn:active {
  transform: scale(0.98);
}
.novo-btn kbd {
  display: none;
  margin-left: auto;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.55;
}
.is-desktop .novo-btn kbd {
  display: inline;
}
.proj-card {
  position: relative;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.proj-card-link {
  display: grid;
  gap: 6px;
  padding: 12px 12px 10px;
}
.proj-card-link .eyebrow {
  font-size: 10.5px;
}
.proj-card-link b {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-fechar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  border: 0;
  border-top: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.proj-fechar .icon {
  width: 14px;
  height: 14px;
}
.proj-fechar:hover {
  background: var(--fill-2);
  color: var(--text);
}
.pn-ola-acoes {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pn-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ───────────── linha do tempo: monitor, agulha e tela cheia ───────────── */
.tl-edit {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.mon {
  border-radius: var(--r-lg);
  background: var(--stage);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(30, 20, 90, 0.5);
}
.mon-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 8px;
  padding: 10px 10px 0;
}
.mon-main.is-solo {
  grid-template-columns: minmax(0, 1fr);
}
.mon-pgm,
.mon-ang {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.mon-pgm {
  aspect-ratio: 16 / 9;
  max-height: 46vh;
  width: 100%;
  justify-self: center;
}
.mon-slot,
.mon-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mon-video {
  object-fit: contain;
  background: #000;
}
[data-estado="vazio"] .mon-video,
[data-estado="sem-midia"] .mon-video,
[data-estado="sem-previa"] .mon-video {
  visibility: hidden;
}
.mon-msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.mon-msg:empty {
  display: none;
}
.mon-tag,
.mon-ang span {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.mon-tag {
  top: 10px;
  left: 10px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mon-tag i,
.mon-ang span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.mon-angs {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 46vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.mon-ang {
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.15s, transform 0.25s var(--spring);
}
.mon-ang:hover {
  box-shadow: inset 0 0 0 2px var(--c);
  transform: translateY(-1px);
}
.mon-ang.is-pgm {
  box-shadow: inset 0 0 0 2px #e34948;
}
.mon-ang span {
  left: 8px;
  bottom: 6px;
}
.mon-ang .mon-msg {
  font-size: 11px;
}
.mon-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}
.mon-tc {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mon-tp {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mon-tp .icon-btn {
  color: rgba(255, 255, 255, 0.75);
}
.mon-tp .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mon-play {
  width: 44px;
  height: 44px;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0b0b0c;
  cursor: pointer;
  transition: transform 0.25s var(--spring);
}
.mon-play:hover {
  transform: scale(1.06);
}
.mon-play:active {
  transform: scale(0.95);
}
.mon-play .icon {
  width: 20px;
  height: 20px;
}
.mon-cheia {
  justify-self: end;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mon-cheia:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}
.tl-ajustar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.tl-ajustar:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.tl-ajustar .icon {
  width: 14px;
  height: 14px;
}
.tl-ruler {
  cursor: col-resize;
  touch-action: none;
}
.tl-needle {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #e34948;
  box-shadow: 0 0 8px rgba(227, 73, 72, 0.6);
  cursor: col-resize;
  touch-action: none;
}
.tl-needle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  right: -8px;
}
.tl-needle-head {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 16px;
  transform: translateX(-50%);
  background: #e34948;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
.tl-needle-tc {
  position: absolute;
  top: 2px;
  left: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e34948;
  color: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 860px) {
  .mon-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .mon-angs {
    grid-auto-flow: column;
    grid-auto-columns: 42%;
    overflow-x: auto;
    max-height: none;
  }
  .mon-bar {
    grid-template-columns: 1fr auto;
  }
  .mon-tp {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}

/* tela cheia: só monitor e linha do tempo */
body.tl-cheia .sidebar,
body.tl-cheia .tabbar,
body.tl-cheia .page-head,
body.tl-cheia .insp,
body.tl-cheia .legend,
body.tl-cheia .loose {
  display: none !important;
}
body.tl-cheia {
  background: #000;
}
body.tl-cheia .shell {
  grid-template-columns: minmax(0, 1fr);
}
body.tl-cheia .page {
  max-width: none;
  padding: 12px 16px 16px;
}
body.tl-cheia .tl-wrap {
  grid-template-columns: minmax(0, 1fr);
}
body.tl-cheia .mon-pgm,
body.tl-cheia .mon-angs {
  max-height: 48vh;
}

/* ───────────── aviso de versão nova (app de desktop) ───────────── */
.atu {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 28%, var(--hairline));
  font-size: 12.5px;
  animation: rise 0.45s var(--ease) both;
}
.atu-topo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.atu-topo b {
  font-size: 13px;
  font-weight: 600;
}
.atu-marca {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, var(--blue), var(--lav));
  color: #fff;
}
.atu-marca .icon {
  width: 12px;
  height: 12px;
}
.atu-build {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}
.atu p {
  color: var(--text-2);
  line-height: 1.4;
}
.atu-erro {
  color: var(--err-text);
}
.atu-sub {
  font-size: 11.5px;
}
.atu-acoes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.atu-alt {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 11.5px;
  color: var(--text-3);
  text-decoration: underline;
  cursor: pointer;
}
.atu-alt:hover {
  color: var(--text);
}
.atu-prog {
  display: grid;
  gap: 6px;
}
.atu-barra {
  height: 5px;
  border-radius: 999px;
  background: var(--fill-2);
  overflow: hidden;
}
.atu-barra span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--lav));
  transition: width 0.3s var(--ease);
}
.atu-barra.is-indef span {
  width: 40%;
  animation: atu-indef 1.2s ease-in-out infinite;
}
@keyframes atu-indef {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: none;
}

/* ───────────── parar a sincronização ───────────── */
.btn-parar {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.btn-parar:hover:not(:disabled) {
  background: color-mix(in srgb, var(--err) 80%, transparent);
  box-shadow: none;
}
.btn-parar .icon {
  width: 14px;
  height: 14px;
}
.cp-pular {
  margin-left: 8px;
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--fill-2);
  color: var(--text-2);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.cp-pular:hover {
  background: color-mix(in srgb, var(--warn) 22%, transparent);
  color: var(--warn-text);
}
.atividade-parar {
  margin-left: auto;
  padding: 2px 9px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--err) 14%, transparent);
  color: var(--err-text);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.atividade-parar:hover {
  background: color-mix(in srgb, var(--err) 24%, transparent);
}
.cp {
  grid-template-columns: 10px minmax(0, 1fr) 90px auto;
}

/* ───────────── organizar (só no app de desktop) ───────────── */
html:not(.is-desktop) .so-desktop {
  display: none;
}
.org-fluxo {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}
.org-passo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.org-passo small {
  color: var(--text-2);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-passo-ic {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--fill-2);
  color: var(--text-2);
  margin-bottom: 4px;
}
.org-passo.is-ok .org-passo-ic {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok-text);
}
.org-seta {
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.org-agora {
  margin-bottom: 16px;
}
.org-agora.is-live .icon {
  animation: spin 1.4s linear infinite;
}
.org-diaria + .org-diaria {
  margin-top: 18px;
}
.org-diaria-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.org-diaria-topo h3 {
  font-size: 14px;
  font-weight: 600;
}
.org-diaria-topo .btn {
  margin-left: auto;
}
.org-cartoes {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.org-cartao {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.org-cartao + .org-cartao {
  border-top: 1px solid var(--hairline);
}
.org-cartao small {
  display: block;
  color: var(--text-2);
  font-size: 12px;
}
.org-pastas-trabalho {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
}
.org-vazio {
  display: flex;
  align-items: center;
  gap: 14px;
}
.org-vazio > .icon {
  width: 28px;
  height: 28px;
  color: var(--text-3);
}
.org-vazio > div {
  flex: 1;
}
@media (max-width: 720px) {
  .org-fluxo {
    flex-direction: column;
  }
  .org-seta {
    transform: rotate(90deg);
  }
  .org-vazio {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ───────────── menu lateral recolhível e plano ───────────── */
.shell {
  transition: grid-template-columns 0.3s var(--spring);
}
.side-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 22px;
}
.side-topo .brand {
  padding: 4px 10px;
  min-width: 0;
}
.side-recolher {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.side-recolher:hover {
  background: var(--fill-2);
  color: var(--text);
}
.side-recolher .icon {
  width: 18px;
  height: 18px;
}
.side-recolhida {
  --sidebar-w: 80px;
}
.side-recolhida .sidebar {
  overflow: hidden;
}
.side-recolhida .side-topo {
  flex-direction: column;
  gap: 12px;
}
.side-recolhida .side-topo .brand {
  padding: 4px 0;
}
.side-recolhida .brand > span,
.side-recolhida .nav-item > span:not(.badge),
.side-recolhida .novo-btn span,
.side-recolhida .novo-btn kbd,
.side-recolhida .atividade-txt,
.side-recolhida .atividade-parar,
.side-recolhida #projCard,
.side-recolhida #atuCard,
.side-recolhida .privacy,
.side-recolhida .plano-card {
  display: none !important;
}
.side-recolhida .nav-label {
  height: 1px;
  padding: 0;
  margin: 0 12px 8px;
  overflow: hidden;
  color: transparent;
  background: var(--hairline);
}
.side-recolhida .nav-item,
.side-recolhida .novo-btn {
  justify-content: center;
  padding: 0;
}
.side-recolhida .nav-item .badge {
  position: absolute;
  top: 5px;
  right: 12px;
  min-width: 8px;
  height: 8px;
  padding: 0;
  font-size: 0;
}
.side-recolhida .atividade {
  justify-content: center;
  padding: 10px 0;
}
.plano-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 11%, transparent), color-mix(in srgb, var(--lav) 15%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lav) 32%, transparent);
}
.plano-card-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plano-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.plano-card p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
}
.plano-card p b {
  color: var(--text);
}
.plano-up,
.plano-mini {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--lav));
  cursor: pointer;
  transition: transform 0.25s var(--spring), filter 0.15s;
}
.plano-up:hover,
.plano-mini:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.plano-up {
  height: 32px;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.plano-up .icon {
  width: 15px;
  height: 15px;
}
.plano-mini {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 12px;
  place-items: center;
}
.side-recolhida .plano-mini {
  display: grid;
}

/* conta Absolute ZRO (opcional, só no site): quem entrou, no cartão do plano e em Ajustes */
.conta-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--lav) 24%, transparent);
  color: var(--text);
  text-decoration: none;
}
.conta-txt {
  display: grid;
  min-width: 0;
}
.conta-txt b,
.conta-txt small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conta-txt b {
  font-size: 12.5px;
  font-weight: 700;
}
.conta-txt small {
  font-size: 11.5px;
  color: var(--text-2);
}
.conta-av {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--lav));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.conta-entrar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.conta-entrar:hover,
.conta-linha:hover b {
  color: var(--text);
  text-decoration: underline;
}
.conta-entrar .icon {
  width: 14px;
  height: 14px;
}
.set-row > .conta-quem {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.conta-quem > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.conta-quem small {
  overflow-wrap: anywhere;
}
/* sem conta: Entrar e Criar conta lado a lado; conta sem o Synquei liberado: aviso em âmbar */
.conta-botoes,
.conta-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.conta-acoes {
  justify-content: flex-end;
  gap: 8px;
}
.conta-linha.sem-acesso small {
  color: var(--warn-text);
}
.side-recolhida .sidebar-foot > .nav-item {
  margin: 0;
}

/* comparação dos planos (Fazer upgrade) */
.modal-planos {
  width: min(880px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.pm-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pm-grade {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .pm-grade {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pm {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px;
  border-radius: 16px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  min-width: 0;
}
.pm.is-destaque {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--blue), var(--lav)) border-box;
  box-shadow: none;
}
.pm-nome {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.pm.is-destaque .pm-nome {
  color: var(--blue-text);
}
.pm-preco {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 4px;
}
.pm-preco b {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pm-preco span,
.pm-sub {
  font-size: 12.5px;
  color: var(--text-2);
}
.pm ul {
  list-style: none;
  margin: 12px 0 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 7px;
}
.pm li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.35;
}
.pm li .icon {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--ok-text);
}
.pm-btn {
  margin-top: auto;
  width: 100%;
}
.pm-btn.is-off {
  opacity: 0.55;
  pointer-events: none;
}
.pm-fino {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
}
.pm-fino a {
  text-decoration: underline;
  color: var(--text-2);
}
@media (prefers-reduced-motion: reduce) {
  .shell {
    transition: none;
  }
}

/* ───────────── analisar a montagem (SFX · Beta) ───────────── */
.page-head h1 .chip {
  vertical-align: middle;
  margin-left: 6px;
}
.sfx-ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--lav) 16%, transparent);
  color: var(--lav-text);
}
.sfx-seqs {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.sfx-seq {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.2s var(--spring);
}
.sfx-seq:hover {
  background: var(--fill-2);
  transform: translateY(-1px);
}
.sfx-seq b,
.sfx-seq-escolhida b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sfx-seq small,
.sfx-seq-escolhida small {
  display: block;
  color: var(--text-2);
  font-size: 12.5px;
}
.sfx-seq > .icon {
  color: var(--text-3);
}
.sfx-seq-escolhida {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sfx-seq-escolhida > div {
  flex: 1;
  min-width: 0;
}
.sfx-dica {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
}
.sfx-dica .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}
.sfx-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sfx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tom) 14%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sfx-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tom);
}
.sfx-trilha {
  position: relative;
  height: 34px;
  margin-top: 16px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, var(--fill-2) 0 2px, transparent 2px 12%), var(--fill);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.sfx-trilha i {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--tom);
}
.sfx-pontos {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sfx-ponto {
  display: grid;
  grid-template-columns: 96px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--hairline);
}
.sfx-ponto.is-fora .sfx-motivo {
  color: var(--text-3);
}
.sfx-tc {
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.sfx-motivo {
  font-size: 13.5px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sfx-escolha {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sfx-som {
  max-width: 230px;
}
.sfx-sem {
  font-size: 12.5px;
}
.sfx-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sfx-feito {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ok-text);
  font-weight: 600;
}
@media (max-width: 860px) {
  .sfx-ponto {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: 10px 14px;
  }
  .sfx-escolha {
    grid-column: 1 / -1;
  }
}

/* ───────────── família Absolute ZRO na barra lateral ───────────── */
/* ícone de cada app com o próprio desenho; 22px ocupando o lugar dos 18px do ícone de linha, para os nomes alinharem */
.familia-icone {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 -2px;
  border-radius: 6px;
  object-fit: contain;
}
/* recolhido: a lista cresce, então a barra rola em vez de cortar o rodapé */
.side-recolhida .sidebar {
  overflow-x: hidden;
  overflow-y: auto;
}
