/* DBEX Refresh 2026 */
:root {
  --bg: #fff8f0;
  --surface: #f5ede2;
  --surface-2: #ebdece;
  --border: #ddcbb7;
  --border-2: #ece1d4;
  --text-1: #24180f;
  --text-2: #695949;
  --text-3: #a18d79;
  --blue: #1b5cdf;
  --blue-h: #1547af;
  --blue-l: rgba(27, 92, 223, 0.12);
  --blue-b: rgba(27, 92, 223, 0.24);
  --green: #14815a;
  --green-l: rgba(20, 129, 90, 0.14);
  --amber: #c97416;
  --amber-l: rgba(201, 116, 22, 0.14);
  --red: #d54839;
  --red-l: rgba(213, 72, 57, 0.14);
  --orange: #e07b1d;
  --orange-l: rgba(224, 123, 29, 0.14);
  --purple: #7a55d3;
  --purple-l: rgba(122, 85, 211, 0.14);
  --indigo: #475fe0;
  --indigo-l: rgba(71, 95, 224, 0.14);
  --r-md: 12px;
  --r-lg: 24px;
  --shadow-xs: 0 6px 16px rgba(109, 81, 47, 0.08);
  --shadow-sm: 0 12px 28px rgba(109, 81, 47, 0.1);
  --shadow-md: 0 24px 48px rgba(109, 81, 47, 0.14);
  --shadow-lg: 0 36px 74px rgba(39, 28, 17, 0.2);
  --sidebar-w: 268px;
  --header-h: 78px;
}

html {
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(201, 116, 22, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(27, 92, 223, 0.14), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #f7efe4 100%);
}

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(12px);
}

body::before {
  top: -120px;
  right: -90px;
  width: 360px;
  height: 360px;
  background: rgba(201, 116, 22, 0.14);
}

body::after {
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: rgba(27, 92, 223, 0.08);
}

#app,
.main-wrapper,
.content {
  position: relative;
  z-index: 1;
}

#app {
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.main-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.content {
  background: transparent;
  padding: 30px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.sidebar {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(201, 116, 22, 0.22), transparent 36%),
    linear-gradient(180deg, #22170f 0%, #171311 46%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 24px 0 48px rgba(26, 19, 13, 0.16);
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%, transparent 80%, rgba(255, 255, 255, 0.03));
  pointer-events: none;
}

.sidebar-top {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.btn-new-global {
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f2a31b 0%, #c96a11 100%);
  box-shadow: 0 14px 30px rgba(201, 116, 22, 0.28);
  font-size: 12px;
  font-weight: 700;
}

.btn-new-global:hover {
  background: linear-gradient(135deg, #ffb42d 0%, #d47015 100%);
  transform: translateY(-1px);
}

.sidebar-nav {
  padding: 14px 10px 18px;
}

.sidebar-section + .sidebar-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-section-label {
  padding: 4px 12px 10px;
  color: rgba(250, 240, 228, 0.46);
  letter-spacing: 0.18em;
}

.nav-item {
  position: relative;
  padding: 12px;
  margin-bottom: 4px;
  border-radius: 16px;
  color: rgba(250, 240, 228, 0.76);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(201, 116, 22, 0.26), rgba(27, 92, 223, 0.2));
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 28px rgba(0, 0, 0, 0.16);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd479, #f5a524);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  stroke: currentColor;
}

.nav-count {
  background: rgba(255, 255, 255, 0.1);
  color: #fff3e6;
}

.nav-count--alert {
  background: rgba(245, 158, 11, 0.18);
  color: #ffd490;
}

.nav-count--danger {
  background: rgba(239, 68, 68, 0.18);
  color: #ffb0a6;
}

.sidebar-footer {
  background: linear-gradient(180deg, rgba(9, 8, 7, 0), rgba(9, 8, 7, 0.3) 28%, rgba(9, 8, 7, 0.42));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 12px));
}

