:root {
  --bg: #f8f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #1d2433;
  --muted: #667085;
  --label: #344054;
  --line: #d9deea;
  --purple: #4b0397;
  --orange: #fe9c01;
  --white: #ffffff;
  --teal: #0f8b8d;
  --green: #2f9e44;
  --yellow: #ca8a04;
  --red: #d92d20;
  --blue: #2563eb;
  --shadow: 0 14px 34px rgba(29, 36, 51, 0.08);
  --shadow-hover: 0 20px 48px rgba(29, 36, 51, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 1.25, 0.32, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.system-preloader {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 24% 18%, rgba(254, 156, 1, 0.34), transparent 28%),
    radial-gradient(circle at 76% 70%, rgba(75, 3, 151, 0.46), transparent 32%),
    linear-gradient(135deg, #4b0397, #1d1130 58%, #fe9c01);
  color: #fff;
}

.preloader-card {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(18, 16, 26, 0.48);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  animation: fadeIn 260ms var(--ease-out) both;
}

.preloader-card img {
  width: 132px;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  animation: logoPulse 1.1s var(--ease-out) infinite alternate;
}

.preloader-card strong {
  font-size: 1.4rem;
}

.preloader-text {
  position: relative;
  width: 100%;
  min-height: 24px;
  text-align: center;
  overflow: hidden;
}

.preloader-text span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: preloaderText 1100ms var(--ease-out) forwards;
}

.preloader-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, #fe9c01);
  animation: preloaderBar 1s var(--ease-out) forwards;
}

body[data-theme="dark"] {
  --bg: #10031f;
  --surface: #211338;
  --surface-2: #2c1a49;
  --text: #f5efff;
  --muted: #d8caef;
  --label: #eee8ff;
  --line: rgba(194, 163, 255, 0.22);
  --purple: #9b65ff;
  --orange: #ffbf37;
  --blue: #32a9ff;
  --green: #22c77c;
  --yellow: #ffd447;
  --red: #ff5c73;
  --shadow: 0 14px 34px rgba(5, 0, 18, 0.34);
  --shadow-hover: 0 20px 48px rgba(5, 0, 18, 0.48);
}

body[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #210743 0%, #130125 100%);
}

body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .toolbar select,
body[data-theme="dark"] .toolbar input[type="date"],
body[data-theme="dark"] .record,
body[data-theme="dark"] .activity-row,
body[data-theme="dark"] .requirement-mini-card,
body[data-theme="dark"] .check-row {
  background: #24143c;
  color: var(--text);
}

body[data-theme="dark"]::before {
  opacity: 0.12;
  background:
    radial-gradient(circle at 18% 16%, rgba(254, 156, 1, 0.18), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(122, 61, 210, 0.24), transparent 30%),
    linear-gradient(120deg, rgba(75, 3, 151, 0.16), rgba(18, 16, 26, 0));
}

body[data-theme="dark"] .area-leads,
body[data-theme="dark"] .requirement-counts span,
body[data-theme="dark"] .day.out {
  background: #24143c;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(254, 156, 1, 0.12), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(75, 3, 151, 0.10), transparent 30%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  animation: ambientShift 18s var(--ease-out) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(254, 156, 1, 0.22), transparent 28%),
    radial-gradient(ellipse at 72% 22%, rgba(112, 79, 247, 0.22), transparent 30%),
    radial-gradient(ellipse at 48% 82%, rgba(23, 166, 115, 0.10), transparent 26%);
  filter: blur(28px) saturate(1.08);
  transform: translate3d(0, 0, 0);
  animation: liquidFlow 16s var(--ease-out) infinite alternate;
}

body[data-theme="dark"]::after {
  opacity: 0.14;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(254, 156, 1, 0.20), transparent 28%),
    radial-gradient(ellipse at 72% 22%, rgba(148, 97, 255, 0.28), transparent 30%),
    radial-gradient(ellipse at 48% 82%, rgba(37, 116, 255, 0.12), transparent 26%);
}

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

button {
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

button::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.34), transparent 65%);
  transform: translateX(-120%) rotate(12deg);
  transition: transform 520ms var(--ease-out);
  pointer-events: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

button:hover:not(:disabled)::after {
  transform: translateX(120%) rotate(12deg);
}

button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

button.is-rippling::before {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleBurst 520ms var(--ease-out);
  pointer-events: none;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(75, 3, 151, 0.10), transparent 35%),
    linear-gradient(315deg, rgba(254, 156, 1, 0.14), transparent 42%),
    var(--bg);
  animation: loginBreath 12s var(--ease-out) infinite alternate;
}

.login-panel {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: stretch;
}

.brand-panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: riseIn 700ms var(--ease-out) both;
}

.auth-panel {
  animation-delay: 100ms;
}

.brand-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  width: min(250px, 100%);
  height: auto;
  animation: logoFloat 4.8s var(--ease-out) infinite alternate;
  transform-origin: center;
}

.brand-panel h1,
.auth-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-panel p,
.auth-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-panel {
  padding: 30px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--label);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.field select,
.toolbar select,
.toolbar input[type="date"] {
  background:
    linear-gradient(180deg, #ffffff, #fbfbff),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 34px 9px 12px;
  color: var(--text);
  box-shadow: 0 6px 16px rgba(29, 36, 51, 0.04);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.field select:hover,
.toolbar select:hover,
.toolbar input[type="date"]:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 3, 151, 0.28);
  box-shadow: 0 10px 22px rgba(75, 3, 151, 0.10);
}

input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(75, 3, 151, 0.32);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(75, 3, 151, 0.05), rgba(254, 156, 1, 0.08));
  cursor: pointer;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

input[type="file"]:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 12px 26px rgba(254, 156, 1, 0.14);
}

input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 7px;
  margin-right: 12px;
  padding: 8px 11px;
  background: var(--purple);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(78, 21, 156, 0.13);
  transform: translateY(-1px);
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 38px;
  border-radius: 7px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 3, 151, 0.22);
}

.secondary {
  background: #fff4df;
  color: #8a4c00;
  box-shadow: 0 8px 18px rgba(254, 156, 1, 0.14);
}

.ghost {
  background: var(--surface-2);
  color: var(--label);
}

body[data-theme="dark"] .secondary {
  background: rgba(254, 156, 1, 0.18);
  color: #ffe0a8;
  border: 1px solid rgba(254, 156, 1, 0.32);
}

body[data-theme="dark"] .ghost {
  background: #2a243d;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .danger {
  background: rgba(217, 45, 32, 0.16);
  color: #ffb8b2;
  border: 1px solid rgba(217, 45, 32, 0.3);
}

.danger {
  background: #fff1f0;
  color: var(--red);
}

.error {
  color: var(--red);
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  animation: toastIn 260ms var(--ease-out) both;
  font-weight: 750;
}

.toast-success {
  border-color: #b7e4c2;
  background: #edf9f0;
  color: #1b6b32;
}

.toast-error {
  border-color: #ffc4be;
  background: #fff1f0;
  color: #a12116;
}

body[data-theme="dark"] .toast-success {
  background: #14351f;
  color: #c7f4d1;
}

body[data-theme="dark"] .toast-error {
  background: #3d1512;
  color: #ffd6d2;
}

.toast-exit {
  animation: toastOut 180ms var(--ease-out) forwards;
}

.demo-users {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.demo-users summary {
  cursor: pointer;
  color: var(--purple);
  font-weight: 800;
}

.mini-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

body[data-theme="dark"] .mini-table th,
body[data-theme="dark"] .data-table th {
  background: #29233d;
  color: var(--text);
}

body[data-theme="dark"] .mini-table td,
body[data-theme="dark"] .data-table td {
  color: var(--text);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .data-table tbody tr {
  background: rgba(30, 26, 46, 0.72);
}

body[data-theme="dark"] .data-table tbody tr:hover {
  background: rgba(42, 36, 61, 0.95);
}

.mini-table {
  margin-top: 10px;
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px 1fr;
}

.sidebar {
  background: var(--purple);
  color: #fff;
  padding: 20px 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  height: 100vh;
  position: sticky;
  top: 0;
  animation: slideInLeft 560ms var(--ease-out) both;
}

.sidebar-brand {
  display: grid;
  gap: 8px;
  padding: 4px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand img {
  width: 118px;
  max-width: 100%;
  background: var(--white);
  border-radius: 6px;
  animation: logoPulse 5s var(--ease-out) infinite;
}

.sidebar-brand strong {
  font-size: 18px;
}

.sidebar-brand span,
.user-chip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: auto;
}

.nav button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 11px 12px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-weight: 750;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav button.active {
  box-shadow: inset 3px 0 0 var(--orange);
  animation: activeGlow 2.6s var(--ease-out) infinite alternate;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  align-content: start;
}

.user-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 3px;
  min-height: 72px;
  max-height: 92px;
  overflow: hidden;
}

.user-chip strong,
.user-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  animation: fadeIn 520ms var(--ease-out) both;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: dropIn 520ms var(--ease-out) both;
}

