:root {
  color-scheme: light;
  --ink: #111a20;
  --muted: #63727b;
  --soft: #f3f6fa;
  --surface: #ffffff;
  --surface-2: #f8fbfd;
  --line: #dce5eb;
  --dark: #071014;
  --dark-2: #101c22;
  --blue: #258bdb;
  --cyan: #17c7df;
  --aqua: #e7fbff;
  --mint: #def8ed;
  --gold: #c78a2f;
  --coral: #d86d4c;
  --shadow: 0 18px 60px rgba(18, 30, 38, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(23, 199, 223, 0.12), transparent 36vw),
    linear-gradient(180deg, #f8fbfd 0%, var(--soft) 45%, #eef3f7 100%);
  color: var(--ink);
  font-family:
    "Outfit",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body.role-agency {
  --blue: #2479d8;
  --cyan: #16bfd3;
  --soft: #eef4f8;
  --surface: #ffffff;
  --surface-2: #f7fbfd;
  --line: #d5e2ea;
  --dark: #071014;
  --dark-2: #101c22;
  --shadow: 0 18px 60px rgba(18, 30, 38, 0.1);
  background:
    radial-gradient(circle at 88% 8%, rgba(22, 191, 211, 0.14), transparent 34vw),
    radial-gradient(circle at 4% 44%, rgba(36, 121, 216, 0.1), transparent 28vw),
    linear-gradient(180deg, #f9fcfe 0%, #eef4f8 48%, #e7eef4 100%);
}

body.role-client {
  --blue: #13a874;
  --cyan: #20c7cd;
  --soft: #eef8f5;
  --surface: #fcfffd;
  --surface-2: #f4fbf8;
  --line: #cfe5dd;
  --dark: #061412;
  --dark-2: #10221f;
  --shadow: 0 18px 56px rgba(10, 67, 56, 0.11);
  background:
    radial-gradient(circle at 82% 10%, rgba(32, 199, 205, 0.2), transparent 34vw),
    radial-gradient(circle at 24% 0%, rgba(19, 168, 116, 0.16), transparent 28vw),
    linear-gradient(180deg, #fbfffd 0%, #eef8f5 52%, #eaf3f0 100%);
}

body.auth-locked {
  min-height: 100vh;
  background-color: #050b0e;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(23, 199, 223, 0.24), transparent 28vw),
    radial-gradient(circle at 18% 84%, rgba(37, 139, 219, 0.16), transparent 24vw),
    linear-gradient(135deg, #050b0e 0%, #071014 52%, #0b171b 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 4vw, 52px);
  color: #f7fbfc;
}

.auth-locked .auth-shell {
  display: block;
}

.auth-locked .app-shell {
  display: none;
}

.auth-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(23, 199, 223, 0.1) 0 1px, transparent 1px);
  background-size: 18px 18px, 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

.auth-kicker,
.auth-card-header span {
  color: #8beeff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-logo-lockup {
  width: min(1120px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding-top: 0;
}

.auth-stage {
  width: min(1120px, calc(100vw - 36px));
  min-height: calc(100vh - 154px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 430px);
  gap: clamp(28px, 7vw, 104px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) 0;
}

.auth-hero {
  display: grid;
  gap: 20px;
  max-width: 680px;
}

.auth-logo {
  width: clamp(96px, 9vw, 130px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(23, 199, 223, 0.14));
}

.auth-hero h1 {
  max-width: 720px;
  color: #f8fdff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7.4vw, 112px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.auth-hero > p {
  max-width: 620px;
  color: rgba(232, 244, 248, 0.72);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 520px;
}

.auth-points span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(139, 238, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 253, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: none;
}

.auth-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(139, 238, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
    rgba(7, 16, 20, 0.88);
  color: #f8fdff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(23, 199, 223, 0.22), transparent 54%),
    rgba(255, 255, 255, 0.02);
}

.auth-card-header {
  display: grid;
  gap: 8px;
}

.auth-card-header span {
  color: #8beeff;
}

.auth-card-header strong {
  color: #f8fdff;
  font-size: 48px;
  line-height: 1;
}

.auth-card-header p,
.auth-card-footer {
  color: rgba(232, 244, 248, 0.66);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  color: rgba(248, 253, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid rgba(139, 238, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #111a20;
  box-shadow: none;
}

.auth-form input:focus {
  outline: 3px solid rgba(23, 199, 223, 0.22);
  border-color: #8beeff;
}

.auth-form .primary-button {
  min-height: 54px;
  margin-top: 6px;
  background: linear-gradient(135deg, #f8fdff, #c9f7ff);
  color: #071014;
  font-weight: 900;
  border-color: transparent;
  box-shadow: none;
}

.login-error {
  min-height: 20px;
  color: #ffb4a8;
  font-size: 14px;
  font-weight: 800;
}

.auth-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-card-footer span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 244, 248, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.auth-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
}

.auth-orb-one {
  width: 260px;
  height: 260px;
  right: 14vw;
  top: 16vh;
  background: rgba(23, 199, 223, 0.26);
}

.auth-orb-two {
  width: 180px;
  height: 180px;
  left: 8vw;
  bottom: 10vh;
  background: rgba(37, 139, 219, 0.18);
}

.auth-preview {
  display: none;
}

.auth-preview div {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.auth-preview span {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.auth-preview span:nth-child(2) {
  width: 72%;
}

.auth-preview span:nth-child(3) {
  width: 48%;
}

@keyframes authMarquee {
  to {
    transform: translateX(-50%);
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(23, 199, 223, 0.08), transparent 24%),
    var(--dark);
  color: #eef8fc;
}

.role-agency .sidebar {
  background:
    linear-gradient(180deg, rgba(36, 121, 216, 0.14), transparent 28%),
    linear-gradient(135deg, #061019 0%, #071014 56%, #0b1c25 100%);
}

.role-client .sidebar {
  background:
    linear-gradient(180deg, rgba(32, 199, 205, 0.14), transparent 26%),
    linear-gradient(135deg, #04100f 0%, #061412 58%, #0b211e 100%);
}

.brand {
  display: grid;
  gap: 4px;
  padding-bottom: 2px;
}

.brand img {
  width: 104px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.94;
}

.brand span,
.client-switcher span,
.sidebar-status span,
.sidebar-footer span {
  display: block;
}

.brand span,
.client-switcher span,
.sidebar-status span,
.sidebar-footer span {
  color: rgba(238, 248, 252, 0.62);
  font-size: 12px;
}

.client-switcher {
  position: relative;
}

.client-switcher-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--dark-2);
  color: inherit;
  text-align: left;
}

.client-switcher-trigger:hover,
.client-switcher-trigger[aria-expanded="true"] {
  border-color: rgba(23, 199, 223, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.role-agency .client-switcher-trigger[aria-expanded="true"],
.role-agency .client-switcher-trigger:hover {
  border-color: rgba(36, 121, 216, 0.46);
  box-shadow: 0 0 0 3px rgba(36, 121, 216, 0.12);
}

.client-switcher-trigger:disabled {
  cursor: default;
  opacity: 0.92;
}

.role-client .client-switcher-trigger {
  border-color: rgba(112, 232, 190, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(32, 199, 205, 0.08)),
    var(--dark-2);
}

.role-client .client-switcher-trigger:hover {
  transform: none;
  border-color: rgba(112, 232, 190, 0.18);
}

.client-switcher strong {
  display: block;
  margin-top: 6px;
}

.client-badge {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(23, 199, 223, 0.12);
  color: #a8f3ff !important;
  white-space: nowrap;
}

.role-client .client-badge {
  background: rgba(32, 199, 205, 0.13);
  color: #a7fff0 !important;
}

.client-switcher-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 16, 20, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.client-switcher-menu[hidden] {
  display: none;
}

.client-switcher-menu label {
  color: rgba(238, 248, 252, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-switcher-menu input {
  width: 100%;
  min-height: 38px;
  margin-top: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fdff;
}

.client-switcher-menu input::placeholder {
  color: rgba(238, 248, 252, 0.42);
}

.client-switcher-list {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
}

.client-switcher-option {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #f8fdff;
  text-align: left;
}

.client-switcher-option:hover,
.client-switcher-option.active {
  border-color: rgba(23, 199, 223, 0.22);
  background: rgba(23, 199, 223, 0.1);
}

.role-agency .client-switcher-option:hover,
.role-agency .client-switcher-option.active {
  border-color: rgba(36, 121, 216, 0.26);
  background: rgba(36, 121, 216, 0.12);
}

.role-client .client-switcher-option:hover,
.role-client .client-switcher-option.active {
  border-color: rgba(32, 199, 205, 0.26);
  background: rgba(32, 199, 205, 0.12);
}

.client-switcher-option span {
  display: grid;
  gap: 2px;
}

.client-switcher-option strong {
  margin: 0;
  font-size: 14px;
}

.client-switcher-option small {
  color: rgba(238, 248, 252, 0.56);
  font-size: 12px;
  font-weight: 700;
}

.client-switcher-option em {
  min-width: 28px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 199, 223, 0.16);
  color: #a8f3ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.client-switcher-empty {
  padding: 12px;
  color: rgba(238, 248, 252, 0.58);
  font-size: 13px;
  text-align: center;
}

.sidebar-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sidebar-status div {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-status strong {
  display: block;
  margin-top: 3px;
  color: #f8fdff;
  font-size: 18px;
}

.main-nav {
  display: grid;
  gap: 7px;
}

.nav-group {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.primary-nav {
  margin-top: 2px;
  padding-top: 0;
  border-top: 0;
}

.nav-group > span {
  padding: 0 12px;
  color: rgba(238, 248, 252, 0.48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-item,
.role-toggle button,
.segmented button {
  border: 0;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(238, 248, 252, 0.72);
  text-align: left;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(23, 199, 223, 0.13);
  color: #f8fdff;
}

.role-agency .nav-item:hover,
.role-agency .nav-item.active {
  background: linear-gradient(135deg, rgba(36, 121, 216, 0.24), rgba(22, 191, 211, 0.1));
  box-shadow: inset 3px 0 0 rgba(22, 191, 211, 0.85);
}

.role-client .nav-item:hover,
.role-client .nav-item.active {
  background: linear-gradient(135deg, rgba(19, 168, 116, 0.28), rgba(32, 199, 205, 0.1));
  box-shadow: inset 3px 0 0 rgba(112, 232, 190, 0.9);
}

.nav-item:hover {
  transform: translateX(2px);
}

svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.nav-item > svg {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

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

.nav-copy strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.1;
}

.nav-copy small {
  color: rgba(238, 248, 252, 0.48);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.nav-item.active .nav-copy small,
.nav-item:hover .nav-copy small {
  color: rgba(238, 248, 252, 0.72);
}

.sidebar-footer {
  margin-top: auto;
}

.session-client .sidebar-footer {
  display: none;
}

.role-toggle {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.role-toggle button {
  min-height: 34px;
  border-radius: 6px;
  background: transparent;
  color: rgba(238, 248, 252, 0.68);
}

.role-toggle button.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--dark);
  font-weight: 800;
}

.role-agency .role-toggle button.active {
  color: #f8fdff;
  box-shadow: 0 10px 24px rgba(36, 121, 216, 0.24);
}

.role-client .role-toggle button.active {
  color: #04100f;
  box-shadow: 0 10px 24px rgba(19, 168, 116, 0.25);
}

.logout-button {
  min-height: 40px;
}

.workspace {
  min-width: 0;
  padding: 24px 28px 34px;
  overflow-x: hidden;
}

.role-agency .workspace {
  background:
    radial-gradient(circle at 94% 2%, rgba(22, 191, 211, 0.12), transparent 24vw),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 240px);
}

.role-client .workspace {
  background:
    radial-gradient(circle at 92% 4%, rgba(32, 199, 205, 0.16), transparent 24vw),
    linear-gradient(180deg, rgba(252, 255, 253, 0.5), transparent 240px);
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(220, 229, 235, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 34px rgba(18, 30, 38, 0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  pointer-events: none;
}

.role-agency .topbar {
  border-color: rgba(36, 121, 216, 0.18);
  background:
    linear-gradient(90deg, rgba(36, 121, 216, 0.05), rgba(255, 255, 255, 0.78) 34%),
    rgba(255, 255, 255, 0.76);
}

.role-client .topbar {
  border-color: rgba(19, 168, 116, 0.2);
  background:
    linear-gradient(90deg, rgba(19, 168, 116, 0.06), rgba(252, 255, 253, 0.82) 34%),
    rgba(252, 255, 253, 0.78);
}

.role-client .topbar {
  justify-content: flex-end;
  min-height: auto;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  backdrop-filter: none;
}

.role-client .topbar > div:first-child,
.role-client .context-pills {
  display: none;
}

.role-client .topbar::before {
  display: none;
}

.role-client .topbar-actions {
  width: 100%;
  justify-content: flex-end;
}

.role-client .search {
  width: min(360px, 100%);
  background: rgba(252, 255, 253, 0.92);
}

.client-only {
  display: none !important;
}

.role-client .client-only {
  display: block !important;
}

.client-overview {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 251, 255, 0.74)),
    var(--surface);
  box-shadow: var(--shadow);
}

.role-client .client-overview {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
}

.client-overview h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 42px);
}

.client-overview p {
  max-width: 680px;
  margin-top: 8px;
}

.client-actions {
  display: flex;
  gap: 10px;
}

.client-action-grid {
  gap: 14px;
  margin-bottom: 14px;
}

.role-client .client-action-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-action-grid article {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.client-action-grid article[data-view-jump] {
  cursor: pointer;
}

.client-action-grid article:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(18, 30, 38, 0.12);
}

.client-action-grid span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-action-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.client-action-grid p {
  margin-top: 8px;
}

.client-showcase {
  margin-bottom: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(37, 139, 219, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(23, 199, 223, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 248, 253, 0.78));
  box-shadow: var(--shadow);
}

.role-client .client-showcase {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.client-showcase-copy {
  max-width: 820px;
  display: grid;
  align-content: center;
}

.client-showcase h2 {
  max-width: 820px;
  margin-top: 6px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
}

.client-showcase p {
  max-width: 650px;
  margin-top: 14px;
  font-size: 17px;
}

.client-day-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 20px;
}

.client-day-summary article {
  min-height: 66px;
  padding: 12px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.client-day-summary span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-day-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.client-activity-note {
  max-width: 760px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(231, 251, 255, 0.7)),
    var(--surface);
}

.client-activity-note span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-activity-note strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.2;
}

.client-activity-note p {
  margin-top: 7px;
  font-size: 14px;
}

.client-signal-panel {
  min-height: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 16, 20, 0.96), rgba(18, 58, 75, 0.92)),
    repeating-linear-gradient(135deg, rgba(23, 199, 223, 0.16) 0 10px, rgba(37, 139, 219, 0.08) 10px 20px);
  box-shadow: 0 22px 70px rgba(7, 16, 20, 0.22);
  transform: scale(0.98);
  animation: clientPanelIn 700ms ease forwards;
}

.briefing-header {
  display: grid;
  gap: 8px;
}

.client-signal-panel span,
.briefing-type {
  color: #9cefff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-signal-panel strong {
  display: block;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1;
}

.client-signal-panel p,
.briefing-item p {
  color: rgba(255, 255, 255, 0.72);
}

.briefing-list {
  display: grid;
  gap: 8px;
}

.briefing-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px;
  border: 1px solid rgba(156, 239, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.briefing-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(23, 199, 223, 0.12);
}

.briefing-item.reminder .briefing-dot {
  background: #ffd36a;
  box-shadow: 0 0 0 5px rgba(255, 211, 106, 0.12);
}

.briefing-item.recurring .briefing-dot {
  background: #8cf0bf;
  box-shadow: 0 0 0 5px rgba(140, 240, 191, 0.12);
}

.briefing-item strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.briefing-item p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.briefing-meta {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(156, 239, 255, 0.12);
  color: #c7f8ff;
  font-size: 11px;
  font-weight: 900;
}

.client-module-panel {
  gap: 14px;
  margin-bottom: 16px;
}

.role-client .client-module-panel {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.module-card {
  min-height: 320px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  animation: clientCardStack 620ms ease forwards;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.module-card:nth-child(2) {
  animation-delay: 90ms;
}

.module-card:nth-child(3) {
  animation-delay: 180ms;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 139, 219, 0.28);
  box-shadow: 0 24px 70px rgba(18, 30, 38, 0.14);
}

.module-visual {
  min-height: 112px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 139, 219, 0.96), rgba(23, 199, 223, 0.72)),
    var(--blue);
  overflow: hidden;
}

.module-visual span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.module-visual span:nth-child(1) {
  width: 88%;
}

.module-visual span:nth-child(2) {
  width: 64%;
}

.module-visual span:nth-child(3) {
  width: 42%;
}

.module-visual.video {
  position: relative;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(7, 16, 20, 0.96), rgba(18, 58, 75, 0.9)),
    var(--dark);
}

.module-visual.video span:first-child {
  width: 66px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.module-visual.video span:last-child {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--blue);
  border-radius: 0;
  background: transparent;
  transform: translateY(-31px);
}

.module-visual.muted {
  background:
    linear-gradient(135deg, rgba(99, 114, 123, 0.2), rgba(220, 229, 235, 0.7)),
    var(--surface-2);
}

.module-visual.muted span {
  background: rgba(99, 114, 123, 0.25);
}

.module-copy span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-copy strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.module-copy p {
  margin-top: 10px;
}

.module-button {
  min-height: 44px;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.module-button.ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.client-progress {
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.role-client .client-progress {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-progress article {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.client-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-progress strong {
  font-size: 15px;
}

.client-progress article.active {
  background: linear-gradient(180deg, rgba(231, 251, 255, 0.9), #fff);
}

.client-progress article.active span {
  color: var(--blue);
}

.role-client .dashboard-grid {
  display: none;
}

.role-client .dashboard-detail-grid,
.role-client .dashboard-youtube-panel {
  display: none;
}

@keyframes clientPanelIn {
  to {
    transform: scale(1);
  }
}

@keyframes signalGrow {
  from {
    transform: scaleX(0.18);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes clientCardStack {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 3px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 15px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

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

.context-pills,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.context-pills span,
.section-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search {
  width: min(420px, 35vw);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(18, 30, 38, 0.06);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button,
.primary-button,
.secondary-button,
.text-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-button {
  width: 42px;
  background: var(--surface);
  color: var(--ink);
}

.primary-button {
  padding: 0 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-color: transparent;
  color: #061116;
  font-weight: 800;
}

.secondary-button,
.text-button {
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
}

.text-button {
  min-height: 34px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.role-client .dashboard-hero,
.role-client .workflow-band {
  display: none;
}

.client-hero {
  position: relative;
  min-height: 360px;
  margin-bottom: 18px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(4, 12, 17, 0.94), rgba(10, 31, 42, 0.78)),
    radial-gradient(circle at 88% 18%, rgba(23, 199, 223, 0.48), transparent 30%),
    repeating-linear-gradient(135deg, rgba(23, 199, 223, 0.12) 0 10px, rgba(37, 139, 219, 0.08) 10px 20px);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(7, 16, 20, 0.22);
  isolation: isolate;
}

.client-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(23, 199, 223, 0.1));
  pointer-events: none;
  z-index: -1;
}

.client-hero-content {
  max-width: 1040px;
}

.client-kicker {
  display: block;
  color: #9cefff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.client-hero h2 {
  max-width: 1040px;
  margin-top: 10px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  color: #fff;
}

.inline-logo-chip {
  display: inline-block;
  width: clamp(84px, 10vw, 136px);
  height: clamp(34px, 4vw, 50px);
  margin: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  box-shadow: inset 0 0 24px rgba(23, 199, 223, 0.18);
}

.client-hero p {
  max-width: 670px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

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

.client-primary,
.client-secondary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.client-primary {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #061116;
}

.client-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.client-live-card {
  position: absolute;
  right: clamp(20px, 3vw, 42px);
  bottom: clamp(20px, 3vw, 42px);
  width: min(320px, calc(100% - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 15, 20, 0.66);
  backdrop-filter: blur(18px);
}

.client-live-card span,
.client-live-card p {
  color: rgba(255, 255, 255, 0.7);
}

.client-live-card strong {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-size: 34px;
}

.client-marquee {
  margin-bottom: 18px;
  border: 1px solid rgba(37, 139, 219, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.client-marquee div {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 12px 0 12px 34px;
  animation: clientMarquee 24s linear infinite;
}

.client-marquee span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

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

.role-client .client-bento {
  display: grid !important;
}

.client-bento-card {
  min-height: 154px;
  padding: 18px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 251, 255, 0.6)),
    var(--surface);
  box-shadow: var(--shadow);
  cursor: default;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: clientCardIn 700ms ease forwards;
  transition:
    transform 240ms ease,
    box-shadow 240ms ease;
}

.client-bento-card[data-view-jump] {
  cursor: pointer;
}

.client-bento-card:nth-child(2) {
  animation-delay: 80ms;
}

.client-bento-card:nth-child(3) {
  animation-delay: 160ms;
}

.client-bento-card:nth-child(4) {
  animation-delay: 240ms;
}

.client-bento-card:hover {
  transform: translateY(-3px) scale(1);
  box-shadow: 0 24px 70px rgba(18, 30, 38, 0.15);
}

.client-bento-card.large {
  grid-column: span 2;
}

.client-bento-card.wide {
  grid-column: span 4;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.client-bento-card span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-bento-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.client-bento-card p {
  margin-top: 10px;
}

@keyframes clientMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes clientCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid rgba(37, 139, 219, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 0%, rgba(23, 199, 223, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 251, 255, 0.68)),
    var(--surface);
  box-shadow: 0 18px 56px rgba(18, 30, 38, 0.09);
  overflow: hidden;
}

.dashboard-hero h2 {
  max-width: 780px;
  margin-top: 6px;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 0.98;
}

.dashboard-hero p {
  margin-top: 12px;
  max-width: 620px;
  font-size: 16px;
}

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

.hero-stack {
  display: grid;
  gap: 10px;
}

.hero-stack div {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(37, 139, 219, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.hero-stack span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stack strong {
  text-align: right;
}

.metric,
.panel,
.lead-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.role-agency .metric,
.role-agency .panel,
.role-agency .lead-detail {
  border-color: rgba(36, 121, 216, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 253, 0.92)),
    var(--surface);
}

.role-client .metric,
.role-client .panel,
.role-client .lead-detail {
  border-color: rgba(19, 168, 116, 0.16);
  background:
    linear-gradient(180deg, rgba(252, 255, 253, 0.98), rgba(244, 251, 248, 0.92)),
    var(--surface);
}

.metric {
  min-height: 112px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto 16px 12px auto;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.55;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric strong {
  font-size: 34px;
  line-height: 1;
}

.metric.accent {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(37, 139, 219, 0.96), rgba(7, 16, 20, 0.96)),
    var(--blue);
}

.role-agency .metric.accent {
  background:
    linear-gradient(135deg, rgba(36, 121, 216, 0.98), rgba(7, 16, 20, 0.96)),
    var(--blue);
}

.role-client .metric.accent {
  background:
    linear-gradient(135deg, rgba(19, 168, 116, 0.98), rgba(6, 20, 18, 0.96)),
    var(--blue);
}

.metric.accent span,
.metric.accent small {
  color: rgba(255, 255, 255, 0.72);
}

.workflow-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 30, 38, 0.06);
}

.role-agency .workflow-band {
  border-color: rgba(36, 121, 216, 0.14);
  background: rgba(36, 121, 216, 0.14);
}

.role-client .workflow-band {
  border-color: rgba(19, 168, 116, 0.14);
  background: rgba(19, 168, 116, 0.14);
}

.workflow-step {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  background: var(--surface);
}

.workflow-step span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.workflow-step.is-active span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #061116;
}

.workflow-step small {
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  padding: 18px;
}

.section-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.section-intro h2 {
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 28px);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mini-table,
.crm-table {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

tr[data-lead-id] {
  cursor: pointer;
}

tr[data-lead-id]:hover {
  background: #f2fbff;
}

.lead-name-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.new-lead-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00b7f1, #19d2d8);
  color: #061116;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(23, 199, 223, 0.26);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge.partial {
  background: #fff1de;
  color: #91570f;
}

.badge.complete {
  background: #dff8ee;
  color: #146044;
}

.badge.production,
.badge.approval {
  background: #e8eef8;
  color: #2e507d;
}

.badge.approved,
.badge.aprovado-pelo-cliente {
  background: #dff8ee;
  color: #146044;
}

.badge.rejected,
.badge.reprovado-pelo-cliente {
  background: #ffe4e2;
  color: #9c2f24;
}

.badge.scheduled,
.badge.published {
  background: #f7ead9;
  color: #8a5b16;
}

.module-map {
  display: flex;
  flex-direction: column;
}

.module-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.module-row strong {
  color: var(--muted);
  font-size: 13px;
}

.module-row.is-on strong {
  color: var(--blue);
}

.youtube-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
}

.youtube-board,
.blog-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.youtube-stage {
  min-height: 420px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.youtube-stage.drop-target {
  border-color: rgba(23, 199, 223, 0.72);
  box-shadow:
    inset 0 0 0 2px rgba(23, 199, 223, 0.18),
    0 22px 58px rgba(18, 30, 38, 0.12);
  transform: translateY(-2px);
}

.youtube-stage.approval {
  background:
    linear-gradient(180deg, rgba(255, 241, 222, 0.62), rgba(255, 255, 255, 0.74)),
    var(--surface);
}

.youtube-stage.elaboration {
  background:
    linear-gradient(180deg, rgba(231, 251, 255, 0.72), rgba(255, 255, 255, 0.74)),
    var(--surface);
}

.youtube-stage.published {
  background:
    linear-gradient(180deg, rgba(223, 248, 238, 0.7), rgba(255, 255, 255, 0.74)),
    var(--surface);
}

.youtube-stage header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.youtube-stage header span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.youtube-stage header p {
  margin-top: 4px;
  font-size: 13px;
}

.youtube-stage header strong {
  min-width: 34px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.youtube-stage-list {
  display: grid;
  gap: 10px;
}

.pipeline-empty {
  min-height: 90px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.video-card,
.kanban-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.video-card {
  cursor: pointer;
}

.video-card[draggable="true"] {
  cursor: grab;
}

.video-card[draggable="true"]:active {
  cursor: grabbing;
}

.video-card.dragging {
  opacity: 0.52;
  transform: rotate(1deg) scale(0.98);
  box-shadow: 0 22px 55px rgba(18, 30, 38, 0.18);
}

.video-card:hover,
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(18, 24, 21, 0.1);
}

.video-thumb {
  position: relative;
  height: 132px;
  background:
    linear-gradient(135deg, rgba(7, 16, 20, 0.16), rgba(23, 199, 223, 0.27)),
    repeating-linear-gradient(45deg, #10232a 0 10px, #173945 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
}

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

.video-thumb strong {
  position: relative;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7, 16, 20, 0.58);
}

.video-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-thumb {
  background:
    linear-gradient(135deg, rgba(37, 139, 219, 0.18), rgba(23, 199, 223, 0.26)),
    repeating-linear-gradient(45deg, #13232d 0 10px, #1d4050 10px 20px);
}

.video-card-body,
.kanban-card {
  padding: 13px;
}

.video-next-step {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(220, 229, 235, 0.8);
  border-radius: var(--radius);
  background: rgba(248, 251, 253, 0.86);
}

.video-next-step span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-next-step p {
  font-size: 12px;
  line-height: 1.35;
}

.script-open-button {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

.video-meta,
.field-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

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

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--dark);
  color: #fff;
}

.filters {
  display: flex;
  gap: 8px;
}

select,
input,
textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
}

textarea {
  min-height: 88px;
  padding: 10px;
  resize: vertical;
}

.crm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.crm-main {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.lead-list-shell {
  display: grid;
  gap: 0;
}

.lead-list-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.lead-list-summary article {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.92)),
    var(--surface);
}

.lead-list-summary span,
.lead-list-header span,
.lead-card-contact span,
.lead-card-meta > span:not(.badge),
.lead-card-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lead-list-summary strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.lead-list-summary .has-new {
  background:
    linear-gradient(135deg, rgba(23, 199, 223, 0.16), rgba(255, 255, 255, 0.98)),
    var(--surface);
}

.lead-list-header {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, 0.85fr) minmax(150px, 0.72fr) minmax(140px, 0.62fr) minmax(180px, 0.82fr);
  gap: 12px;
  padding: 13px 18px 9px;
  background: rgba(248, 251, 253, 0.82);
}

.lead-list-header span {
  text-transform: uppercase;
}

.lead-list {
  display: grid;
}

.lead-card-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, 0.85fr) minmax(150px, 0.72fr) minmax(140px, 0.62fr) minmax(180px, 0.82fr);
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.lead-card-row:hover,
.lead-card-row.active {
  background:
    linear-gradient(90deg, rgba(231, 251, 255, 0.95), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.lead-card-row.active {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.lead-card-row:hover {
  transform: translateX(2px);
}

.lead-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lead-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 139, 219, 0.94), rgba(23, 199, 223, 0.82));
  color: #061116;
  font-weight: 900;
}

.lead-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.lead-card-title h3 {
  font-size: 16px;
}

.lead-card-main p,
.lead-card-main small {
  display: block;
  margin-top: 3px;
}

.lead-card-main small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lead-card-contact,
.lead-card-source,
.lead-card-meta,
.lead-card-note {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.lead-card-contact strong,
.lead-card-source strong,
.lead-card-note span,
.lead-card-meta > span:not(.badge) {
  overflow-wrap: anywhere;
}

.lead-card-source span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-card-source strong {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf7fb;
  color: #246c8c;
  font-size: 12px;
}

.lead-card-note span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lead-list-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.lead-detail {
  min-height: 420px;
  padding: 18px;
  position: sticky;
  top: 28px;
  background:
    linear-gradient(180deg, rgba(231, 251, 255, 0.55), transparent 170px),
    var(--surface);
}

.lead-detail h2 {
  margin-bottom: 6px;
}

.lead-detail-hero {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.lead-detail-hero h2 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.05;
}

.lead-detail-status {
  margin-top: 12px;
}

.lead-detail-actions {
  display: grid;
  margin: 12px 0 14px;
}

.lead-detail-actions .primary-button {
  width: 100%;
}

.lead-detail-contact {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lead-detail-contact article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.lead-detail-contact .lead-source-detail {
  border-color: rgba(37, 139, 219, 0.2);
  background:
    linear-gradient(135deg, rgba(231, 251, 255, 0.9), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

.lead-detail-contact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-detail-contact strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.detail-row {
  padding: 11px 0;
  border-bottom: 1px solid rgba(220, 229, 235, 0.88);
}

.detail-row span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow: auto;
}

.kanban-column {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.kanban-column header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.kanban-card {
  margin-bottom: 10px;
  background: var(--surface);
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.clients-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: start;
}

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

.agency-client-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.agency-client-stats article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.92)),
    var(--surface);
  box-shadow: 0 10px 30px rgba(18, 30, 38, 0.07);
}

.agency-client-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.agency-client-stats strong {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.client-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.75fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
  gap: 12px;
  margin-bottom: 16px;
}

.client-command-main,
.client-command-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(18, 30, 38, 0.08);
}

.client-command-main {
  display: grid;
  align-content: space-between;
  background:
    radial-gradient(circle at 90% 0%, rgba(23, 199, 223, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(37, 139, 219, 0.12), transparent 58%),
    var(--surface);
}

.client-command-main > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.client-command-main h3 {
  font-size: 28px;
  line-height: 1;
}

.client-command-main p,
.client-command-card p {
  color: var(--muted);
}

.client-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.client-command-card {
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.client-command-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-command-card strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.15;
}

.client-module-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clients-list {
  display: grid;
  gap: 8px;
}

.clients-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clients-search {
  min-height: 40px;
  width: min(280px, 28vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.clients-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.clients-search input {
  min-height: 38px;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
}

.client-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.client-card:hover,
.client-card.active {
  border-color: rgba(37, 139, 219, 0.36);
  box-shadow: 0 16px 42px rgba(18, 30, 38, 0.1);
  transform: translateY(-1px);
}

.client-card.active {
  background:
    linear-gradient(90deg, rgba(231, 251, 255, 0.9), rgba(255, 255, 255, 0.98)),
    var(--surface);
  box-shadow:
    inset 4px 0 0 var(--cyan),
    0 16px 42px rgba(18, 30, 38, 0.1);
}

.client-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.client-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 139, 219, 0.92), rgba(23, 199, 223, 0.82));
  color: #061116;
  font-weight: 900;
}

.client-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.client-card h3 {
  font-size: 18px;
}

.client-card p {
  margin-top: 4px;
}

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

.client-card-access {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-card-access span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2f7fa;
}

.client-card-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.client-card-actions {
  display: flex;
  gap: 6px;
}

.client-card-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.client-card-actions button:hover {
  border-color: rgba(37, 139, 219, 0.36);
  color: #0a669e;
}

.client-list-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.module-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf7fb;
  color: #246c8c;
  font-size: 12px;
  font-weight: 800;
}

.client-status {
  min-width: 76px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mint);
  color: #146044;
  font-size: 12px;
  font-weight: 900;
}

.client-status.Pausado {
  background: #fff1de;
  color: #91570f;
}

.client-status.Setup {
  background: #e8eef8;
  color: #2e507d;
}

.client-editor form {
  display: grid;
  gap: 14px;
}

.client-editor {
  position: sticky;
  top: 18px;
}

#client-editor-modal {
  width: min(1120px, calc(100vw - 32px));
}

.client-editor-modal-card {
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
}

.client-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.client-form-section {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 253, 0.88)),
    var(--surface-2);
}

.client-form-section h3 {
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
}

.client-form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.module-picker {
  display: grid;
  gap: 8px;
}

.module-picker label {
  min-height: 58px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-weight: 800;
}

.module-picker input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.module-picker span {
  display: grid;
  gap: 3px;
}

.module-picker strong {
  color: var(--ink);
  font-size: 14px;
}

.module-picker small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.module-card-disabled {
  opacity: 0.62;
  filter: saturate(0.72);
}

.module-card-disabled .module-button {
  background: #edf2f6;
  color: var(--muted);
  pointer-events: none;
}

.client-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.field-config-table {
  overflow: auto;
}

.switch-cell {
  text-align: center;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 100%;
  border-radius: 999px;
  background: #d7e1e7;
  transition: background 160ms ease;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.setup-form form,
.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.hidden {
  display: none !important;
}

dialog {
  width: min(820px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

#script-modal {
  width: min(1060px, calc(100vw - 32px));
}

dialog::backdrop {
  background: rgba(16, 24, 22, 0.45);
}

.modal-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-heading,
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.modal-heading {
  margin-bottom: 18px;
}

.modal-actions {
  margin-top: 18px;
  justify-content: flex-end;
}

.script-modal-card {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.script-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.script-copy,
.script-feedback {
  display: grid;
  gap: 12px;
}

.script-box {
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(231, 251, 255, 0.54), transparent 150px),
    var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.58;
  white-space: pre-line;
}

.video-modal-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pipeline-stage-chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf7fb;
  color: #246c8c;
  font-size: 12px;
  font-weight: 900;
}

.thumbnail-uploader {
  cursor: pointer;
}

.thumbnail-uploader input {
  display: none;
}

.thumbnail-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(37, 139, 219, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 16, 20, 0.18), rgba(23, 199, 223, 0.28)),
    repeating-linear-gradient(45deg, #10232a 0 10px, #173945 10px 20px);
  color: #fff;
  overflow: hidden;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.video-builder input,
.video-builder textarea,
.script-feedback textarea {
  width: 100%;
}

.script-feedback textarea {
  resize: vertical;
}

.script-decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.agency-publish-button {
  grid-column: 1 / -1;
}

.danger-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: #ffe4e2;
  color: #9c2f24;
  font-weight: 900;
}

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

/* Flat system refinement */
body.role-agency,
body.role-client {
  --radius: 6px;
  --shadow: 0 1px 0 rgba(18, 30, 38, 0.04);
}

body.role-agency {
  --soft: #f5f7f8;
  --surface: #fffefe;
  --surface-2: #f7f8f8;
  --line: #d9dfdf;
  background-color: #f5f7f8;
  background-image:
    linear-gradient(rgba(18, 30, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 30, 38, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbfa 0%, #f5f7f8 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

body.role-client {
  --soft: #f5f9f7;
  --surface: #fffffd;
  --surface-2: #f6faf8;
  --line: #d4e0dc;
  background-color: #f5f9f7;
  background-image:
    linear-gradient(rgba(7, 16, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 16, 20, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfffd 0%, #f3f8f5 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.role-agency .sidebar,
.role-client .sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #071014;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.role-client .sidebar {
  background: #061412;
}

.brand img {
  width: 76px;
}

.client-switcher-trigger,
.sidebar-status div,
.role-toggle {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.client-switcher-trigger,
.sidebar-status div {
  border-color: rgba(255, 255, 255, 0.14);
}

.role-client .client-switcher-trigger {
  background: rgba(255, 255, 255, 0.055);
}

.nav-item {
  min-height: 48px;
  border-radius: 6px;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.nav-item:hover {
  transform: none;
}

.role-agency .nav-item:hover,
.role-agency .nav-item.active,
.role-client .nav-item:hover,
.role-client .nav-item.active {
  box-shadow: none;
}

.client-switcher {
  display: grid;
  gap: 8px;
}

.client-switcher-menu {
  position: static;
  inset: auto;
  top: auto;
  z-index: auto;
  gap: 8px;
  padding: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: #0b1519;
  box-shadow: none;
}

.role-client .client-switcher-menu {
  background: #0a1715;
}

.client-switcher-menu label {
  color: rgba(238, 248, 252, 0.68);
}

.client-switcher-menu input {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.client-switcher-list {
  max-height: 170px;
}

.client-switcher-option {
  min-height: 46px;
  padding: 8px;
}

.role-agency .nav-item.active,
.role-client .nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fdff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.nav-item.active .nav-copy small,
.nav-item:hover .nav-copy small {
  color: rgba(238, 248, 252, 0.72);
}

.role-agency .nav-item:hover .nav-copy small,
.role-client .nav-item:hover .nav-copy small {
  color: rgba(238, 248, 252, 0.76);
}

.role-agency .nav-item.active .nav-copy small,
.role-client .nav-item.active .nav-copy small {
  color: rgba(238, 248, 252, 0.72);
}

.nav-item > svg {
  background: transparent;
}

.role-toggle {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-toggle button.active {
  background: #f8fdff;
  color: #071014;
  box-shadow: none;
}

.role-agency .role-toggle button.active {
  color: #071014;
}

.role-client .role-toggle button.active {
  background: #effff9;
  color: #061412;
  box-shadow: none;
}

.workspace {
  padding: 24px;
}

.role-agency .workspace,
.role-client .workspace {
  background: transparent;
}

.topbar,
.role-agency .topbar,
.role-client .topbar {
  border-color: var(--line);
  background: rgba(255, 255, 253, 0.86);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.role-client .topbar {
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.topbar::before {
  width: 3px;
  background: var(--blue);
}

.eyebrow,
.client-kicker,
.nav-group > span,
.youtube-stage header span,
.client-action-grid span,
.client-day-summary span,
.client-activity-note span,
.module-copy span,
.client-bento-card span,
.agency-client-stats span,
.client-command-card > span {
  letter-spacing: 0.08em;
  font-size: 11px;
}

h1 {
  font-size: clamp(26px, 2.6vw, 40px);
}

.dashboard-hero,
.client-showcase,
.client-overview,
.client-signal-panel,
.client-action-grid article,
.client-day-summary article,
.client-activity-note,
.module-card,
.client-progress,
.client-bento-card,
.metric,
.panel,
.lead-detail,
.youtube-stage,
.video-card,
.kanban-card,
.agency-client-stats article,
.client-command-main,
.client-command-card,
.client-card,
dialog {
  border-color: var(--line);
  box-shadow: none;
}

.role-agency .metric,
.role-agency .panel,
.role-agency .lead-detail,
.role-client .metric,
.role-client .panel,
.role-client .lead-detail,
.dashboard-hero,
.client-showcase,
.client-bento-card,
.agency-client-stats article,
.client-command-main,
.client-card.active {
  background: rgba(255, 255, 253, 0.92);
}

.role-client .dashboard-hero,
.role-client .client-showcase,
.role-client .client-bento-card,
.role-client .client-card.active {
  background: rgba(252, 255, 253, 0.94);
}

.dashboard-hero,
.client-showcase {
  padding: clamp(22px, 3vw, 34px);
}

.dashboard-hero h2,
.client-showcase h2,
.client-hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.dashboard-hero h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.1vw, 64px);
  line-height: 0.98;
}

.client-showcase h2 {
  max-width: 760px;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 0.96;
}

.hero-stack div,
.client-day-summary article,
.client-activity-note,
.video-next-step,
.client-progress article {
  background: rgba(255, 255, 253, 0.7);
}

.metric {
  min-height: 104px;
}

.metric.accent,
.role-agency .metric.accent,
.role-client .metric.accent {
  background: #111a20;
  color: #fff;
}

.metric::after {
  width: 34px;
  height: 2px;
  background: var(--blue);
}

.primary-button,
.client-primary,
.module-button,
.script-open-button {
  border-color: #111a20;
  background: #111a20;
  color: #fff;
  box-shadow: none;
}

.role-client .primary-button,
.role-client .client-primary {
  border-color: #061412;
  background: #061412;
  color: #fff;
}

.secondary-button,
.text-button,
.icon-button,
.client-secondary,
.module-button.ghost {
  background: rgba(255, 255, 253, 0.88);
  box-shadow: none;
}

.search,
.clients-search,
select,
input,
textarea {
  border-color: var(--line);
  background: rgba(255, 255, 253, 0.9);
  box-shadow: none;
}

.context-pills span,
.section-actions span,
.module-pill,
.status-pill,
.client-card-access span,
.pipeline-stage-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 253, 0.72);
}

.workflow-band,
.role-agency .workflow-band,
.role-client .workflow-band,
.client-progress {
  background: var(--line);
  box-shadow: none;
}

.workflow-step,
.client-progress article {
  background: rgba(255, 255, 253, 0.88);
}

.client-signal-panel {
  color: #f8fdff;
  background: #111a20;
  transform: none;
}

.briefing-item {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
}

.module-visual,
.module-visual.video,
.video-thumb,
.blog-thumb,
.thumbnail-preview {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.06) 75%, transparent 75%, transparent),
    #13232a;
  background-size: 22px 22px;
}

.role-client .module-visual,
.role-client .video-thumb,
.role-client .blog-thumb,
.role-client .thumbnail-preview {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.055) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.055) 50%, rgba(255, 255, 255, 0.055) 75%, transparent 75%, transparent),
    #10221f;
  background-size: 22px 22px;
}

.youtube-stage,
.youtube-stage.approval,
.youtube-stage.elaboration,
.youtube-stage.published {
  background: rgba(255, 255, 253, 0.74);
}

.youtube-stage header strong {
  box-shadow: none;
}

.youtube-stage.drop-target {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px rgba(17, 26, 32, 0.08);
  transform: none;
}

.video-card:hover,
.kanban-card:hover,
.client-card:hover,
.client-card.active,
.module-card:hover,
.client-action-grid article:hover,
.client-bento-card:hover {
  box-shadow: none;
  transform: none;
}

.video-card,
.kanban-card,
.client-card,
.module-card {
  background: rgba(255, 255, 253, 0.9);
}

.client-card.active {
  box-shadow: inset 3px 0 0 var(--blue);
}

.client-avatar {
  border-radius: 50%;
  background: #111a20;
  color: #fff;
}

.role-client .client-avatar {
  background: #061412;
}

.client-card-actions button {
  background: rgba(255, 255, 253, 0.88);
}

.auth-card,
.auth-preview {
  box-shadow: none;
}

.auth-card {
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

/* Login dark composition */
body.auth-locked,
body.auth-locked.role-agency,
body.auth-locked.role-client {
  min-height: 100vh;
  background-color: #050b0e;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 18%, rgba(23, 199, 223, 0.26), transparent 28vw),
    radial-gradient(circle at 12% 86%, rgba(37, 139, 219, 0.18), transparent 22vw),
    linear-gradient(135deg, #050b0e 0%, #071014 48%, #0d1b20 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

body.auth-locked .auth-shell {
  color: #f8fdff;
}

body.auth-locked .auth-logo-lockup,
body.auth-locked .auth-stage {
  width: min(1160px, calc(100vw - 44px));
}

body.auth-locked .auth-stage {
  min-height: calc(100vh - 150px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 420px);
  gap: clamp(36px, 8vw, 120px);
  align-items: center;
}

body.auth-locked .auth-logo {
  width: clamp(86px, 8vw, 118px);
  opacity: 0.96;
}

body.auth-locked .auth-hero {
  max-width: 650px;
  padding: clamp(18px, 3vw, 34px) 0;
}

body.auth-locked .auth-kicker {
  color: #8beeff;
}

body.auth-locked .auth-hero h1 {
  max-width: 620px;
  color: #f8fdff;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.94;
  text-wrap: balance;
}

body.auth-locked .auth-hero > p {
  max-width: 560px;
  color: rgba(232, 244, 248, 0.72);
}

body.auth-locked .auth-points span {
  border-color: rgba(139, 238, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 253, 255, 0.86);
}

body.auth-locked .auth-card {
  border: 1px solid rgba(139, 238, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.05)),
    rgba(7, 16, 20, 0.9);
  color: #f8fdff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

body.auth-locked .auth-card-header span {
  color: #8beeff;
}

body.auth-locked .auth-card-header strong {
  color: #f8fdff;
}

body.auth-locked .auth-card-header p,
body.auth-locked .auth-card-footer {
  color: rgba(232, 244, 248, 0.66);
}

body.auth-locked .auth-form label {
  color: rgba(248, 253, 255, 0.82);
}

body.auth-locked .auth-form input {
  border-color: rgba(139, 238, 255, 0.18);
  background: rgba(255, 255, 255, 0.93);
  color: #111a20;
}

body.auth-locked .auth-form .primary-button {
  background: linear-gradient(135deg, #f8fdff, #c9f7ff);
  color: #071014;
  border-color: transparent;
}

body.auth-locked .auth-card-footer span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 244, 248, 0.72);
}

@media (max-width: 1100px) {
  .auth-stage {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .auth-hero {
    max-width: none;
  }

  .auth-card {
    max-width: 560px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .main-nav {
    gap: 10px;
  }

  .primary-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .agency-settings-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group > span {
    grid-column: 1 / -1;
  }

  .dashboard-hero,
  .workflow-band,
  .client-showcase,
  .client-module-panel,
  .client-progress,
  .agency-client-stats,
  .client-command-center,
  .dashboard-grid,
  .content-grid,
  .crm-layout,
  .setup-layout,
  .clients-layout,
  .youtube-board,
  .blog-board,
  .script-review-layout {
    grid-template-columns: 1fr;
  }

  .lead-detail {
    position: static;
  }

  .client-editor {
    position: static;
  }

  .lead-list-header {
    display: none;
  }

  .lead-card-row {
    grid-template-columns: 1fr 1fr;
  }

  .lead-card-main,
  .lead-card-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 14px;
  }

  .auth-logo-lockup {
    width: 100%;
    padding-top: 2px;
  }

  .auth-stage {
    width: 100%;
    gap: 26px;
    min-height: auto;
    padding: 24px 0;
  }

  .auth-hero {
    gap: 18px;
  }

  .auth-logo {
    width: 122px;
  }

  .auth-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 0.96;
  }

  .auth-hero > p {
    font-size: 17px;
  }

  .auth-points {
    gap: 7px;
  }

  .auth-card {
    padding: 18px;
    border-radius: var(--radius);
  }

  .auth-card-header strong {
    font-size: 30px;
  }

  .auth-preview,
  .auth-orb {
    display: none;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .toolbar,
  .section-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .filters,
  .context-pills,
  .section-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .primary-nav,
  .agency-settings-nav {
    grid-template-columns: 1fr;
  }

  .search {
    width: 100%;
  }

  .dashboard-grid,
  .dashboard-hero,
  .workflow-band,
  .client-day-summary,
  .client-showcase,
  .client-module-panel,
  .client-progress,
  .agency-client-stats,
  .client-command-center,
  .youtube-strip,
  .youtube-board,
  .blog-board,
  .kanban,
  .form-grid,
  .script-review-layout,
  .video-field-grid {
    grid-template-columns: 1fr;
  }

  .lead-list-summary,
  .lead-card-row {
    grid-template-columns: 1fr;
  }

  .lead-list-summary {
    gap: 1px;
  }

  .lead-list-summary article {
    min-height: 62px;
  }

  .lead-card-row {
    gap: 10px;
    min-height: auto;
    padding: 16px;
  }

  .lead-card-row:hover {
    transform: none;
  }

  .lead-avatar {
    width: 38px;
    height: 38px;
  }

  .client-hero {
    min-height: auto;
  }

  .role-client .client-showcase,
  .role-client .client-module-panel,
  .role-client .client-progress {
    grid-template-columns: 1fr;
  }

  .client-showcase {
    padding: 18px;
  }

  .client-command-main,
  .client-command-card {
    min-height: auto;
  }

  .client-card {
    grid-template-columns: 1fr;
  }

  .clients-list-actions,
  .client-form-pair,
  .client-editor-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .clients-search {
    width: 100%;
  }

  .client-card-side {
    justify-items: stretch;
  }

  .client-status,
  .client-card-actions button {
    width: 100%;
  }

  .client-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .client-command-main > div,
  .client-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-showcase h2 {
    font-size: clamp(32px, 12vw, 44px);
    line-height: 1.02;
  }

  .client-showcase p {
    font-size: 16px;
  }

  .client-actions {
    width: 100%;
    flex-direction: column;
  }

  .client-primary,
  .client-secondary {
    width: 100%;
    min-height: 48px;
  }

  .client-signal-panel {
    min-height: 210px;
  }

  .module-card {
    min-height: 260px;
  }

  .client-progress article {
    min-height: 70px;
  }

  .client-live-card {
    position: static;
    width: 100%;
    margin-top: 24px;
  }

  .script-decision {
    grid-template-columns: 1fr;
  }

}