.sidebar-io {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-io {
  flex: 1;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #f9ecdc;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.btn-io:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sidebar-status-label,
.sidebar-shortcut {
  font-size: 10px;
  color: rgba(250, 240, 228, 0.58);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-utility-row {
  padding: 0 0 10px;
}

.sidebar-utility-btn {
  min-height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff1df;
}

.sidebar-utility-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-profile {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.user-switcher.open .user-profile,
.user-profile:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.user-name {
  color: #fff8ef;
}

.user-role {
  color: rgba(248, 235, 220, 0.6);
}

.user-switcher-menu {
  background: rgba(29, 23, 17, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.user-switcher-option {
  color: #fff4e7;
}

.user-switcher-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-switcher-option.active {
  background: linear-gradient(135deg, rgba(201, 116, 22, 0.18), rgba(27, 92, 223, 0.16));
  color: #fff;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  height: auto;
  padding: 18px 28px;
  gap: 16px;
  background: rgba(255, 249, 241, 0.72);
  border-bottom: 1px solid rgba(139, 109, 71, 0.12);
  backdrop-filter: blur(18px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-center {
  min-width: 0;
}

.breadcrumb {
  min-width: 0;
}

.breadcrumb-item {
  font-size: 13px;
}

.breadcrumb-item--active {
  font-size: 15px;
  font-weight: 700;
}

.header-search {
  width: min(560px, 100%);
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 109, 71, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 16px 30px rgba(109, 81, 47, 0.08);
}

.header-search:focus-within {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(27, 92, 223, 0.08), 0 18px 34px rgba(27, 92, 223, 0.08);
}

.btn-icon--chrome,
.btn-icon--chrome.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 109, 71, 0.14);
  box-shadow: 0 12px 24px rgba(109, 81, 47, 0.08);
}

.btn-icon--chrome:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.filter-bar-area {
  background: transparent;
  border-bottom: none;
  padding: 8px 28px 0;
}

.filter-bar {
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: 0 16px 32px rgba(109, 81, 47, 0.06);
}

.filter-trigger,
.filter-date-group {
  min-height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(139, 109, 71, 0.12);
}

.filter-trigger.active {
  background: linear-gradient(135deg, rgba(201, 116, 22, 0.12), rgba(27, 92, 223, 0.12));
  border-color: rgba(201, 116, 22, 0.28);
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(109, 81, 47, 0.06);
}

.btn--primary {
  background: linear-gradient(135deg, #ea9b1d 0%, #c96a11 100%);
  color: #fffdf9;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #f1ad32 0%, #d87315 100%);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(139, 109, 71, 0.14);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.96);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.56);
}

.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 20px rgba(55, 35, 14, 0.14);
}

.page-header {
  align-items: flex-end;
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

.header-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.segmented-toggle .cal-mode-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(139, 109, 71, 0.14);
  background:
    radial-gradient(circle at top right, rgba(27, 92, 223, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(201, 116, 22, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 239, 225, 0.88));
  box-shadow: 0 32px 60px rgba(109, 81, 47, 0.12);
  overflow: hidden;
}

.dashboard-hero,
.dash-grid,
.summary-chips,
.projects-grid,
.projects-grid--compact,
.page-header,
.criativo-layout {
  min-width: 0;
  max-width: 100%;
}

.dashboard-hero-copy,
.dashboard-hero-stats,
.criativo-main,
.criativo-sidebar {
  min-width: 0;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 24, 15, 0.06);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-hero-copy .page-title {
  margin-top: 14px;
}

.dashboard-hero-copy .page-sub {
  margin-top: 12px;
  max-width: 48ch;
}

.dashboard-hero-note {
  display: grid;
  gap: 6px;
  max-width: 440px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(36, 24, 15, 0.05);
  border: 1px solid rgba(139, 109, 71, 0.12);
}

.dashboard-hero-note strong {
  font-size: 15px;
  color: var(--text-1);
}

.dashboard-hero-note span {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.dashboard-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.hero-stat {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(139, 109, 71, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 32px rgba(109, 81, 47, 0.08);
  text-align: left;
}

button.hero-stat {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

button.hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px rgba(109, 81, 47, 0.14);
}

.hero-stat-value {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.06em;
}

.hero-stat-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 700;
}

.hero-stat--amber {
  background: linear-gradient(180deg, rgba(201, 116, 22, 0.14), rgba(255, 255, 255, 0.78));
}

.hero-stat--red {
  background: linear-gradient(180deg, rgba(213, 72, 57, 0.14), rgba(255, 255, 255, 0.78));
}

.hero-stat--blue {
  background: linear-gradient(180deg, rgba(27, 92, 223, 0.14), rgba(255, 255, 255, 0.78));
}

.hero-stat--neutral {
  background: linear-gradient(180deg, rgba(36, 24, 15, 0.06), rgba(255, 255, 255, 0.78));
}

.dashboard-hero + .page-header {
  display: none;
}

.summary-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.summary-chip {
  min-height: 74px;
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: 0 16px 28px rgba(109, 81, 47, 0.08);
}

.summary-chip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.summary-chip:hover {
  transform: translateY(-2px);
}

.summary-chip--amber {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.82));
}

.summary-chip--red {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.12), rgba(255, 255, 255, 0.82));
}

.summary-chip--blue {
  background: linear-gradient(180deg, rgba(27, 92, 223, 0.12), rgba(255, 255, 255, 0.82));
}

.summary-chip--green {
  background: linear-gradient(180deg, rgba(20, 129, 90, 0.12), rgba(255, 255, 255, 0.82));
}

.summary-chip--purple {
  background: linear-gradient(180deg, rgba(122, 85, 211, 0.12), rgba(255, 255, 255, 0.82));
}

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

.dash-block,
.table-wrap,
.workflow-bar,
.criativo-card,
.action-block,
.meta-block,
.modal,
.calendar-day-card,
.asset-list,
.asset-main-panel,
.asset-side-panel,
.asset-upload-card,
.review-form,
.revision-round {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: 0 24px 44px rgba(109, 81, 47, 0.1);
  backdrop-filter: blur(14px);
}

.dash-block,
.table-wrap,
.workflow-bar,
.criativo-card,
.action-block,
.meta-block,
.calendar-day-card,
.asset-main-panel,
.asset-side-panel {
  border-radius: 24px;
}

.dash-block-header {
  padding: 18px 20px 12px;
  border-bottom: none;
}

.dash-block-title {
  font-size: 15px;
  font-weight: 700;
}

.dash-block-badge {
  min-width: 34px;
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 24, 15, 0.08);
  color: var(--text-1);
}

.dash-block-body {
  padding: 0 10px 12px;
}

.dash-item,
.stage-bar {
  margin: 0 8px 6px;
  padding: 14px 12px;
  border: none;
  border-radius: 18px;
  background: transparent;
}

.dash-item:hover {
  background: rgba(245, 235, 223, 0.8);
  transform: translateX(3px);
}

.dash-item-title {
  font-size: 14px;
}

.dash-item-sub {
  margin-top: 4px;
}

.dash-empty {
  padding: 34px 20px;
}

.stage-track {
  height: 8px;
  background: rgba(36, 24, 15, 0.08);
}

.stage-count {
  width: 34px;
}

.projects-grid,
.projects-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 212px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 240, 226, 0.8));
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: 0 28px 46px rgba(109, 81, 47, 0.1);
}