.topbar h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.content {
  min-width: 0;
  padding: 24px 26px 36px;
  display: grid;
  gap: 18px;
  align-content: start;
  animation: contentSwap 380ms var(--ease-out) both;
}

.content.route-transitioning {
  animation: routeWaterOut 150ms var(--ease-out) forwards;
  pointer-events: none;
}

.content.route-entering {
  animation: routeWaterIn 260ms var(--ease-out) both;
}

.section {
  display: grid;
  gap: 14px;
  animation: riseIn 460ms var(--ease-out) both;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.section-head h3 {
  margin: 0;
  font-size: 19px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

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

.stat,
.panel,
.record,
.brand-card,
.pauta-card,
.project-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
  will-change: transform;
}

.stat:hover,
.panel:hover,
.record:hover,
.brand-card:hover,
.pauta-card:hover,
.project-row:hover,
.area-card:hover,
.user-list-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(75, 3, 151, 0.22);
}

.stat {
  padding: 16px;
  min-height: 108px;
  animation: popIn 520ms var(--ease-spring) both;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  animation: numberPop 620ms var(--ease-spring) both;
}

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

.panel {
  padding: 18px;
  animation: riseIn 460ms var(--ease-out) both;
}

.panel h4,
.record h4,
.pauta-card h4,
.project-row h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar > * {
  min-width: 160px;
}

.record {
  padding: 14px;
  display: grid;
  gap: 12px;
  animation: listIn 360ms var(--ease-out) both;
}

.record-meta,
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

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

.profile-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  background: var(--white);
  flex: 0 0 auto;
  transition: transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-out);
}

.profile-photo:hover {
  transform: scale(1.07) rotate(-2deg);
  box-shadow: 0 12px 24px rgba(75, 3, 151, 0.18);
}

.profile-photo.placeholder {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--white);
  font-weight: 900;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(270px, auto));
  gap: 14px;
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 270px;
  animation: cardDeal 540ms var(--ease-spring) both;
  transform-origin: center bottom;
}

.area-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.area-card-head h3 {
  margin: 0;
  font-size: 18px;
}

.area-leads {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #fafbff;
  border: 1px solid var(--line);
}

.area-leads span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 4px;
}

.compact-user,
.user-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compact-user + .compact-user {
  margin-top: 6px;
}

.mini-action {
  min-width: 42px;
  min-height: 30px;
  padding: 5px 8px;
  font-weight: 900;
}

.intern-list summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--purple);
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.intern-list summary:hover {
  color: #2f0067;
  transform: translateX(2px);
}

.intern-list[open] summary {
  color: var(--orange);
}

.intern-list .stack {
  margin-top: 10px;
  max-height: 300px;
  overflow: auto;
}

.intern-list[open] .stack {
  animation: revealDown 280ms var(--ease-out) both;
}

.user-list-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  animation: listIn 260ms var(--ease-out) both;
}

.user-list-row h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.user-list-row .profile-photo {
  width: 42px;
  height: 42px;
  border-width: 2px;
}

.profile-drawer {
  margin-top: 4px;
  animation: drawerIn 420ms var(--ease-out) both;
}

.compact-form {
  max-width: 860px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
  border: 1px solid transparent;
  animation: badgePop 320ms var(--ease-spring) both;
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}

.badge:hover {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.badge.gray {
  background: #f1f3f7;
  color: #475467;
}

.badge.red {
  background: #fff1f0;
  color: var(--red);
  border-color: #ffd0cc;
}

.badge.yellow {
  background: #fff8db;
  color: var(--yellow);
  border-color: #fae597;
}

.badge.green {
  background: #eaf7ed;
  color: var(--green);
  border-color: #c7ebd0;
}

.badge.blue {
  background: #eaf1ff;
  color: var(--blue);
  border-color: #cfe0ff;
}

.badge.purple {
  background: #f0e8ff;
  color: var(--purple);
  border-color: #d8c3ff;
}

body[data-theme="dark"] .badge.gray {
  background: #332d43;
  color: #eee8ff;
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .badge.red {
  background: rgba(217, 45, 32, 0.22);
  color: #ffc4be;
  border-color: rgba(255, 196, 190, 0.28);
}

body[data-theme="dark"] .badge.yellow {
  background: rgba(254, 156, 1, 0.2);
  color: #ffe2a8;
  border-color: rgba(254, 156, 1, 0.34);
}

body[data-theme="dark"] .badge.green {
  background: rgba(47, 158, 68, 0.22);
  color: #c9f6d2;
  border-color: rgba(201, 246, 210, 0.22);
}

body[data-theme="dark"] .badge.blue {
  background: rgba(37, 99, 235, 0.22);
  color: #c9d8ff;
  border-color: rgba(201, 216, 255, 0.24);
}

body[data-theme="dark"] .badge.purple {
  background: rgba(139, 92, 246, 0.22);
  color: #e3d7ff;
  border-color: rgba(227, 215, 255, 0.24);
}

.split {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.3fr);
  gap: 16px;
  align-items: start;
}

.campaign-list,
.stack {
  display: grid;
  gap: 12px;
}

.campaign-list > *,
.stack > * {
  animation: listIn 340ms var(--ease-out) both;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.check-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.activity-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 1fr) 160px 150px 100px auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  animation: slideUp 320ms var(--ease-out) both;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.activity-row:hover {
  transform: translateX(3px);
  box-shadow: 0 12px 26px rgba(29, 36, 51, 0.10);
  border-color: rgba(254, 156, 1, 0.38);
}

.activity-row.finalized {
  background: #f8fafc;
}

.calendar-wrap {
  display: grid;
  gap: 14px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.brand-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  animation: popIn 460ms var(--ease-spring) both;
}

.brand-card img {
  width: 64px;
  height: 48px;
  object-fit: contain;
  background: #fff;
}

.brand-avatar {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--white);
  border: 3px solid var(--orange);
  font-weight: 900;
  transition: transform 220ms var(--ease-spring), box-shadow 220ms var(--ease-out);
}

.brand-avatar.logo-img,
.campaign-logo.logo-img,
.requirement-brand-logo.logo-img {
  object-fit: contain;
  background: #fff;
  color: transparent;
}

.brand-card:hover .brand-avatar {
  transform: rotate(-3deg) scale(1.06);
  box-shadow: 0 10px 24px rgba(75, 3, 151, 0.18);
}

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

.campaign-logo {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(254, 156, 1, 0.42);
  background: #fff;
  color: var(--purple);
  font-weight: 900;
  flex: 0 0 auto;
}

.campaign-card:hover .campaign-logo {
  animation: logoPulse 1.8s var(--ease-out) infinite;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.day-name,
.day {
  min-height: 112px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px;
}

.day {
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  animation: calendarCellIn 360ms var(--ease-out) both;
}

.marketing-calendar-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(112, 79, 247, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(112, 79, 247, 0.08), rgba(254, 156, 1, 0.06)),
    var(--surface);
}

.marketing-calendar-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 48%, transparent 62%),
    radial-gradient(circle at 12% 18%, rgba(254, 156, 1, 0.12), transparent 26%);
  opacity: 0.46;
  transform: translateX(-18%);
  animation: calendarWater 8s var(--ease-out) infinite alternate;
}

.marketing-calendar-shell > * {
  position: relative;
  z-index: 1;
}

.marketing-calendar-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.marketing-calendar-summary article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  animation: riseIn 260ms var(--ease-out) both;
}

.marketing-calendar-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.marketing-calendar-summary strong {
  font-size: 24px;
}

.marketing-calendar-summary small {
  color: var(--muted);
}

.day:hover {
  background: #fffaf1;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(254, 156, 1, 0.35);
}

.day.has-work {
  background:
    linear-gradient(180deg, rgba(112, 79, 247, 0.05), transparent 60%),
    var(--surface);
}

.day.has-special {
  box-shadow: inset 0 3px 0 rgba(254, 156, 1, 0.72);
}

.day.loaded {
  background:
    linear-gradient(180deg, rgba(217, 45, 32, 0.07), rgba(254, 156, 1, 0.06)),
    var(--surface);
}

.day-name {
  min-height: auto;
  background: #f1f3f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.day:nth-child(7n),
.day-name:nth-child(7n) {
  border-right: 0;
}

.day.out {
  background: #fafbff;
  color: #98a2b3;
}

.day.today {
  box-shadow: inset 0 0 0 2px var(--orange);
  animation: todayPulse 2.8s var(--ease-out) infinite;
}

.day button {
  width: 100%;
  min-height: 28px;
  background: transparent;
  text-align: left;
  font-weight: 850;
  color: inherit;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.day:hover button {
  color: var(--purple);
  transform: scale(1.05);
}

.day-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.pauta-card {
  padding: 14px;
  display: grid;
  gap: 10px;
  animation: cardDeal 420ms var(--ease-spring) both;
}

.pauta-card.critical {
  border-color: #ffb4ad;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
  animation: criticalPulse 1.7s var(--ease-out) infinite;
}

.project-row {
  padding: 14px;
  display: grid;
  gap: 10px;
  animation: cardDeal 420ms var(--ease-spring) both;
}

.empty {
  border: 1px dashed #c4cad7;
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

body[data-theme="dark"] .empty {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 26, 46, 0.72);
  color: var(--muted);
}

body[data-theme="dark"] .topbar h2 {
  color: var(--text);
}

.alert-panel {
  border-color: #ffd0cc;
  background: #fff7f6;
  color: #8f1d14;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 36, 51, 0.42);
}

.modal-backdrop.is-closing {
  animation: modalBackdropOut 180ms var(--ease-out) forwards;
}

.modal-backdrop.is-closing .modal {
  animation: modalOut 180ms var(--ease-out) forwards;
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.creative-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

.requirements-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: start;
}

.requirements-layout.no-live {
  grid-template-columns: 1fr;
}

.requirements-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.requirement-brand-card,
.requirement-mini-card,
.metric-button {
  text-align: left;
}

.requirement-brand-card {
  min-height: 172px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: cardDeal 420ms var(--ease-spring) both;
}

.requirement-brand-card:hover {
  border-color: rgba(254, 156, 1, 0.46);
  box-shadow: var(--shadow-hover);
}

.requirement-brand-logo {
  width: 82px;
  height: 58px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid rgba(75, 3, 151, 0.16);
  color: var(--purple);
  font-weight: 900;
}

.requirement-counts {
  width: 100%;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.requirement-counts span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fafbff;
}

.live-column {
  position: sticky;
  top: 18px;
}

.wide-modal {
  width: min(1100px, 100%);
}

.requirement-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.requirement-mini-card {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.requirement-mini-card span,
.requirement-mini-card small {
  color: var(--muted);
}

.alert-panel {
  animation: alertNudge 1.8s var(--ease-out) infinite;
}

.modal-backdrop {
  animation: fadeIn 180ms var(--ease-out) both;
}

.modal {
  animation: modalSpring 360ms var(--ease-spring) both;
}

.creative-board > * {
  animation: cardDeal 420ms var(--ease-spring) both;
}

.grid > *:nth-child(2),
.brand-grid > *:nth-child(2),
.area-grid > *:nth-child(2),
.campaign-list > *:nth-child(2),
.stack > *:nth-child(2),
.creative-board > *:nth-child(2) {
  animation-delay: 45ms;
}

.grid > *:nth-child(3),
.brand-grid > *:nth-child(3),
.area-grid > *:nth-child(3),
.campaign-list > *:nth-child(3),
.stack > *:nth-child(3),
.creative-board > *:nth-child(3) {
  animation-delay: 90ms;
}

.grid > *:nth-child(4),
.brand-grid > *:nth-child(4),
.area-grid > *:nth-child(4),
.campaign-list > *:nth-child(4),
.stack > *:nth-child(4),
.creative-board > *:nth-child(4) {
  animation-delay: 135ms;
}

.grid > *:nth-child(n+5),
.brand-grid > *:nth-child(n+5),
.area-grid > *:nth-child(n+5),
.campaign-list > *:nth-child(n+5),
.stack > *:nth-child(n+5),
.creative-board > *:nth-child(n+5) {
  animation-delay: 170ms;
}

.data-table tbody tr {
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
  animation: listIn 280ms var(--ease-out) both;
}

.data-table tbody tr:hover {
  background: #fffaf1;
  transform: translateX(2px);
}

.kanban-section {
  margin-top: 22px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.compact-kanban {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin: 14px 0 18px;
}

.kanban-lane {
  min-height: 220px;
  padding: 12px;
  border: 1px solid rgba(75, 3, 151, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64));
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.kanban-lane.drag-over {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 18px 34px rgba(254, 156, 1, 0.18);
}

.kanban-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.kanban-lane-head h4 {
  margin: 0;
}

.kanban-dropzone {
  display: grid;
  gap: 10px;
  min-height: 150px;
}

.kanban-card {
  padding: 12px;
  border: 1px solid rgba(75, 3, 151, 0.12);
  border-radius: 8px;
  background: var(--surface);
  cursor: grab;
  animation: fadeIn 260ms var(--ease-out) both;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.kanban-card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 18px 30px rgba(75, 3, 151, 0.14);
}

.kanban-card.dragging {
  opacity: 0.58;
  transform: scale(0.98);
}

.kanban-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.leader-row {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(75, 3, 151, 0.1);
}

.leader-row h4 {
  margin: 0 0 3px;
}

.ai-suggestion-box:not(:empty),
.pomodoro-panel,
.rh-summary {
  border: 1px solid rgba(75, 3, 151, 0.14);
  background: linear-gradient(135deg, rgba(75, 3, 151, 0.06), rgba(254, 156, 1, 0.1));
  border-radius: 8px;
}

.ai-suggestion-box:not(:empty) {
  padding: 12px;
}

.ai-suggestion-box p {
  margin: 7px 0 10px;
  color: var(--muted);
}

.pomodoro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.pomodoro-panel span,
.pomodoro-panel small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.pomodoro-panel strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}

.rh-summary {
  margin-top: 8px;
  padding: 8px;
  max-width: 320px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.45;
}

.file-link {
  text-decoration: none;
}

.comment-panel,
.course-card,
.reward-card,
.analytics-panel {
  animation: fadeIn 260ms var(--ease-out) both;
}

.comment-item {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(75, 3, 151, 0.1);
}

.comment-item p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.chart-bars {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(160px, 2fr) 52px;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.chart-row > div {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 3, 151, 0.1);
}

.chart-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
  position: relative;
  overflow: hidden;
  animation: barGrow 460ms var(--ease-out) both;
}

.chart-row b::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-100%);
  animation: chartSheen 1.9s var(--ease-out) infinite;
}

.chart-row b.done {
  background: #18a05e;
  border-radius: 999px 0 0 999px;
}

.chart-row b.pending {
  background: #fe9c01;
  border-radius: 0 999px 999px 0;
}

.progress-line {
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 3, 151, 0.12);
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
}

.notification-button {
  position: relative;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.tabs button {
  min-height: 38px;
  border-radius: 8px;
  padding: 9px 14px;
  background: var(--surface-2);
  color: var(--label);
  font-weight: 850;
}

.tabs button.active {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 3, 151, 0.2);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: start;
}

.calendar-legend {
  margin-bottom: 12px;
}

.special-date-badge {
  background: linear-gradient(135deg, #fe9c01, #ffd86b);
  color: #3a2100;
  border-color: rgba(254, 156, 1, 0.5);
}

button.special-date-badge {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.special-side-panel {
  position: sticky;
  top: 16px;
}

.special-side-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(254, 156, 1, 0.22);
  border-radius: 8px;
  background: rgba(254, 156, 1, 0.08);
  color: var(--text);
  text-align: left;
}

.special-side-item small {
  grid-column: 2;
  color: var(--muted);
}

.special-date-editor {
  margin-top: 14px;
}

.formation-card,
.survey-card {
  overflow: hidden;
}

.training-cover {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}

.training-cover.hero {
  max-height: 280px;
  margin-bottom: 14px;
}

.link-builder,
.question-builder {
  background: rgba(75, 3, 151, 0.04);
}

.survey-results {
  display: grid;
  gap: 14px;
  margin: 12px 0;
}

.survey-results h5 {
  margin: 0 0 8px;
}

.survey-question-row {
  padding: 12px;
}

.survey-answer-modal .field > label {
  font-size: 1rem;
}

body[data-theme="dark"] .tabs button {
  background: #2a243d;
  color: var(--text);
}

body[data-theme="dark"] .tabs button.active {
  background: var(--purple);
}

body[data-theme="dark"] .special-side-item,
body[data-theme="dark"] .link-builder,
body[data-theme="dark"] .question-builder {
  background: rgba(42, 36, 61, 0.86);
  border-color: rgba(255, 255, 255, 0.12);
}

.notification-button b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: #2b1700;
  font-size: 0.75rem;
}