.project-card::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(201, 116, 22, 0.88), rgba(27, 92, 223, 0.88));
}

.project-card:hover {
  border-color: rgba(201, 116, 22, 0.24);
  box-shadow: 0 34px 54px rgba(109, 81, 47, 0.14);
  transform: translateY(-3px);
}

.project-name {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.project-client {
  margin-top: 6px;
  font-size: 12px;
}

.progress-wrap {
  gap: 8px;
}

.progress-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: rgba(36, 24, 15, 0.08);
}

.progress-bar-fill {
  background: linear-gradient(90deg, #c97416 0%, #1b5cdf 100%);
}

.project-stats-row {
  flex-wrap: wrap;
  gap: 10px;
}

.project-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(139, 109, 71, 0.1);
  font-size: 11px;
}

.project-alerts {
  flex-wrap: wrap;
}

.project-alert-chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.table-wrap {
  overflow: hidden;
}

thead th {
  background: rgba(244, 235, 224, 0.96);
  border-bottom-color: rgba(139, 109, 71, 0.12);
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: rgba(247, 239, 229, 0.84);
}

tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.inline-date,
.inline-select,
.form-input,
.form-select,
.form-textarea,
.filter-date-input,
.mobile-filter-select,
input[type="date"],
input[type="datetime-local"],
select {
  min-height: 42px;
  border-radius: 14px;
  border-color: rgba(139, 109, 71, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.form-textarea {
  min-height: 112px;
}

.board-wrap {
  gap: 16px;
  padding-bottom: 18px;
}

.kanban-col {
  width: 300px;
  min-width: 300px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(245, 236, 224, 0.72);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.kanban-col-header {
  padding: 6px 6px 12px;
}

.kanban-col-title {
  font-size: 11px;
  letter-spacing: 0.12em;
}

.kanban-count {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-2);
}

.kanban-cards {
  gap: 10px;
  padding: 2px 0 0;
}

.kanban-cards.drag-over {
  background: rgba(27, 92, 223, 0.08);
}

.kanban-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(109, 81, 47, 0.08);
}

.kanban-card:hover {
  box-shadow: 0 22px 38px rgba(109, 81, 47, 0.12);
}

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

.kanban-card-title {
  margin-bottom: 0;
  flex: 1;
}

.kanban-card-footer {
  margin-top: 12px;
}

.kanban-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.kanban-card-actions .inline-select {
  flex: 1;
  min-width: 0;
}

.kanban-assignee-select {
  max-width: 120px;
}

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

.workflow-bar {
  padding: 20px 22px;
}

.workflow-dot {
  width: 24px;
  height: 24px;
}

.workflow-step::after {
  top: 12px;
}

.criativo-card-header {
  padding: 24px 24px 18px;
}

.criativo-title {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.08;
}

.criativo-tabs {
  padding: 0 24px;
  gap: 18px;
}

.criativo-tab {
  margin-right: 0;
  padding: 16px 0;
  font-weight: 700;
}

.tab-pane {
  padding: 22px 24px 26px;
}

.action-block-header,
.meta-block-header {
  padding: 14px 18px;
  background: rgba(244, 235, 224, 0.88);
}

.meta-row {
  padding: 13px 18px;
}

.checklist-item,
.history-item,
.comment-item,
.asset-item {
  padding-top: 12px;
  padding-bottom: 12px;
}

.cal-header {
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: 0 18px 34px rgba(109, 81, 47, 0.08);
}

.cal-controls {
  margin-left: auto;
}

.cal-mode-toggle,
.cal-view-toggle {
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(139, 109, 71, 0.12);
}

.cal-mode-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
}