.notification-item.unread {
  border-color: rgba(254, 156, 1, 0.45);
  box-shadow: 0 14px 30px rgba(254, 156, 1, 0.12);
}

.notification-item.read {
  opacity: 0.72;
}

.brief-preview,
.approval-panel,
.brief-card,
.capacity-card {
  border: 1px solid rgba(75, 3, 151, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.brief-preview {
  padding: 12px;
}

.brief-preview summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--purple);
}

.brief-preview p {
  margin: 6px 0 0;
  color: var(--muted);
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.capacity-card.overloaded {
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.12);
}

.heatmap-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.heat {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(75, 3, 151, 0.08);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.heat.warm {
  background: rgba(254, 156, 1, 0.28);
  color: #5c3300;
}

.heat.hot {
  background: rgba(220, 38, 38, 0.22);
  color: #7f1d1d;
}

.approval-panel {
  padding: 16px;
}

.search-modal {
  max-width: 720px;
}

.global-search-input {
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(75, 3, 151, 0.18);
  border-radius: 8px;
  font: inherit;
}

.search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(75, 3, 151, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.search-result small {
  grid-column: 2;
  color: var(--muted);
}

.timeline-item {
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 30px;
  bottom: -12px;
  width: 2px;
  background: rgba(75, 3, 151, 0.12);
}

.campaign-progress,
.risk-panel,
.library-card {
  animation: fadeIn 260ms var(--ease-out) both;
}

.compact-head {
  margin-top: 18px;
}

.brand-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.brand-profile-card {
  min-height: 190px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-profile-card:hover {
  border-color: rgba(254, 156, 1, 0.5);
  box-shadow: var(--shadow-hover);
}

.brand-profile-logo,
.search-avatar,
.podium-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(75, 3, 151, 0.18);
  color: var(--purple);
  font-weight: 900;
}

.profile-cover {
  min-height: 250px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: -18px -18px 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(75, 3, 151, 0.88), rgba(254, 156, 1, 0.68)),
    var(--purple);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.profile-identity {
  display: flex;
  align-items: end;
  gap: 16px;
  width: 100%;
}

.profile-identity h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.profile-identity p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
}

.profile-avatar {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.8);
  color: var(--purple);
  font-weight: 950;
  font-size: 1.35rem;
}

.profile-close {
  align-self: start;
  flex: 0 0 auto;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-tabs span,
.social-links a,
.social-links span {
  min-height: 34px;
}

.social-links,
.donut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.resource-form {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.resource-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.resource-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.resource-preview img,
.resource-preview iframe {
  width: 100%;
  height: min(520px, 58vh);
  border: 0;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.search-group {
  display: grid;
  gap: 8px;
}

.search-group h4 {
  margin: 4px 0;
  color: var(--label);
}

.social-result {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.social-result small {
  grid-column: auto;
  display: block;
  margin-top: 3px;
}

.profile-info-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-info-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.profile-info-list strong {
  color: var(--text);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.podium-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(254, 156, 1, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(254, 156, 1, 0.16), rgba(75, 3, 151, 0.07)), var(--surface);
  text-align: center;
}

.podium-card.place-1 {
  min-height: 250px;
  box-shadow: 0 18px 36px rgba(254, 156, 1, 0.18);
}

.podium-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--orange);
  font-weight: 950;
}

.rh-area-filter {
  max-width: 340px;
}

body[data-theme="dark"] .brand-profile-card,
body[data-theme="dark"] .podium-card,
body[data-theme="dark"] .resource-preview {
  background: rgba(30, 26, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .profile-info-list span {
  background: #2a243d;
}

body[data-theme="dark"] .kanban-lane,
body[data-theme="dark"] .leader-row,
body[data-theme="dark"] .kanban-card,
body[data-theme="dark"] .comment-item {
  background: rgba(20, 18, 32, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .brief-preview,
body[data-theme="dark"] .approval-panel,
body[data-theme="dark"] .brief-card,
body[data-theme="dark"] .capacity-card {
  background: rgba(20, 18, 32, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

body[data-theme="dark"] .search-result,
body[data-theme="dark"] .global-search-input {
  background: rgba(20, 18, 32, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* CRM clean redesign layer */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef2f7;
  --text: #111827;
  --muted: #64748b;
  --label: #334155;
  --line: #d9e0ea;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 24px rgba(15, 23, 42, 0.10);
}

body {
  background: var(--bg);
}

body::before {
  background: linear-gradient(180deg, rgba(75, 3, 151, 0.04), rgba(244, 246, 249, 0) 260px);
  animation: none;
  opacity: 1;
}

body[data-theme="dark"] {
  --bg: #10031f;
  --surface: #211338;
  --surface-2: #2c1a49;
  --surface-3: #352257;
  --text: #f5efff;
  --muted: #d8caef;
  --label: #eee8ff;
  --line: rgba(194, 163, 255, 0.22);
  --purple: #9b65ff;
  --orange: #ffbf37;
  --blue: #32a9ff;
  --green: #22c77c;
  --yellow: #ffd447;
  --red: #ff5c73;
  --shadow: 0 1px 2px rgba(5, 0, 18, 0.24);
  --shadow-hover: 0 14px 32px rgba(5, 0, 18, 0.38);
}

body[data-theme="dark"]::before {
  opacity: 0.16;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 191, 55, 0.20), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(155, 101, 255, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(46, 12, 86, 0.28), rgba(16, 3, 31, 0) 340px);
}

button {
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

button::after {
  display: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: none;
}

.app-shell {
  grid-template-columns: 222px minmax(0, 1fr);
  background: var(--bg);
}

.sidebar {
  padding: 12px 9px;
  gap: 10px;
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--line);
  box-shadow: none;
  animation: none;
}

body[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #210743 0%, #130125 100%);
  border-right-color: var(--line);
}

.sidebar-brand {
  gap: 4px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand img {
  width: 102px;
  background: transparent;
  border-radius: 0;
  animation: none;
}

.sidebar-brand strong {
  color: var(--purple);
  font-size: 15px;
  line-height: 1.15;
}

.sidebar-brand span,
.user-chip span {
  color: var(--muted);
}

.nav {
  gap: 2px;
  padding: 2px 0;
}

.nav button {
  min-height: 34px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #475569;
  background: transparent;
  font-size: 13px;
  font-weight: 760;
}

.nav button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 9px;
  background: #cbd5e1;
  box-shadow: none;
  flex: 0 0 auto;
}

.nav button.active,
.nav button:hover {
  background: #eef4ff;
  color: #0f172a;
  border-color: #dbe7ff;
}

.nav button.active {
  box-shadow: inset 3px 0 0 var(--purple);
  animation: none;
}

.nav button.active::before {
  background: var(--purple);
}

body[data-theme="dark"] .nav button {
  color: #d6deec;
}

body[data-theme="dark"] .nav button::before {
  background: #515a6d;
}

body[data-theme="dark"] .nav button.active,
body[data-theme="dark"] .nav button:hover {
  background: #232b3b;
  color: var(--text);
  border-color: #344057;
}

.sidebar-footer {
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.user-chip {
  min-height: 58px;
  max-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 7px;
}

.user-chip strong {
  color: var(--text);
  font-size: 13px;
}

.main {
  background: var(--bg);
  animation: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 64px;
  padding: 10px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  animation: none;
}

.topbar h2 {
  font-size: 20px;
  font-weight: 850;
}

.topbar .muted {
  font-size: 12px;
}

.topbar-meta {
  gap: 8px;
  font-size: 12px;
}

.content {
  padding: 12px 18px 26px;
  gap: 12px;
  animation: contentSwap 240ms var(--ease-out) both;
}

.section {
  gap: 12px;
}

.section-head {
  align-items: center;
  padding: 2px 0;
}

.section-head h3 {
  font-size: 18px;
}

.section-head p {
  font-size: 13px;
}

.panel,
.stat,
.record,
.brand-card,
.pauta-card,
.project-row,
.area-card,
.course-card,
.kanban-lane,
.kanban-card,
.brief-card,
.capacity-card,
.survey-card,
.search-result,
.brand-profile-card,
.podium-card,
.resource-preview,
.requirement-brand-card,
.requirement-mini-card,
.activity-row,
.comment-item,
.leader-row,
.approval-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat:hover,
.panel:hover,
.record:hover,
.brand-card:hover,
.pauta-card:hover,
.project-row:hover,
.area-card:hover,
.user-list-row:hover,
.course-card:hover,
.kanban-card:hover,
.requirement-brand-card:hover,
.capacity-card:hover,
.brief-card:hover,
.search-result:hover,
.brand-profile-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: #c9d4e5;
}

.panel {
  padding: 15px;
}

.stat {
  min-height: 94px;
  padding: 14px;
}

.stat strong {
  font-size: 26px;
}

.record,
.pauta-card,
.project-row,
.brand-card {
  padding: 12px;
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 34px;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

.primary {
  background: #2563eb;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.22);
}

.primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.secondary {
  background: #fff7e8;
  color: #945000;
  border: 1px solid #f5d7a6;
}

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

.ghost:hover:not(:disabled) {
  background: var(--surface-2);
}

.danger {
  border: 1px solid #ffd1cc;
}

body[data-theme="dark"] .secondary,
body[data-theme="dark"] .ghost,
body[data-theme="dark"] .danger {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

.field input,
.field select,
.field textarea,
.toolbar select,
.toolbar input[type="date"],
.global-search-input {
  min-height: 38px;
  border-radius: 7px;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.global-search-input:focus {
  border-color: #93b4ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  transform: none;
}

.mini-table,
.data-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-table th,
.data-table th {
  background: var(--surface-2);
  color: var(--label);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.mini-table td,
.data-table td {
  background: var(--surface);
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.badge {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 850;
}

.badge.gray {
  background: #f1f5f9;
  color: #475569;
  border-color: #d8e0eb;
}

.badge.purple {
  background: #f4edff;
  color: var(--purple);
  border-color: #ddcdf5;
}

.badge.yellow {
  background: #fff7dd;
  color: #835300;
  border-color: #f3d68b;
}

.badge.green {
  background: #ecfdf3;
  color: #027a48;
  border-color: #b7e4c7;
}

.badge.red {
  background: #fff1f0;
  color: #b42318;
  border-color: #ffc7c2;
}

.badge.blue {
  background: #eff6ff;
  color: #175cd3;
  border-color: #bfdbfe;
}

body[data-theme="dark"] .badge.gray,
body[data-theme="dark"] .badge.purple,
body[data-theme="dark"] .badge.yellow,
body[data-theme="dark"] .badge.green,
body[data-theme="dark"] .badge.red,
body[data-theme="dark"] .badge.blue {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

.calendar {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.day-name {
  background: var(--surface-2);
}

.day {
  min-height: 104px;
  background: var(--surface);
}

.day:hover {
  background: #f8fbff;
  transform: none;
  box-shadow: inset 0 0 0 1px #bcd0ff;
}

.day.out {
  background: #f7f8fb;
}

.day.today {
  box-shadow: inset 0 0 0 2px #2563eb;
  animation: none;
}

.day:hover button {
  color: #1d4ed8;
  transform: none;
}

.brand-avatar {
  border: 1px solid var(--line);
  background: #f4edff;
  color: var(--purple);
}

.brand-card:hover .brand-avatar {
  transform: none;
  box-shadow: none;
}

.campaign-logo {
  border: 1px solid var(--line);
  background: #fff;
}

.campaign-card:hover .campaign-logo {
  animation: none;
}

.kanban-lane {
  background: var(--surface-2);
}

.kanban-lane.drag-over {
  background: #eef4ff;
  border-color: #9db7ff;
}

.kanban-card.dragging {
  opacity: 0.74;
  transform: rotate(0deg) scale(1.01);
}

.pauta-card.critical {
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
  animation: criticalPulse 2.2s var(--ease-out) infinite;
}

.modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.modal {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.empty {
  background: var(--surface);
  border-color: #cdd6e4;
}

.tabs {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}

.tabs button {
  border-radius: 6px;
}

.tabs button.active {
  background: var(--surface);
  color: var(--purple);
  box-shadow: var(--shadow);
}

.notification-button b {
  background: #2563eb;
}

.search-modal {
  border: 1px solid var(--line);
}

body[data-theme="dark"] .panel,
body[data-theme="dark"] .stat,
body[data-theme="dark"] .record,
body[data-theme="dark"] .brand-card,
body[data-theme="dark"] .pauta-card,
body[data-theme="dark"] .project-row,
body[data-theme="dark"] .area-card,
body[data-theme="dark"] .course-card,
body[data-theme="dark"] .kanban-lane,
body[data-theme="dark"] .kanban-card,
body[data-theme="dark"] .brief-card,
body[data-theme="dark"] .capacity-card,
body[data-theme="dark"] .survey-card,
body[data-theme="dark"] .search-result,
body[data-theme="dark"] .brand-profile-card,
body[data-theme="dark"] .podium-card,
body[data-theme="dark"] .resource-preview,
body[data-theme="dark"] .requirement-brand-card,
body[data-theme="dark"] .requirement-mini-card,
body[data-theme="dark"] .activity-row,
body[data-theme="dark"] .comment-item,
body[data-theme="dark"] .leader-row,
body[data-theme="dark"] .approval-panel,
body[data-theme="dark"] .day,
body[data-theme="dark"] .mini-table,
body[data-theme="dark"] .data-table,
body[data-theme="dark"] .mini-table td,
body[data-theme="dark"] .data-table td {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

body[data-theme="dark"] .day-name,
body[data-theme="dark"] .mini-table th,
body[data-theme="dark"] .data-table th,
body[data-theme="dark"] .tabs,
body[data-theme="dark"] .user-chip,
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .toolbar select,
body[data-theme="dark"] .toolbar input[type="date"],
body[data-theme="dark"] .global-search-input,
body[data-theme="dark"] .check-row,
body[data-theme="dark"] .profile-info-list span {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

body[data-theme="dark"] .day.out,
body[data-theme="dark"] .kanban-lane {
  background: #121622;
}

body[data-theme="dark"] .day:hover {
  background: #20283a;
}

.help-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  font-weight: 950;
  color: var(--purple);
}

.rh-board {
  gap: 10px;
}

.rh-kpi-grid .stat {
  min-height: 82px;
  padding: 12px 16px;
}

.rh-kpi-grid .stat strong {
  margin-top: 4px;
  font-size: 24px;
}

.rh-filter-panel {
  padding: 10px 12px;
}

.rh-filter-panel .field {
  gap: 4px;
}

.rh-filter-panel select {
  min-height: 34px;
}

.rh-analytics-grid {
  align-items: start;
}

.rh-analytics-grid .analytics-panel {
  min-height: 0;
  padding: 14px;
}

.rh-analytics-grid .analytics-panel h4,
.area-evaluation-panel h3,
.risk-panel h3,
.podium-panel h3,
.evaluation-periodic-panel h3 {
  margin-bottom: 4px;
}

.rh-analytics-grid .chart-bars,
.area-evaluation-panel .chart-bars {
  gap: 6px;
  margin-top: 8px;
}

.rh-analytics-grid .chart-row,
.area-evaluation-panel .chart-row,
.survey-results .chart-row {
  min-height: 24px;
  gap: 8px;
  font-size: 12px;
  line-height: 1.2;
}

.rh-analytics-grid .chart-row > div,
.area-evaluation-panel .chart-row > div {
  height: 9px;
}

.rh-critical-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 12px;
  align-items: stretch;
}

.rh-recognition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.area-evaluation-panel,
.risk-panel,
.podium-panel,
.evaluation-periodic-panel {
  padding: 14px;
}

.area-evaluation-panel .grid.cols-2 {
  grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.area-evaluation-panel .check-row {
  min-height: 32px;
  padding: 6px 8px;
  font-size: 12px;
}

.risk-panel .stack {
  gap: 6px;
}

.risk-row {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 12px;
}

.risk-row strong {
  min-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-row .record-meta {
  justify-content: flex-end;
  gap: 4px;
}

.risk-row .badge {
  padding: 3px 6px;
  font-size: 10px;
}

.podium-grid {
  gap: 8px;
}

.podium-card {
  min-height: 158px;
  padding: 12px;
  gap: 6px;
}

.podium-card.place-1 {
  min-height: 178px;
}

.podium-card h4 {
  margin: 0;
  font-size: 13px;
}

.podium-card p {
  margin: 0;
  font-size: 12px;
}

.podium-avatar {
  width: 52px;
  height: 52px;
}

.compact-evaluation-form {
  gap: 8px;
}

.compact-evaluation-form .grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-evaluation-form textarea {
  min-height: 56px;
}

.evaluation-periodic-panel .record {
  padding: 8px;
  gap: 6px;
}

.evaluation-periodic-panel .stack {
  max-height: 210px;
  overflow: auto;
}

.rh-table-panel {
  overflow-x: auto;
}

.rh-table-panel .data-table th,
.rh-table-panel .data-table td {
  padding: 7px 8px;
  font-size: 12px;
}

.rh-action-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rh-table-panel .rh-summary {
  max-width: 260px;
  margin-top: 5px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
}

.tutorial-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.22);
}

.tutorial-card {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 42;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  animation: riseIn 240ms var(--ease-out) both;
}

.tutorial-card h3 {
  margin: 0;
  font-size: 18px;
}

.tutorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tutorial-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tutorial-focus {
  position: relative;
  z-index: 38;
  outline: 3px solid rgba(254, 156, 1, 0.82);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(254, 156, 1, 0.12), var(--shadow-hover) !important;
}

body[data-theme="dark"] .risk-row {
  background: var(--surface-2);
  border-color: var(--line);
}

.rh-suite {
  --rh-bg: #f6f3fb;
  --rh-surface: #ffffff;
  --rh-surface-2: #f0eafa;
  --rh-panel: #ffffff;
  --rh-line: rgba(80, 45, 132, 0.14);
  --rh-text: #21152f;
  --rh-muted: #6e6380;
  --rh-yellow: #ffcc25;
  --rh-green: #19b973;
  --rh-blue: #1fa5e4;
  --rh-purple: #6b1dcc;
  --rh-pink: #ff3f75;
  --rh-orange: #f06429;
  --rh-card-shadow: 0 16px 34px rgba(43, 20, 74, 0.08);
  position: relative;
  margin: -24px -26px -36px;
  padding: 0 24px 34px;
  min-height: calc(100vh - 76px);
  color: var(--rh-text);
  background:
    radial-gradient(circle at 54% -18%, rgba(255, 204, 37, 0.14), transparent 24%),
    radial-gradient(circle at 82% 42%, rgba(108, 29, 204, 0.10), transparent 38%),
    linear-gradient(180deg, #fff 0%, var(--rh-bg) 52%, #f7f4fb 100%);
  overflow: hidden;
}

body[data-theme="dark"] .rh-suite {
  --rh-bg: #120426;
  --rh-surface: #24153f;
  --rh-surface-2: #2d1b4c;
  --rh-panel: #2b1b49;
  --rh-line: rgba(190, 157, 255, 0.2);
  --rh-text: #fff7ff;
  --rh-muted: #a891c8;
  --rh-card-shadow: 0 18px 46px rgba(7, 0, 24, 0.28);
  background:
    radial-gradient(circle at 54% -18%, rgba(255, 204, 37, 0.16), transparent 24%),
    radial-gradient(circle at 82% 42%, rgba(108, 29, 204, 0.18), transparent 38%),
    linear-gradient(180deg, #19083a 0%, var(--rh-bg) 48%, #100120 100%);
}

.rh-suite::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(80, 45, 132, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 45, 132, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.rh-suite > * {
  position: relative;
  z-index: 1;
}

.rh-suite-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 20px 16px 8px;
  border-bottom: 1px solid var(--rh-line);
}

.rh-suite-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--rh-muted);
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.rh-suite-tab:hover {
  transform: translateY(-1px);
  color: var(--rh-text);
  background: rgba(107, 29, 204, 0.07);
}

.rh-suite-tab.active {
  color: var(--rh-text);
  background: #fff;
  border-color: rgba(107, 29, 204, 0.12);
  box-shadow: inset 0 -3px 0 var(--rh-yellow), 0 16px 30px rgba(0, 0, 0, 0.16);
}

body[data-theme="dark"] .rh-suite-tab:hover {
  background: rgba(255, 255, 255, 0.045);
}

body[data-theme="dark"] .rh-suite-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
}

.rh-tab-icon {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
  background: currentColor;
  opacity: 0.85;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.rh-suite-tab.active .rh-tab-icon {
  color: var(--rh-yellow);
}

.rh-filter-strip {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px 16px;
  border-bottom: 1px solid var(--rh-line);
  flex-wrap: wrap;
}

.rh-filter-strip label {
  display: grid;
  gap: 5px;
}

.rh-filter-strip label span {
  color: var(--rh-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rh-filter-strip select {
  min-width: 112px;
  min-height: 36px;
  padding: 0 14px;
  color: var(--rh-text);
  border: 1px solid rgba(80, 45, 132, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

body[data-theme="dark"] .rh-filter-strip select {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.rh-filter-strip button {
  min-height: 36px;
  border-radius: 9px;
}

.rh-apply {
  background: linear-gradient(135deg, #6f32d9, #159be0);
}

.rh-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 7px 22px;
}

.rh-kpi-card {
  min-height: 98px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.86), transparent 56%), var(--rh-surface);
  box-shadow: var(--rh-card-shadow);
  animation: riseIn 360ms var(--ease-out) both;
  overflow: hidden;
}

.rh-kpi-card strong {
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1;
  font-weight: 950;
}

.rh-kpi-card span {
  color: var(--rh-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.kpi-prod strong { color: var(--rh-purple); }
body[data-theme="dark"] .kpi-prod strong { color: #efe5ff; }
.kpi-done strong { color: var(--rh-green); }
.kpi-hours strong { color: var(--rh-blue); }
.kpi-pending strong { color: var(--rh-yellow); }
.kpi-team strong { color: #ff8247; }

.rh-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rh-wide-stack,
.rh-activity-layout {
  display: grid;
  gap: 18px;
  padding-top: 10px;
}

.rh-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 2px;
}

.rh-panel {
  min-height: 280px;
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  background: radial-gradient(circle at 70% 80%, rgba(255, 63, 117, 0.12), transparent 32%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%), var(--rh-panel);
  box-shadow: var(--rh-card-shadow);
  overflow: hidden;
  animation: riseIn 420ms var(--ease-out) both;
}

.rh-panel header {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  background: linear-gradient(135deg, #371060, #671aba);
}

.rh-panel.tone-blue header { background: linear-gradient(135deg, #235bb2, #6aa3c7); }
.rh-panel.tone-green header { background: linear-gradient(135deg, #0f6b48, #1d9b69); }
.rh-panel.tone-orange header { background: linear-gradient(135deg, #7a2c13, #bd4d30); }
.rh-panel.tone-plain header { background: linear-gradient(135deg, #17022f, #4f1880); }

.rh-panel h3 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.rh-panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
}

.rh-panel-body {
  padding: 24px;
}

.rh-hbar-list,
.rh-collab-bars {
  display: grid;
  gap: 13px;
}

.rh-hbar-row,
.rh-collab-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: var(--rh-muted);
  font-size: 12px;
  font-weight: 750;
}

.rh-hbar-track,
.rh-collab-row div {
  height: 30px;
  position: relative;
  overflow: hidden;
}

.rh-hbar-track b,
.rh-collab-row b {
  display: block;
  height: 100%;
  border-radius: 0 7px 7px 0;
  background: var(--rh-green);
  box-shadow: inset 12px 0 24px rgba(255, 255, 255, 0.08);
  animation: barGrow 620ms var(--ease-out) both;
}

.area-diseno .rh-hbar-track b,
.area-diseno b { background: var(--rh-purple); }
.area-audiovisual .rh-hbar-track b,
.area-audiovisual b { background: var(--rh-blue); }
.area-marketing .rh-hbar-track b,
.area-marketing b { background: var(--rh-green); }
.area-web .rh-hbar-track b,
.area-web b { background: var(--rh-orange); }
.area-publicidad .rh-hbar-track b,
.area-publicidad b { background: var(--rh-pink); }

.rh-hbar-row strong,
.rh-collab-row strong {
  color: var(--rh-text);
  text-align: right;
}

.rh-chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--rh-muted);
  font-size: 12px;
  margin-bottom: 14px;
}

.rh-chart-legend span::before,
.rh-donut-legend i {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 2px;
  background: var(--rh-green);
  vertical-align: -2px;
}

.rh-chart-legend .legend-pending::before { background: #c8bed8; }
.rh-chart-legend .legend-prod::before { background: var(--rh-purple); }
.rh-chart-legend .legend-hours::before { background: #235ca3; }

.rh-grouped-bars,
.rh-comparison-bars,
.rh-mini-vbars {
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 22px;
  padding-top: 10px;
  background-image: repeating-linear-gradient(to top, rgba(80,45,132,0.075) 0 1px, transparent 1px 31px);
}

body[data-theme="dark"] .rh-grouped-bars,
body[data-theme="dark"] .rh-comparison-bars,
body[data-theme="dark"] .rh-mini-vbars {
  background-image: repeating-linear-gradient(to top, rgba(255,255,255,0.055) 0 1px, transparent 1px 31px);
}

.rh-grouped-item,
.rh-comparison-item,
.rh-mini-vbars > div {
  height: 210px;
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 8px;
}

.rh-bar-pair,
.rh-comparison-pair {
  height: 178px;
  display: flex;
  align-items: end;
  gap: 10px;
}

.rh-bar-pair b,
.rh-comparison-pair b,
.rh-mini-vbars b {
  width: 34px;
  min-height: 8px;
  border-radius: 7px 7px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  animation: barRise 680ms var(--ease-out) both;
}

.rh-bar-pair .done { background: var(--rh-green); }
.rh-bar-pair .pending { background: #c8bed8; }
.rh-comparison-pair .prod { background: var(--rh-purple); }
.rh-comparison-pair .hours { background: #245d9f; width: 54px; }

.rh-grouped-item small,
.rh-comparison-item small,
.rh-mini-vbars small {
  color: var(--rh-muted);
  font-size: 11px;
  text-align: center;
}

.rh-donut-wrap {
  min-height: 228px;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
}

.rh-donut {
  width: 205px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: var(--donut);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.24);
  animation: chartPulse 1800ms ease-in-out infinite;
}

.rh-donut > div {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rh-panel);
  text-align: center;
}

.rh-donut strong {
  font-size: 25px;
}

.rh-donut span {
  color: var(--rh-muted);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 950;
}

.rh-donut-legend {
  display: grid;
  gap: 10px;
  color: var(--rh-muted);
  font-size: 13px;
  font-weight: 750;
}

.rh-donut-legend span {
  display: flex;
  align-items: center;
}

.rh-donut-legend .area-diseno i { background: var(--rh-purple); }
.rh-donut-legend .area-audiovisual i { background: var(--rh-blue); }
.rh-donut-legend .area-marketing i { background: var(--rh-green); }
.rh-donut-legend .area-web i { background: var(--rh-orange); }
.rh-donut-legend .area-publicidad i { background: var(--rh-pink); }

.rh-data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--rh-text);
  font-size: 13px;
}

.rh-data-table th,
.rh-data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
}

.rh-data-table th {
  color: #5c3c88;
  background: rgba(107, 29, 204, 0.08);
  font-size: 11px;
}

body[data-theme="dark"] .rh-data-table th {
  color: #c6b2e6;
  background: rgba(50, 10, 84, 0.72);
}

.rh-rank-dot {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 950;
}

.rh-area-pill,
.rh-count-pill,
.rh-soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(107, 29, 204, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 850;
}

.rh-count-pill { background: rgba(25, 185, 115, 0.24); }
.rh-soft-pill { color: #dfd3f4; background: rgba(255, 255, 255, 0.09); }

.rh-table-progress {
  width: 126px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.rh-table-progress b {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--rh-green);
}

.rh-pending-tabs {
  display: flex;
  gap: 12px;
  padding: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  overflow-x: auto;
}

.rh-pending-tabs button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: var(--rh-muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.rh-pending-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--rh-purple), var(--rh-blue));
}

.rh-pending-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.rh-pending-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rh-pending-filter span {
  color: var(--rh-muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 950;
}

.rh-pending-filter select {
  min-height: 34px;
  min-width: 160px;
  color: var(--rh-text);
  border: 1px solid rgba(80,45,132,0.18);
  border-radius: 9px;
  background: rgba(255,255,255,0.92);
}

body[data-theme="dark"] .rh-pending-filter select {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.rh-pending-table td:nth-child(3) span {
  display: block;
  margin-top: 3px;
  color: var(--rh-muted);
  font-size: 12px;
}

.rh-hot-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-left: 5px;
  border-radius: 50%;
  background: #ff4d61;
  box-shadow: 0 0 14px rgba(255, 77, 97, 0.9);
}

.rh-timeline {
  display: grid;
  gap: 13px;
}

.rh-timeline article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}

.rh-timeline article > span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--rh-blue);
  box-shadow: 0 0 0 6px rgba(31, 165, 228, 0.12);
}

.rh-timeline strong {
  color: var(--rh-text);
}

.rh-timeline p,
.rh-timeline small,
.rh-summary-row td {
  color: var(--rh-muted);
}

.rh-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rh-cracks-hero {
  margin: 24px 16px 6px;
  border: 1px solid var(--rh-line);
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 22% 30%, rgba(255, 63, 117, 0.18), transparent 30%), linear-gradient(135deg, #2b154d, #24103f);
  box-shadow: var(--rh-card-shadow);
}

.rh-cracks-hero header {
  min-height: 102px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(120deg, #4e0d90, #8e3a13 52%, #d2aa2e);
}

.rh-cracks-hero h2 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 950;
}

.rh-cracks-hero p {
  margin: 8px 0 0;
  color: #f8e8ff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.rh-cracks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding: 24px 20px;
}

.rh-crack-card {
  min-height: 225px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(135deg, #50118b 0%, #6f188e 45%, #f3c51b 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 20px 40px rgba(0,0,0,0.24);
  animation: riseIn 520ms var(--ease-out) both;
}

.rh-crack-card.blue-card {
  background: linear-gradient(135deg, #061444 0%, #1e78b8 58%, #70c8ee 100%);
}

.rh-crack-card::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -42px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.rh-medal {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #5a2877;
  background: #ffd069;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.rh-crack-card h3 {
  margin: 0;
  text-align: center;
  font-size: 19px;
  color: #fff;
}

.rh-crack-card p {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.rh-crack-card > div {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.rh-crack-card strong {
  min-width: 78px;
  min-height: 61px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 24px;
}

.rh-crack-card strong span {
  color: #fff;
  text-transform: uppercase;
  font-size: 9px;
}

.rh-suite .empty {
  color: #6e6380;
  border-color: var(--rh-line);
  background: rgba(107,29,204,0.04);
}

body[data-theme="dark"] .rh-suite .empty {
  color: #d8c9ef;
  background: rgba(255,255,255,0.05);
}

@keyframes barGrow {
  from { width: 0; filter: saturate(0.8); }
}

@keyframes barRise {
  from { height: 0; filter: saturate(0.8); }
}

@keyframes chartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

body[data-theme="dark"] .tutorial-card {
  background: var(--surface);
  border-color: var(--line);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(112, 79, 247, 0.45);
  outline-offset: 2px;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.05fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(112, 79, 247, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(112, 79, 247, 0.1), rgba(254, 156, 1, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard-command-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.eyebrow {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-command-copy h3,
.area-momentum-panel h3,
.intern-focus-panel h3,
.rh-health-card h3,
.rh-alert-card h3 {
  margin: 0;
  font-size: 22px;
}

.dashboard-command-copy p,
.area-momentum-panel p,
.intern-focus-panel p,
.rh-health-card p,
.rh-alert-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.metric-ring-card,
.rh-health-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.74);
  min-width: 0;
}

.metric-ring-card span,
.rh-health-card span,
.rh-alert-card span {
  display: block;
  font-weight: 900;
}

.metric-ring-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.metric-ring {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 60%),
    conic-gradient(var(--ring, var(--purple)) var(--value), rgba(148, 163, 184, 0.24) 0);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  animation: meterSweep 520ms var(--ease-out) both;
}

.metric-ring strong {
  font-size: 18px;
  color: var(--text);
}

.tone-green { --ring: #17a673; }
.tone-purple { --ring: var(--purple); }
.tone-blue { --ring: #2574ff; }

.dashboard-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr) minmax(260px, 0.78fr);
  gap: 12px;
  align-items: stretch;
}

.ops-flow-list,
.live-activity-list,
.compact-bars,
.intern-focus-bars {
  display: grid;
  gap: 9px;
}

.ops-flow-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ops-flow-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.ops-flow-row strong {
  color: var(--text);
}

.ops-flow-track,
.compact-bar div,
.focus-line div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.ops-flow-track b,
.compact-bar b,
.focus-line b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--yellow));
  animation: barGrow 460ms var(--ease-out) both;
}

.status-pill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  min-height: 156px;
  align-items: end;
}

.status-pill {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}

.status-pill i {
  position: absolute;
  inset: auto 0 0;
  display: block;
  min-height: 7px;
  background: linear-gradient(180deg, rgba(112, 79, 247, 0.42), rgba(254, 156, 1, 0.28));
}

.status-pill span,
.status-pill strong {
  position: relative;
  z-index: 1;
}

.status-pill span {
  min-height: 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.status-pill strong {
  font-size: 24px;
}

.live-activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.live-activity-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-activity-item small {
  color: var(--muted);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #17a673;
  box-shadow: 0 0 0 0 rgba(23, 166, 115, 0.38);
  animation: pulseDot 1.7s ease-out infinite;
}

.area-momentum-panel,
.intern-focus-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(112, 79, 247, 0.16);
  background:
    linear-gradient(135deg, rgba(112, 79, 247, 0.08), rgba(23, 166, 115, 0.06)),
    var(--surface);
}

.area-momentum-meter,
.xp-chip {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--surface) 0 57%, transparent 59%),
    conic-gradient(var(--purple) var(--focus, 0%), rgba(148, 163, 184, 0.18) 0);
}

.area-momentum-meter strong,
.xp-chip strong {
  font-size: 22px;
}

.area-momentum-meter span,
.xp-chip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.area-momentum-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.area-momentum-list span {
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}

.area-momentum-list b {
  color: var(--text);
  font-size: 18px;
}

.focus-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 86px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.focus-line span {
  color: var(--muted);
  font-weight: 800;
}

.focus-line strong {
  text-align: right;
}

.xp-chip {
  --focus: 78%;
  background:
    radial-gradient(circle at center, var(--surface) 0 57%, transparent 59%),
    conic-gradient(var(--yellow) var(--focus), rgba(148, 163, 184, 0.18) 0);
}

.rh-exec-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) minmax(250px, 0.8fr);
  gap: 12px;
  align-items: stretch;
}

.rh-health-card {
  --ring: #17a673;
}

.rh-area-mix,
.rh-alert-card {
  padding: 14px;
}

.compact-bar {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.compact-bar span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-alert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

body[data-theme="dark"] .dashboard-command,
body[data-theme="dark"] .area-momentum-panel,
body[data-theme="dark"] .intern-focus-panel {
  background:
    linear-gradient(135deg, rgba(112, 79, 247, 0.16), rgba(254, 156, 1, 0.07)),
    var(--surface);
}

body[data-theme="dark"] .metric-ring-card,
body[data-theme="dark"] .live-activity-item,
body[data-theme="dark"] .area-momentum-list span,
body[data-theme="dark"] .status-pill {
  background: var(--surface-2);
}

body[data-theme="dark"] .marketing-calendar-shell {
  background:
    linear-gradient(135deg, rgba(112, 79, 247, 0.14), rgba(254, 156, 1, 0.06)),
    var(--surface);
}

body[data-theme="dark"] .marketing-calendar-summary article {
  background: var(--surface-2);
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(23, 166, 115, 0.38); }
  70% { box-shadow: 0 0 0 9px rgba(23, 166, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 166, 115, 0); }
}

@keyframes meterSweep {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes barGrow {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

@media print {
  .sidebar,
  .topbar,
  .toast-root,
  button,
  .toolbar {
    display: none !important;
  }

  .app-shell,
  .main,
  .content {
    display: block;
    padding: 0;
    margin: 0;
  }

  .panel,
  .section {
    box-shadow: none;
    break-inside: avoid;
  }
}

@keyframes ambientShift {
  from { transform: translate3d(-10px, -8px, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(10px, 8px, 0) scale(1.03); opacity: 1; }
}

@keyframes liquidFlow {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); border-radius: 42% 58% 50% 50%; }
  50% { transform: translate3d(2%, 1%, 0) rotate(3deg) scale(1.03); border-radius: 58% 42% 55% 45%; }
  100% { transform: translate3d(1%, -2%, 0) rotate(-2deg) scale(1.02); border-radius: 45% 55% 40% 60%; }
}

@keyframes routeWaterOut {
  to { opacity: 0; transform: translateY(8px) scale(0.992); filter: blur(6px); clip-path: inset(0 0 8% 0 round 10px); }
}

@keyframes routeWaterIn {
  from { opacity: 0; transform: translateY(10px) scale(0.995); filter: blur(8px); clip-path: inset(7% 0 0 0 round 10px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); clip-path: inset(0 0 0 0 round 0); }
}

@keyframes calendarWater {
  from { transform: translateX(-18%) skewX(-6deg); opacity: 0.28; }
  to { transform: translateX(12%) skewX(4deg); opacity: 0.56; }
}

@keyframes modalBackdropOut {
  to { opacity: 0; }
}

@keyframes modalOut {
  to { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); }
}

@keyframes chartSheen {
  0%, 35% { transform: translateX(-100%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes loginBreath {
  from { background-position: 0% 0%, 100% 100%; }
  to { background-position: 5% 3%, 95% 92%; }
}

@keyframes logoFloat {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.03); box-shadow: 0 10px 28px rgba(254, 156, 1, 0.22); }
}

@keyframes activeGlow {
  from { box-shadow: inset 3px 0 0 var(--orange), 0 0 0 rgba(254, 156, 1, 0); }
  to { box-shadow: inset 3px 0 0 var(--orange), 0 0 24px rgba(254, 156, 1, 0.20); }
}

@media (max-width: 980px) {
  .rh-kpi-row,
  .rh-dashboard-grid,
  .rh-three-grid,
  .rh-donut-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .rh-suite {
    margin: -18px;
    padding: 0 14px 28px;
  }

  .rh-suite-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-left: 4px;
    padding-right: 4px;
  }

  .rh-filter-strip {
    justify-content: flex-start;
  }

  .rh-filter-strip label,
  .rh-filter-strip select,
  .rh-filter-strip button {
    width: 100%;
  }

  .rh-cracks-grid,
  .rh-grouped-bars,
  .rh-comparison-bars,
  .rh-mini-vbars {
    grid-template-columns: 1fr;
  }

  .rh-panel-body {
    padding: 16px;
    overflow-x: auto;
  }
}

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

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes contentSwap {
  from { opacity: 0; transform: translateY(8px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.96) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes numberPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.92); }
  70% { transform: translateY(-1px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badgePop {
  0% { opacity: 0; transform: scale(0.86); }
  100% { opacity: 1; transform: scale(1); }
}

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

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

@keyframes cardDeal {
  from { opacity: 0; transform: translateY(16px) rotateX(4deg) scale(0.98); }
  to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

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

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes calendarCellIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes todayPulse {
  0%, 100% { box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 rgba(254, 156, 1, 0); }
  50% { box-shadow: inset 0 0 0 2px var(--orange), 0 0 24px rgba(254, 156, 1, 0.28); }
}

@keyframes criticalPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08); }
  50% { box-shadow: 0 0 0 5px rgba(217, 45, 32, 0.16); }
}

@keyframes alertNudge {
  0%, 100% { transform: translateX(0); }
  8% { transform: translateX(3px); }
  16% { transform: translateX(-2px); }
  24% { transform: translateX(0); }
}

@keyframes modalSpring {
  0% { opacity: 0; transform: translateY(18px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rippleBurst {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

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

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

@keyframes preloaderBar {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes preloaderText {
  0%, 12% { opacity: 0; transform: translateY(8px); }
  22%, 72% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

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

@media (max-width: 980px) {
  .login-panel,
  .app-shell,
  .split,
  .area-grid,
  .requirements-layout,
  .requirements-brand-grid,
  .requirement-columns,
  .kanban-board,
  .compact-kanban,
  .calendar-layout,
  .dashboard-command,
  .dashboard-visual-grid,
  .area-momentum-panel,
  .intern-focus-panel,
  .rh-kpi-row,
  .rh-dashboard-grid,
  .rh-three-grid,
  .rh-donut-wrap,
  .rh-exec-strip,
  .rh-critical-grid,
  .rh-recognition-grid,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .area-grid {
    grid-template-rows: none;
  }

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

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

  .pomodoro-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-ring-grid {
    grid-template-columns: 1fr;
  }

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

  .tutorial-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}

@media (max-width: 680px) {
  .content,
  .topbar,
  .auth-panel,
  .brand-panel {
    padding: 18px;
  }

  .calendar {
    grid-template-columns: 1fr;
  }

  .day-name {
    display: none;
  }

  .day,
  .day:nth-child(7n) {
    border-right: 0;
  }

  .status-pill-grid,
  .area-momentum-list {
    grid-template-columns: 1fr;
  }

  .ops-flow-row,
  .focus-line,
  .compact-bar {
    grid-template-columns: 1fr;
  }

  .metric-ring-card,
  .rh-health-card {
    grid-template-columns: 1fr;
  }

  .marketing-calendar-summary {
    grid-template-columns: 1fr;
  }
}