.cal-mode-btn.active {
  background: linear-gradient(135deg, rgba(201, 116, 22, 0.12), rgba(27, 92, 223, 0.12));
  color: var(--text-1);
}

.cal-legend {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 109, 71, 0.12);
}

.cal-grid {
  gap: 2px;
  border: none;
  background: rgba(215, 199, 176, 0.72);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(109, 81, 47, 0.08);
}

.cal-day-header {
  padding: 12px 8px;
  background: rgba(244, 235, 224, 0.96);
}

.cal-cell {
  min-height: 132px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.cal-cell.other-month {
  background: rgba(244, 235, 224, 0.76);
}

.cal-cell.today {
  background: linear-gradient(180deg, rgba(27, 92, 223, 0.08), rgba(255, 255, 255, 0.96));
}

.cal-cell.has-items:hover {
  background: rgba(255, 255, 255, 1);
}

.cal-date {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  justify-content: center;
}

.cal-item {
  padding: 5px 7px;
  margin-bottom: 4px;
  border-radius: 12px;
}

.cal-item-dot {
  font-size: 8px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.cal-item-copy {
  min-width: 0;
  overflow: hidden;
}

.cal-item-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.cal-item-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  opacity: 0.78;
}

.calendar-day-card {
  background: rgba(255, 255, 255, 0.82);
}

.mobile-cr-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(139, 109, 71, 0.12);
  box-shadow: 0 20px 34px rgba(109, 81, 47, 0.08);
}

.mobile-meta-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(245, 236, 224, 0.8);
  border-color: rgba(139, 109, 71, 0.12);
}

.modal-overlay {
  background: rgba(33, 24, 16, 0.34);
  backdrop-filter: blur(10px);
}

.modal {
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.94);
}

.toast {
  border-radius: 16px;
  box-shadow: 0 24px 42px rgba(19, 17, 15, 0.18);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at top, rgba(201, 116, 22, 0.16), transparent 30%),
    radial-gradient(circle at bottom, rgba(27, 92, 223, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, #f5ede3 100%);
}

.loading-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(139, 109, 71, 0.12);
  box-shadow: 0 28px 48px rgba(109, 81, 47, 0.12);
}

.loading-logo {
  display: block;
  height: 30px;
  width: auto;
}

.loading-dots {
  display: flex;
  gap: 7px;
}

.loading-msg {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.loading-error-area {
  text-align: center;
}

html[data-theme="dark"] {
  --bg: #120f0d;
  --surface: #1b1612;
  --surface-2: #241d18;
  --border: #3a2f25;
  --border-2: #2b241d;
  --text-1: #f7ecde;
  --text-2: #c9b9a4;
  --text-3: #8f7e6c;
  --blue: #7fb0ff;
  --blue-h: #5f95ff;
  --blue-l: rgba(127, 176, 255, 0.16);
  --blue-b: rgba(127, 176, 255, 0.3);
  --green: #41c48c;
  --green-l: rgba(65, 196, 140, 0.16);
  --amber: #ffb251;
  --amber-l: rgba(255, 178, 81, 0.18);
  --red: #ff7a6a;
  --red-l: rgba(255, 122, 106, 0.16);
  --orange: #ff9c4d;
  --orange-l: rgba(255, 156, 77, 0.16);
  --purple: #c3a9ff;
  --purple-l: rgba(195, 169, 255, 0.16);
  --indigo: #9db1ff;
  --indigo-l: rgba(157, 177, 255, 0.16);
  --shadow-xs: 0 8px 16px rgba(0, 0, 0, 0.26);
  --shadow-sm: 0 16px 28px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 28px 48px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 40px 72px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 178, 81, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(127, 176, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #100d0b 0%, #17120e 100%);
}

html[data-theme="dark"] .sidebar {
  background:
    radial-gradient(circle at top, rgba(255, 178, 81, 0.14), transparent 34%),
    linear-gradient(180deg, #0b0a0c 0%, #111827 52%, #1a140f 100%);
}

html[data-theme="dark"] .header,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .dash-block,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .workflow-bar,
html[data-theme="dark"] .criativo-card,
html[data-theme="dark"] .action-block,
html[data-theme="dark"] .meta-block,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .calendar-day-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .kanban-card,
html[data-theme="dark"] .mobile-cr-card,
html[data-theme="dark"] .asset-main-panel,
html[data-theme="dark"] .asset-side-panel,
html[data-theme="dark"] .asset-upload-card,
html[data-theme="dark"] .review-form,
html[data-theme="dark"] .revision-round {
  background: rgba(24, 19, 15, 0.86);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dashboard-hero {
  background:
    radial-gradient(circle at top right, rgba(127, 176, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 178, 81, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(27, 21, 16, 0.94), rgba(15, 19, 31, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .hero-stat,
html[data-theme="dark"] .summary-chip,
html[data-theme="dark"] .segmented-toggle,
html[data-theme="dark"] .header-search,
html[data-theme="dark"] .btn-icon--chrome,
html[data-theme="dark"] .btn--secondary,
html[data-theme="dark"] .filter-trigger,
html[data-theme="dark"] .filter-date-group,
html[data-theme="dark"] .kanban-col,
html[data-theme="dark"] .mobile-meta-item,
html[data-theme="dark"] .loading-brand {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .summary-chip--amber,
html[data-theme="dark"] .hero-stat--amber {
  background: linear-gradient(180deg, rgba(255, 178, 81, 0.18), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .summary-chip--red,
html[data-theme="dark"] .hero-stat--red {
  background: linear-gradient(180deg, rgba(255, 122, 106, 0.18), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .summary-chip--blue,
html[data-theme="dark"] .hero-stat--blue {
  background: linear-gradient(180deg, rgba(127, 176, 255, 0.18), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .summary-chip--purple {
  background: linear-gradient(180deg, rgba(195, 169, 255, 0.16), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] .hero-stat--neutral {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

html[data-theme="dark"] thead th,
html[data-theme="dark"] .action-block-header,
html[data-theme="dark"] .meta-block-header,
html[data-theme="dark"] .cal-day-header {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] tbody tr:hover,
html[data-theme="dark"] .dash-item:hover,
html[data-theme="dark"] .filter-option:hover,
html[data-theme="dark"] .user-switcher-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .inline-date,
html[data-theme="dark"] .inline-select,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-textarea,
html[data-theme="dark"] .mobile-filter-select,
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] select {
  background: rgba(8, 10, 14, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .loading-screen {
  background:
    radial-gradient(circle at top, rgba(255, 178, 81, 0.14), transparent 32%),
    radial-gradient(circle at bottom, rgba(127, 176, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #100d0b 0%, #17120e 100%);
}

@media (max-width: 1100px) {
  .dashboard-hero,
  .criativo-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --sidebar-w: min(88vw, 320px);
  }

  html,
  body,
  #app,
  .main-wrapper,
  .content {
    overflow-x: hidden;
  }

  .content {
    padding: 18px 14px 24px;
  }

  .header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "left left right"
      "search search search";
    gap: 12px;
    padding: 16px;
  }

  .header-left {
    grid-area: left;
  }

  .header-center {
    grid-area: search;
    justify-content: stretch;
  }

  .header-right {
    grid-area: right;
    justify-content: flex-end;
  }

  .header-search {
    width: 100%;
    min-height: 46px;
  }

  .breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }

  .filter-bar-area {
    padding: 6px 16px 0;
  }

  .filter-bar {
    padding: 10px;
    border-radius: 16px;
  }

  .dashboard-hero {
    padding: 20px;
    border-radius: 24px;
  }

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

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

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

  .summary-chip {
    min-height: 70px;
    padding: 14px;
  }

  .projects-grid,
  .projects-grid--compact {
    grid-template-columns: 1fr !important;
  }

  .project-card {
    min-height: auto;
  }

  .kanban-col {
    width: min(82vw, 290px);
    min-width: min(82vw, 290px);
  }

  .criativo-card-header,
  .tab-pane {
    padding-left: 18px;
    padding-right: 18px;
  }

  .criativo-tabs {
    padding: 0 18px;
  }

  .cal-header {
    padding: 16px;
    border-radius: 20px;
  }

  .cal-controls {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .cal-grid {
    min-width: 740px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    max-width: calc(100vw - 16px);
    transform: translate3d(calc(-100% - 28px), 0, 0);
    visibility: hidden;
    pointer-events: none;
    box-shadow: none;
    border-right: none;
    transition: transform 0.22s ease, visibility 0s linear 0.22s, box-shadow 0.22s ease;
  }

  .sidebar.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, visibility 0s linear 0s, box-shadow 0.22s ease;
  }

  .sidebar-overlay {
    background: rgba(20, 14, 10, 0.42);
    backdrop-filter: blur(8px);
  }

  .sidebar-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 12px));
  }

  .modal {
    border-radius: 24px 24px 0 0 !important;
  }
}

@media (max-width: 520px) {
  .header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "left right"
      "search search";
  }

  .page-title {
    font-size: clamp(24px, 8vw, 34px);
  }

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

  .dashboard-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat-label {
    font-size: 11px;
  }

  .mobile-cr-meta-grid {
    grid-template-columns: 1fr;
  }

  .kanban-card-actions {
    flex-direction: column;
  }

  .kanban-assignee-select {
    max-width: none;
  }
}
