:root {
  --primary: #4b5ed7;
  --primary-dark: #3547b8;
  --ink: #1f263b;
  --muted: #687188;
  --border: #e0e5ef;
  --bg: #f4f7fc;
  --green: #078d6b;
  --orange: #e57d18;
  --teal: #078e8b;
  --blue: #2462d4;
  --rose: #d43e70;
  --violet: #7054d8;
  --sidebar: 238px;
  --shadow: 0 10px 32px #2434640b;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
button svg {
  pointer-events: none;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: #fcfcff;
  border-right: 1px solid var(--border);
  z-index: 20;
  padding: 29px 17px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px 31px;
  letter-spacing: 0;
  font-size: 23px;
  font-weight: 780;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--primary);
  border-radius: 11px;
  color: white;
  box-shadow: 0 4px 12px #6955d924;
}
.brand em {
  font-size: 11px;
  font-style: normal;
  background: #ece9fc;
  color: var(--primary);
  padding: 3px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  margin-left: -5px;
}
.workspace {
  margin: 0 6px 27px;
  padding: 12px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
}
.workspace .workspace-icon {
  width: 28px;
  height: 28px;
  background: #f2f1fb;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.workspace strong {
  font-size: 14px;
  font-weight: 650;
  display: block;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.platform-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -10px 6px 23px;
  padding: 10px 11px;
  border: 1px solid #dfe5f3;
  border-radius: 8px;
  background: linear-gradient(120deg, #eef2ff, #eefaf8 52%, #fff5e9);
}
.platform-strip span {
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
}
.platform-strip .dsp {
  color: #3449c6;
  background: #dfe5ff;
}
.platform-strip .ssp {
  color: #087e6c;
  background: #d9f5ed;
}
.platform-strip .dmp {
  color: #a9570d;
  background: #ffead1;
}
.platform-strip small {
  margin-left: auto;
  color: #65708d;
  font-size: 10px;
  white-space: nowrap;
}
.nav-label {
  font-size: 12px;
  font-weight: 650;
  color: #a1a2b3;
  letter-spacing: 1.4px;
  padding: 0 15px;
  margin: 0 0 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 15px;
  color: #77798d;
  transition: 0.18s;
}
.nav a:hover {
  background: #f1effa;
  color: var(--primary);
}
.nav a.active {
  background: #eeebfd;
  color: var(--primary);
  font-weight: 650;
  position: relative;
}
.nav a.active:before {
  content: "";
  width: 3px;
  height: 18px;
  position: absolute;
  left: -17px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nav .count {
  margin-left: auto;
  font-size: 12px;
  padding: 1px 6px;
  background: white;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.nav-separator {
  border-top: 1px solid var(--border);
  margin: 21px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.help-card {
  padding: 15px;
  background: linear-gradient(135deg, #f0edfd, #f7f6fd);
  border: 1px solid #e8e3fa;
  border-radius: 9px;
  margin: 0 5px 18px;
}
.help-card strong {
  font-size: 14px;
  display: block;
  margin: 8px 0 5px;
}
.help-card p {
  font-size: 13px;
  line-height: 1.7;
  color: #8d85a8;
  margin: 0 0 11px;
}
.help-card button {
  font-size: 13px;
  color: var(--primary);
  padding: 0;
  font-weight: 600;
}
.sidebar-foot {
  font-size: 12px;
  color: #a3a4b5;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
}
.shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--border);
  background: #ffffffed;
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  backdrop-filter: blur(12px);
}
.breadcrumb {
  font-size: 14px;
  color: #999aaa;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb strong {
  font-weight: 500;
  color: #595a70;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.mode {
  font-size: 12px;
  border: 1px solid #ece5d7;
  background: #fffcf4;
  color: #a58b57;
  border-radius: 5px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #8e8fa3;
  position: relative;
}
.icon-btn:hover {
  background: #efedf8;
  color: var(--primary);
}
.icon-btn .notification {
  position: absolute;
  right: 5px;
  top: 4px;
  background: #ec977e;
  border: 2px solid white;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.user {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.user-avatar {
  width: 31px;
  height: 31px;
  background: #eae6fc;
  color: var(--primary);
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.user small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.main {
  padding: 31px 34px 24px;
  max-width: 1740px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 9px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}
.page-head h1 {
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 7px;
  font-weight: 650;
}
.page-head p {
  color: #9999ab;
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}
.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid #e2e3ed;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background: white;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #f5f3fd;
  border-color: #d7d0f4;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 3px 6px #6955d915;
}
.btn.primary:hover {
  background: var(--primary-dark);
}
.btn.small {
  padding: 7px 11px;
  font-size: 13px;
}
.btn.ghost {
  background: none;
  border-color: transparent;
  color: var(--primary);
}
.btn.danger {
  color: #cf6b65;
}
.btn:active {
  transform: translateY(1px);
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.small-text {
  font-size: 13px;
  line-height: 1.7;
}
.text-link {
  color: var(--primary);
  font-size: 13px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.text-link:hover {
  text-decoration: underline;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.panel-head {
  padding: 21px 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.panel-head h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.panel-head h2 small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.section-title {
  font-size: 17px;
  font-weight: 600;
  margin: 26px 0 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 22px;
}
.stat {
  padding: 20px 21px 17px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8e8fa3;
}
.stat-icon {
  background: #f2effd;
  color: var(--primary);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.stat-number {
  font-size: 32px;
  letter-spacing: 0;
  font-weight: 640;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.stat-number em {
  font-style: normal;
  font-size: 17px;
  color: #a4a5b5;
  margin-right: 5px;
}
.stat-foot {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a1a2b0;
}
.up {
  color: var(--green);
}
.down {
  color: #db8878;
}
.sparkline {
  position: absolute;
  right: 20px;
  bottom: 19px;
  width: 72px;
  height: 25px;
  opacity: 0.7;
}
.insight-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e9e5f6;
  background: linear-gradient(100deg, #f0edfc, #faf9ff);
  padding: 13px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: #81759f;
}
.insight-strip strong {
  font-size: 13px;
  color: #60517d;
  font-weight: 600;
}
.insight-strip button {
  margin-left: auto;
  white-space: nowrap;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  margin-bottom: 24px;
}
.chart-panel {
  min-width: 0;
}
.segmented {
  display: inline-flex;
  background: #f6f6fa;
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}
.segmented button {
  font-size: 12px;
  color: #9a9aad;
  padding: 6px 11px;
  border-radius: 4px;
}
.segmented button.selected {
  background: white;
  box-shadow: 0 1px 4px #3030470b;
  color: var(--primary);
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: #9595a8;
  padding: 0 23px 10px;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 3px;
  margin-right: 6px;
}
.chart-wrap {
  padding: 0 18px 15px;
  position: relative;
}
.chart-svg {
  width: 100%;
  height: 228px;
  overflow: visible;
}
.chart-svg text {
  font: 12px Inter,
    -apple-system,
    sans-serif;
  fill: #aeaec0;
}
.chart-tooltip {
  display: none;
  position: absolute;
  left: 45%;
  top: 26%;
  background: #29243f;
  color: white;
  padding: 11px 13px;
  border-radius: 7px;
  box-shadow: 0 6px 20px #29243f22;
  font-size: 12px;
  pointer-events: none;
  line-height: 1.8;
  white-space: nowrap;
}
.chart-wrap:hover .chart-tooltip {
  display: block;
}
.donut {
  width: 150px;
  height: 150px;
  margin: 8px auto 12px;
  position: relative;
}
.donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 30px;
  font-weight: 650;
}
.donut-center small {
  font-size: 11px;
  color: #a6a4b9;
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 5px;
}
.media-legend {
  padding: 0 23px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 10px;
  font-size: 12px;
  color: #9492a9;
}
.media-legend strong {
  font-weight: 550;
  color: #555167;
  float: right;
  margin-left: 5px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}
.quick {
  padding: 15px;
  display: flex;
  gap: 12px;
  text-align: left;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  transition: 0.2s;
}
.quick:hover {
  border-color: #bcb1ed;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px #6955d90a;
}
.quick-icon {
  background: #f2effd;
  color: var(--primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
}
.quick strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.quick small {
  display: block;
  color: #a1a1b3;
  font-size: 11px;
  margin-top: 4px;
}
.quick > svg {
  margin-left: auto;
  color: #bebacc;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
thead {
  background: #fafafd;
  color: #a0a0b1;
  font-size: 12px;
}
th {
  font-weight: 450;
  padding: 13px 20px;
  border-top: 1px solid #f1f1f6;
  border-bottom: 1px solid #f0f0f5;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f1f6;
  font-size: 13px;
  color: #68687f;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfbff;
}
.row-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.violet {
  background: #efebfd;
  color: #8070d1;
}
.avatar.orange {
  background: #fff0e3;
  color: #d3a05c;
}
.avatar.dark {
  background: #eeedf1;
  color: #5d5b6d;
}
.avatar.teal {
  background: #e1f4ef;
  color: #69a58d;
}
.avatar.rose {
  background: #fff0f3;
  color: #cb8ca5;
}
.avatar.blue {
  background: #e9f0fc;
  color: #7199d7;
}
.avatar.green,
.avatar.mint {
  background: #edf5e9;
  color: #91ad70;
}
.name-cell {
  min-width: 160px;
  max-width: 280px;
  text-align: left;
  padding: 0;
}
.name-cell strong {
  font-weight: 550;
  color: #44435a;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.name-cell small {
  display: block;
  font-size: 11px;
  color: #b1aebe;
  margin-top: 6px;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table-bottom {
  border-top: 1px solid var(--border);
  padding: 15px 20px;
  font-size: 12px;
  color: #a4a3b4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pagination button {
  height: 25px;
  min-width: 25px;
  border-radius: 4px;
  font-size: 12px;
}
.pagination .active {
  background: #efebfd;
  color: var(--primary);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 11px;
  background: #f2f2f7;
  color: #a5a3b2;
  white-space: nowrap;
}
.badge.active,
.badge.ok {
  color: #2f9b79;
  background: #eef8f3;
}
.badge.paused,
.badge.warn {
  color: #c8964f;
  background: #fff7e9;
}
.badge.draft {
  color: #9385c7;
  background: #f3effc;
}
.badge.ended {
  color: #a3a0b1;
  background: #f3f3f7;
}
.badge.info {
  color: #8a7ac3;
  background: #f0edfb;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #ebe9f3;
  border-radius: 4px;
  font-size: 11px;
  color: #a19bad;
  margin-right: 4px;
  background: white;
}
.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #a4a1b6;
}
.progress-track {
  height: 4px;
  border-radius: 2px;
  width: 78px;
  background: #f0edf7;
  overflow: hidden;
}
.progress-track span {
  height: 100%;
  display: block;
  border-radius: 2px;
  background: #a998ec;
}
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1px;
}
.money {
  color: #454356;
  font-weight: 500;
}
.table-tools {
  padding: 0 21px 17px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6e5ee;
  border-radius: 6px;
  padding: 8px 11px;
  background: white;
  color: #aaa7bb;
  min-width: 220px;
}
.search-box input {
  border: 0;
  outline: 0;
  padding: 0;
  width: 100%;
  font-size: 13px;
  background: none;
  color: #58536c;
}
.search-box input::placeholder {
  color: #b5b1c2;
}
select.control {
  padding: 8px 12px;
  border: 1px solid #e6e5ee;
  border-radius: 6px;
  background: white;
  color: #8b869e;
  font-size: 13px;
  min-width: 120px;
}
.toolbar-spacer {
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  margin-bottom: 19px;
}
.tabs button {
  font-size: 14px;
  color: #a19bad;
  padding: 17px 0 13px;
  border-bottom: 2px solid transparent;
}
.tabs .selected {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 550;
}
.tabs .tab-count {
  font-size: 11px;
  border-radius: 4px;
  background: #f4f2fa;
  padding: 2px 5px;
  margin-left: 5px;
}
.summary-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 21px;
}
.summary-chip {
  padding: 15px 18px;
  min-width: 150px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.summary-chip strong {
  font-size: 24px;
  font-weight: 600;
  color: #4f4864;
}
.summary-chip span {
  font-size: 13px;
  color: #a09bad;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.asset-card {
  padding: 21px;
  transition: 0.2s;
  min-width: 0;
}
.asset-card:hover {
  border-color: #cfc5f1;
  box-shadow: 0 9px 24px #6955d90b;
}
.asset-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.asset-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}
.asset-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #aaa4b6;
  margin: 0 0 18px;
  min-height: 38px;
}
.asset-big {
  font-size: 31px;
  font-weight: 580;
  letter-spacing: 0;
  margin: 13px 0 17px;
}
.asset-big small {
  font-size: 12px;
  color: #b0aabd;
  font-weight: 400;
  margin-left: 7px;
}
.asset-foot {
  border-top: 1px solid #f0edf5;
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #b0a9bf;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tags span {
  font-size: 11px;
  padding: 5px 7px;
  border-radius: 4px;
  background: #f5f3fa;
  color: #9c92af;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  background: #f6f3ff;
  border: 1px solid #eee8fc;
  border-radius: 7px;
  color: #9687b3;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 21px;
}
.notice.warm {
  background: #fffcf4;
  border-color: #f3ead6;
  color: #b39a6c;
}
.notice svg {
  margin-top: 2px;
}
.notice strong {
  font-weight: 600;
  color: inherit;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: #a49bb9;
  font-size: 14px;
}
.empty svg {
  display: block;
  margin: 0 auto 15px;
  color: #b7aed0;
}
.empty strong {
  font-size: 16px;
  font-weight: 550;
  display: block;
  margin-bottom: 7px;
}
.empty .btn {
  margin-top: 15px;
}
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px 20px;
}
.schedule-table td {
  padding: 14px 10px;
  border-right: 1px solid #f2eff7;
  text-align: center;
}
.schedule-table th {
  text-align: center;
  padding: 13px 10px;
}
.schedule-table th:first-child,
.schedule-table td:first-child {
  text-align: left;
  padding-left: 22px;
  min-width: 200px;
}
.day-cell {
  background: #f3f0fe;
  color: #8d7bd2;
  font-size: 12px;
  padding: 9px 5px;
  border-radius: 5px;
  width: 100%;
  min-width: 40px;
}
.day-cell:hover {
  background: #e6dffb;
}
.day-cell.off {
  background: #faf9fc;
  color: #d3cddd;
}
.today {
  background: #f0ebfd;
}
.schedule-legend {
  display: flex;
  gap: 20px;
  color: #a79cb8;
  font-size: 12px;
  padding: 18px 22px;
  align-items: center;
}
.schedule-legend .pill {
  margin-left: auto;
}
.creative-card {
  overflow: hidden;
  padding: 0;
}
.creative-art {
  height: 208px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.creative-art.chocolate {
  background: #e8dfd4;
  color: #6a4a34;
}
.creative-art.lavender {
  background: #e4dff0;
  color: #78628f;
}
.creative-art.sport {
  background: #dde5df;
  color: #416453;
}
.creative-art.fresh {
  background: #dcece4;
  color: #548f76;
}
.creative-art:before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.15;
  right: -50px;
  top: -30px;
}
.creative-art:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.15;
  left: -50px;
  bottom: -80px;
}
.creative-art .visual-brand {
  letter-spacing: 3px;
  font-family: Georgia, serif;
  font-size: 20px;
  position: relative;
  z-index: 1;
}
.creative-art .visual-title {
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 9px;
  opacity: 0.65;
}
.creative-art .product {
  font-family: Georgia, serif;
  font-size: 42px;
  margin-top: 20px;
  font-style: italic;
  letter-spacing: 0;
  text-align: center;
}
.creative-art .visual-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  background: #ffffff90;
  padding: 4px 6px;
  border-radius: 3px;
  color: #8d7c8e;
  letter-spacing: 1px;
}
.creative-art .play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #ffffffb3;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: inherit;
}
.creative-body {
  padding: 18px;
}
.creative-body h3 {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 10px;
}
.creative-meta {
  font-size: 11px;
  color: #aaa1b7;
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
}
.creative-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.creative-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mapping-row {
  white-space: normal;
  min-width: 170px;
  line-height: 1.8;
}
.mapping-row code {
  font-size: 11px;
  color: #aba1b9;
  word-break: break-all;
  display: block;
}
.domain {
  font-size: 11px;
  letter-spacing: 0.7px;
  font-weight: 650;
  color: #9d8fc1;
  background: #f1edf9;
  padding: 4px 7px;
  border-radius: 4px;
}
.domain.ssp {
  background: #eaf5f0;
  color: #75a98d;
}
.domain.dmp {
  background: #fff3e6;
  color: #bc9e72;
}
.audit-list {
  padding: 0 24px 15px;
}
.audit-item {
  display: flex;
  gap: 14px;
  position: relative;
  border-bottom: 1px solid #f1edf7;
  padding: 19px 0;
}
.audit-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1edf9;
  color: #a192bf;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.audit-item strong {
  font-size: 14px;
  font-weight: 550;
}
.audit-item p {
  font-size: 12px;
  color: #a79bb6;
  line-height: 1.8;
  margin: 6px 0;
}
.audit-item small {
  font-size: 11px;
  color: #b9b0c4;
}
.audit-item time {
  font-size: 11px;
  color: #b8afc3;
  margin-left: auto;
  white-space: nowrap;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #b6b1c3;
  padding-top: 24px;
  line-height: 1.7;
}
.footer strong {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.6px;
  color: #a6a0b4;
}
.footer button {
  padding: 0;
  font-size: 11px;
  color: #a89cbb;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #22203655;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  padding: 30px;
  animation: fade 0.16s;
}
.modal {
  background: white;
  width: 780px;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 13px;
  box-shadow: 0 20px 90px #18132a30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise 0.2s;
}
.modal.narrow {
  width: 500px;
}
.modal.wide {
  width: 1080px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 27px;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.modal-head h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 6px;
}
.modal-head p {
  font-size: 12px;
  color: #aaa0b8;
  margin: 0;
  line-height: 1.7;
}
.modal-body {
  padding: 24px 27px;
  overflow: auto;
  min-height: 0;
}
.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 18px 27px;
  background: #fdfcff;
  gap: 12px;
}
.modal-foot .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}
.drawer {
  height: 100vh;
  max-height: 100vh;
  width: 630px;
  border-radius: 13px 0 0 13px;
}
.drawer .modal-body {
  flex: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 13px;
  color: #796e89;
}
.field label .required {
  color: #c1859c;
  margin-left: 3px;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #e4dfed;
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
  color: #64576f;
  background: white;
  font-size: 14px;
  min-width: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #dbd3f5;
  outline-offset: 0;
  border-color: #b6a7e5;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.8;
}
.field small {
  font-size: 11px;
  color: #b3a9bf;
  line-height: 1.7;
}
.field .input-unit {
  position: relative;
}
.field .input-unit input {
  padding-right: 45px;
}
.field .input-unit span {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #b5aabe;
  font-size: 12px;
}
.form-section {
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-section:first-child {
  margin-top: 0;
}
.form-section:before {
  content: "";
  width: 3px;
  height: 11px;
  background: var(--primary);
  border-radius: 3px;
}
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f3eff8;
  gap: 20px;
}
.switch-row strong {
  font-size: 13px;
  font-weight: 500;
  color: #796d8b;
}
.switch-row p {
  font-size: 11px;
  line-height: 1.6;
  margin: 5px 0 0;
  color: #b1a7bf;
}
.switch {
  width: 31px;
  height: 18px;
  border-radius: 12px;
  background: #ddd8e9;
  position: relative;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  left: 2px;
  top: 2px;
  box-shadow: 0 1px 3px #2221;
  transition: 0.2s;
}
.switch.on {
  background: var(--primary);
}
.switch.on:after {
  left: 15px;
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 25px 38px 22px;
  border-bottom: 1px solid var(--border);
  background: #fdfcff;
  gap: 9px;
}
.step {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #b5acc3;
  position: relative;
  flex: 1;
}
.step:after {
  content: "";
  position: absolute;
  height: 1px;
  background: #e9e2f2;
  top: 13px;
  left: calc(50% + 20px);
  width: calc(100% - 31px);
}
.step:last-child:after {
  display: none;
}
.step b {
  height: 27px;
  width: 27px;
  border: 1px solid #e8e0f2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  background: white;
  z-index: 1;
}
.step.current {
  color: var(--primary);
  font-weight: 550;
}
.step.current b {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px #f0ebfc;
}
.step.done {
  color: #a292c3;
}
.step.done b {
  background: #ede8fa;
  color: #9d88cb;
  border-color: #ede8fa;
}
.wizard-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  min-height: 365px;
}
.wizard-form {
  padding: 26px;
  min-width: 0;
}
.wizard-side {
  background: #fcfaff;
  border-left: 1px solid #ede7f4;
  padding: 25px 22px;
}
.wizard-side h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 25px;
}
.wizard-side dl {
  margin: 0;
  display: grid;
  gap: 20px;
}
.wizard-side dt {
  font-size: 11px;
  color: #b5a7c5;
  margin-bottom: 6px;
}
.wizard-side dd {
  font-size: 13px;
  color: #897697;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.wizard-side .side-note {
  margin-top: 28px;
  border-top: 1px solid #ece4f3;
  padding-top: 15px;
  font-size: 11px;
  line-height: 1.9;
  color: #b3a6c1;
}
.selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selection {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e9e2f2;
  border-radius: 7px;
  padding: 13px;
  cursor: pointer;
  transition: 0.16s;
}
.selection:hover {
  border-color: #c9b9e9;
}
.selection.selected {
  background: #faf7ff;
  border-color: #b7a0e6;
}
.selection input {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.selection .avatar {
  width: 30px;
  height: 30px;
}
.selection strong {
  font-size: 13px;
  font-weight: 550;
}
.selection small {
  font-size: 11px;
  color: #b2a4bf;
  display: block;
  margin-top: 5px;
}
.selection .right {
  margin-left: auto;
  text-align: right;
}
.check-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0eaf5;
  align-items: center;
}
.check-item .check-icon {
  height: 26px;
  width: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef7f2;
  color: #6fa88f;
}
.check-item.fail .check-icon {
  color: #cdad79;
  background: #fff8ed;
}
.check-item strong {
  font-size: 13px;
  font-weight: 500;
}
.check-item small {
  display: block;
  font-size: 11px;
  color: #b5a8c3;
  line-height: 1.8;
  margin-top: 3px;
}
.check-item .badge {
  margin-left: auto;
}
.detail-hero {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
}
.detail-hero .avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 24px;
}
.detail-hero h3 {
  font-size: 20px;
  margin: 0 0 7px;
  font-weight: 600;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 23px;
}
.detail-grid div {
  padding: 15px;
  background: #faf7fe;
  border: 1px solid #f0eaf7;
  border-radius: 7px;
}
.detail-grid small {
  font-size: 11px;
  color: #b6a8c4;
  display: block;
  margin-bottom: 7px;
}
.detail-grid strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.detail-grid .span2 {
  grid-column: 1/-1;
}
.bar-row {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  color: #a998b8;
  margin: 16px 0;
}
.bar-row label {
  width: 65px;
}
.bar-row .bar {
  flex: 1;
  height: 7px;
  background: #f3edf9;
  border-radius: 6px;
  overflow: hidden;
}
.bar-row .bar span {
  display: block;
  height: 100%;
  background: #b19cdb;
  border-radius: 6px;
}
.bar-row strong {
  font-size: 12px;
  font-weight: 500;
  width: 35px;
  text-align: right;
}
.code-block {
  padding: 17px;
  background: #292537;
  color: #cfc3df;
  border-radius: 7px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error {
  font-size: 13px;
  color: #bd6b77;
  padding: 10px 0 0;
  line-height: 1.7;
}
.checkbox-line {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #9b8aaa;
  align-items: center;
}
.checkbox-line input {
  accent-color: var(--primary);
}
.weight-sliders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.weight-sliders label {
  font-size: 12px;
  color: #a394b4;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.weight-sliders input {
  width: 100%;
  accent-color: var(--primary);
}
.report-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.source-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.source-card {
  padding: 20px;
}
.source-card h3 {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  font-weight: 550;
}
.source-card p {
  font-size: 12px;
  color: #ae9fbd;
  line-height: 1.9;
  margin: 0;
}
.source-card .text-link {
  margin-top: 15px;
}
.timeline-date {
  margin-top: 2px;
  font-size: 11px;
  color: #b2a7c0;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 15px);
  padding: 12px 19px;
  background: #332c46;
  color: #f8f6fc;
  font-size: 14px;
  border-radius: 8px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 25px #25203920;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.mobile-nav {
  display: none;
}
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  border: 1px dashed #cfc0e6;
  background: #fcf9ff;
  border-radius: 8px;
  padding: 27px 20px;
  font-size: 13px;
  color: #b09ac7;
  text-align: center;
}
.file-drop input {
  font-size: 12px;
  width: 100%;
  margin: 0 auto;
  color: #a28bb7;
}
.file-drop strong {
  font-weight: 500;
  color: #8f77aa;
}
.file-drop small {
  font-size: 11px;
  line-height: 1.7;
}
.kbd {
  font-size: 11px;
  color: #c1b8cd;
  border: 1px solid #e9e2f0;
  border-radius: 3px;
  padding: 1px 4px;
}
.list-compact {
  padding: 0;
  margin: 0;
  list-style: none;
}
.list-compact li {
  font-size: 13px;
  color: #a492b2;
  line-height: 1.9;
  margin: 8px 0;
  display: flex;
  gap: 8px;
}
.list-compact li:before {
  content: "·";
  color: #a992cb;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.mt20 {
  margin-top: 20px;
}
.mb20 {
  margin-bottom: 20px;
}
.number-highlight {
  font-size: 32px;
  letter-spacing: 0;
  color: var(--primary);
  font-weight: 600;
  margin: 20px 0;
}
.number-highlight small {
  font-size: 13px;
  font-weight: 400;
  margin-left: 5px;
  color: #ad9bbd;
}
.subtitle-line {
  font-size: 12px;
  color: #a899b7;
  line-height: 1.9;
  margin: 0 0 20px;
}
.form-alert {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #b4a4bf;
}
.resource-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aaa0b9;
  font-size: 12px;
  margin: 13px 0;
}
.resource-info strong {
  font-weight: 500;
  color: #82718f;
}
.table-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.download-list .btn {
  justify-content: flex-start;
  padding: 15px;
}
.user-menu {
  padding: 20px;
  font-size: 14px;
}
.user-menu strong {
  display: block;
  margin: 10px 0;
}
.user-menu p {
  font-size: 13px;
  color: #a493b4;
  line-height: 1.9;
}
.view-animate {
  animation: fade 0.2s;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Readability and multi-system palette */
.brand {
  letter-spacing: 0;
}
.brand-mark {
  background: linear-gradient(135deg, #4f63df, #7650d8);
  box-shadow: 0 6px 16px #4f63df2b;
}
.workspace {
  background: #f8faff;
  border-color: #dfe5f5;
}
.workspace .workspace-icon {
  background: #e7ecff;
  color: #3e55ce;
}
.nav a {
  color: #626b82;
}
.nav a:hover {
  background: #eef2ff;
  color: #344cc5;
}
.nav a.active {
  background: linear-gradient(90deg, #e7ecff, #edf3ff);
  color: #3048c1;
}
.nav a.active:before {
  background: #4058d3;
}
.help-card {
  background: linear-gradient(135deg, #edf1ff, #f5edff 58%, #fff3e8);
  border-color: #dfe3fa;
}
.mode {
  color: #a86214;
  background: #fff8eb;
  border-color: #f1dfbc;
}
.page-head h1 {
  letter-spacing: 0;
  color: #19213a;
}
.eyebrow {
  color: #4358c7;
}
.panel {
  border-color: #e2e7f1;
}
.stat {
  --stat-accent: #5064df;
  --stat-tint: #eef1ff;
  --stat-border: #dce3ff;
  background: linear-gradient(145deg, #fff 15%, var(--stat-tint));
  border-color: var(--stat-border);
}
.stat-impression {
  --stat-accent: #078f7d;
  --stat-tint: #e9faf5;
  --stat-border: #d2f0e8;
}
.stat-click {
  --stat-accent: #246fce;
  --stat-tint: #eaf4ff;
  --stat-border: #d5e8fb;
}
.stat-activity {
  --stat-accent: #d97a17;
  --stat-tint: #fff4e5;
  --stat-border: #f6e2c3;
}
.stat-top {
  color: #65708b;
}
.stat-icon {
  background: #ffffffb8;
  color: var(--stat-accent);
  border: 1px solid var(--stat-border);
}
.stat-number {
  letter-spacing: 0;
  color: #202941;
}
.stat-foot {
  color: #778198;
}
.up {
  color: #078d6b;
}
.insight-strip {
  background: linear-gradient(100deg, #edf1ff, #eefaf7 60%, #fff8ec);
  border-color: #dfe7f5;
  color: #596783;
}
.insight-strip strong {
  color: #344bbd;
}
.segmented {
  background: #f0f3f9;
}
.segmented button {
  color: #6b758b;
}
.segmented button.selected {
  color: #344cc5;
  box-shadow: 0 2px 7px #3549a714;
}
.quick {
  border-color: #dfe5ef;
}
.quick:nth-child(1) .quick-icon {
  color: #4057d3;
  background: #e8edff;
}
.quick:nth-child(2) .quick-icon {
  color: #057f70;
  background: #dff7f0;
}
.quick:nth-child(3) .quick-icon {
  color: #b7650e;
  background: #fff0dc;
}
.quick:nth-child(4) .quick-icon {
  color: #bd3f6c;
  background: #ffe8ef;
}
.quick:hover {
  border-color: #bdc9ec;
  box-shadow: 0 8px 24px #314c9b12;
}
thead {
  background: #f3f6fb;
  color: #68738a;
}
th {
  border-color: #e8edf5;
}
td {
  color: #576079;
  border-color: #edf0f6;
}
tbody tr:hover {
  background: #f8faff;
}
.name-cell strong,
.money {
  color: #29334c;
}
.name-cell small {
  color: #7f899e;
}
.avatar.violet {
  background: #e8eaff;
  color: #5263d9;
}
.avatar.orange {
  background: #fff0dc;
  color: #c76c13;
}
.avatar.teal,
.avatar.green,
.avatar.mint {
  background: #ddf5ee;
  color: #078675;
}
.avatar.rose {
  background: #ffe5ed;
  color: #c43d6d;
}
.avatar.blue {
  background: #e4efff;
  color: #276ad0;
}
.summary-chip:nth-child(1) {
  border-top: 3px solid #5264df;
}
.summary-chip:nth-child(2) {
  border-top: 3px solid #078f7d;
}
.summary-chip:nth-child(3) {
  border-top: 3px solid #d97a17;
}
.summary-chip:nth-child(4) {
  border-top: 3px solid #d43e70;
}
.summary-chip strong {
  color: #25304a;
}
.summary-chip span {
  color: #69748c;
}
.badge {
  font-weight: 550;
}
.badge.active,
.badge.ok {
  color: #007d65;
  background: #ddf7ef;
}
.badge.paused,
.badge.warn {
  color: #a95b0d;
  background: #fff0d8;
}
.badge.draft,
.badge.info {
  color: #4056c7;
  background: #e9edff;
}
.badge.ended {
  color: #69738a;
  background: #edf0f5;
}
.pill {
  color: #5f6981;
  border-color: #dfe5ef;
  background: #f9fbff;
}
.progress-track {
  background: #e8ecf5;
}
.progress-track span {
  background: linear-gradient(90deg, #4f63df, #13a08d);
}
.domain {
  color: #344fca;
  background: #e8edff;
}
.domain.dsp {
  color: #344fca;
  background: #e8edff;
}
.domain.ssp {
  color: #047a6d;
  background: #dbf6ee;
}
.domain.dmp {
  color: #a75a0d;
  background: #ffecd5;
}
.tags span {
  color: #5d6880;
  background: #eff3fa;
}
.notice {
  color: #52627e;
  background: linear-gradient(110deg, #eff3ff, #f8f9ff);
  border-color: #dce4fb;
}
.notice.warm {
  color: #8b622b;
  background: #fff8eb;
  border-color: #f0dfbf;
}
.source-card {
  --source-accent: #4f63df;
  --source-tint: #f3f5ff;
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(150deg, #fff 55%, var(--source-tint));
  border-color: color-mix(in srgb, var(--source-accent) 20%, white);
  border-top: 4px solid var(--source-accent);
}
.source-card.source-ssp {
  --source-accent: #078e82;
  --source-tint: #ecfbf7;
}
.source-card.source-dmp {
  --source-accent: #e1811d;
  --source-tint: #fff7eb;
}
.source-head,
.source-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.source-head {
  margin-bottom: 13px;
}
.source-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #68738a;
}
.source-count strong {
  color: var(--source-accent);
  font-size: 24px;
  line-height: 1;
}
.source-count small {
  font-size: 11px;
}
.source-card h3 {
  color: #26314c;
  letter-spacing: 0;
}
.source-card p {
  color: #66728a;
}
.source-foot {
  margin-top: 17px;
}
.source-card .text-link {
  margin-top: 0;
  color: var(--source-accent);
}
.asset-card:hover {
  border-color: #c7d1ee;
  box-shadow: 0 10px 28px #30477612;
}
.asset-big,
.number-highlight {
  letter-spacing: 0;
}
.number-highlight {
  color: #4056c7;
}
.section-title,
.asset-card h3,
.panel-head h2 {
  color: #26314b;
}
.tabs button {
  color: #6c768d;
}
.tabs .selected {
  color: #354cc5;
  border-color: #4058d3;
}
.search-box,
select.control,
.field input,
.field select,
.field textarea {
  border-color: #dce2ed;
}
.search-box:focus-within,
select.control:focus {
  border-color: #97a7e7;
  box-shadow: 0 0 0 3px #5267e81a;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #8194e8;
  outline-color: #ccd6ff;
}
.bar-row .bar span {
  background: linear-gradient(90deg, #5267e8, #0e9e8b);
}
.tag-categories button.selected {
  color: #4056c7;
  background: #e9edff;
  border-color: #c8d3ff;
}
.tag-estimate strong {
  color: #4056c7;
  letter-spacing: 0;
}
.detail-grid div {
  background: #f7f9ff;
  border-color: #e3e8f4;
}
.step.current b {
  box-shadow: 0 0 0 4px #dfe5ff;
}
.check-item .check-icon {
  color: #078d6b;
  background: #ddf7ef;
}
.check-item.fail .check-icon {
  color: #b4650e;
  background: #fff0da;
}
.creative-art .visual-brand,
.creative-art .visual-title,
.creative-art .product {
  letter-spacing: 0;
}
@media (min-width: 1650px) {
  .main {
    padding: 36px 42px;
  }
  .topbar {
    padding-left: 42px;
    padding-right: 42px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 355px;
  }
  .chart-svg {
    height: 260px;
  }
  .donut {
    width: 167px;
    height: 167px;
    margin: 15px auto 19px;
  }
  .stat {
    padding: 23px 24px 21px;
  }
  .stat-number {
    font-size: 37px;
  }
  .panel-head {
    padding: 24px 25px 19px;
  }
  td {
    padding-top: 19px;
    padding-bottom: 19px;
  }
  .creative-art {
    height: 250px;
  }
  .grid-3 {
    gap: 22px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 200px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 20px;
    padding-left: 8px;
  }
  .brand em {
    display: none;
  }
  .main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 15px;
  }
  .stat-number {
    font-size: 28px;
  }
  .sparkline {
    display: none;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quick {
    padding: 12px;
  }
  .quick-icon {
    width: 30px;
    height: 30px;
  }
  .quick small {
    font-size: 10px;
  }
  .quick > svg {
    display: none;
  }
  .quick-actions {
    gap: 10px;
  }
  .help-card {
    margin: 0 0 18px;
  }
  .table-tools {
    flex-wrap: wrap;
  }
  .source-list {
    gap: 10px;
  }
}
@media (max-width: 960px) {
  :root {
    --sidebar: 76px;
  }
  .sidebar {
    padding: 23px 12px;
  }
  .brand {
    padding: 0 8px 28px;
  }
  .brand-name,
  .workspace,
  .platform-strip,
  .nav-label,
  .sidebar-bottom,
  .nav a span {
    display: none;
  }
  .nav a {
    justify-content: center;
    padding: 13px;
  }
  .nav a.active:before {
    left: -12px;
  }
  .nav-separator {
    margin: 20px 0;
  }
  .overview-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .media-panel {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-actions {
    gap: 8px;
  }
  .user {
    padding-left: 10px;
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .wizard-body {
    grid-template-columns: 1fr;
  }
  .wizard-side {
    display: none;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .summary-chip {
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
  }
  .table-tools .search-box {
    flex: 1;
  }
  .user .user-name {
    display: none;
  }
}
@media (max-width: 640px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 7px;
  }
  .top-actions .icon-btn,
  .top-actions .user {
    display: none;
  }
  .mode {
    font-size: 10px;
    padding: 5px;
  }
  .main {
    padding: 23px 16px 85px;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 23px;
    text-wrap: balance;
  }
  .page-head p {
    font-size: 12px;
    max-width: 200px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .head-actions .btn {
    padding: 8px 9px;
    font-size: 12px;
  }
  .head-actions .btn svg {
    width: 13px;
    height: 13px;
  }
  .head-actions .secondary-action {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-number {
    font-size: 23px;
    line-height: 1.55;
    white-space: nowrap;
  }
  .stat-top {
    font-size: 12px;
  }
  .stat-icon {
    width: 24px;
    height: 24px;
  }
  .stat-foot {
    font-size: 10px;
    gap: 5px;
  }
  .insight-strip {
    font-size: 12px;
    padding: 12px;
    align-items: flex-start;
  }
  .insight-strip button {
    display: none;
  }
  .insight-strip strong {
    font-size: 12px;
  }
  .quick-actions {
    gap: 10px;
  }
  .quick {
    padding: 12px;
  }
  .quick strong {
    font-size: 13px;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 17px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .panel-head h2 small {
    display: none;
  }
  .table-tools {
    padding: 0 16px 15px;
    gap: 8px;
  }
  .table-tools .search-box {
    min-width: 100%;
    padding: 10px;
  }
  .table-tools select.control {
    min-width: 0;
    flex: 1;
    font-size: 12px;
  }
  .toolbar-spacer {
    display: none;
  }
  .tabs {
    gap: 19px;
    padding: 0 17px;
  }
  .tabs button {
    font-size: 13px;
  }
  td,
  th {
    padding: 13px 16px;
  }
  .name-cell {
    max-width: 220px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: 95vh;
    border-radius: 10px;
  }
  .modal-head {
    padding: 19px;
  }
  .modal-head h2 {
    font-size: 17px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-foot {
    padding: 15px 18px;
  }
  .modal-foot .tiny {
    display: none;
  }
  .drawer-backdrop {
    padding: 0;
  }
  .drawer {
    width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
  .form-grid {
    gap: 17px;
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .steps {
    padding: 20px 13px;
    gap: 3px;
  }
  .step {
    font-size: 10px;
  }
  .step b {
    width: 23px;
    height: 23px;
    font-size: 11px;
  }
  .step:after {
    top: 11px;
    left: calc(50% + 15px);
    width: calc(100% - 22px);
  }
  .wizard-form {
    padding: 20px;
  }
  .form-section {
    font-size: 13px;
  }
  .summary-chips {
    gap: 7px;
  }
  .summary-chip strong {
    font-size: 21px;
  }
  .summary-chip span {
    font-size: 11px;
  }
  .footer {
    gap: 15px;
    font-size: 10px;
    align-items: flex-start;
  }
  .footer span:first-child {
    max-width: 60%;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .weight-sliders {
    grid-template-columns: repeat(3, 1fr);
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    inset: auto 0 0;
    background: #fffffff5;
    border-top: 1px solid var(--border);
    z-index: 30;
    justify-content: space-around;
    padding: 11px 6px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #aaa0bc;
    font-size: 10px;
  }
  .mobile-nav a.active {
    color: var(--primary);
  }
  .detail-grid {
    gap: 10px;
  }
  .calendar-controls {
    padding: 0 17px 16px;
    gap: 10px;
    font-size: 12px;
  }
  .segmented button {
    padding: 5px 8px;
  }
  .audit-item time {
    max-width: 70px;
    white-space: normal;
    text-align: right;
    line-height: 1.6;
  }
  .badge {
    font-size: 10px;
  }
  .search-box .kbd {
    display: none;
  }
}
.tag-builder {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px;
  align-items: start;
}
.tag-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 22px 19px;
}
.tag-categories button {
  font-size: 12px;
  border: 1px solid #eae4f2;
  padding: 7px 9px;
  border-radius: 5px;
  color: #aa9aba;
}
.tag-categories button.selected {
  background: #f0eafa;
  color: #9074bd;
  border-color: #d8c7ec;
}
.tag-catalog {
  padding: 0 22px 16px;
}
.tag-catalog-row {
  padding: 18px 0;
  border-top: 1px solid #f0eaf6;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.tag-catalog-row strong {
  font-size: 14px;
  font-weight: 500;
}
.tag-catalog-row p {
  font-size: 12px;
  line-height: 1.9;
  margin: 7px 0 0;
  color: #af9dbf;
}
.tag-top-logic {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #a28bb7;
  margin-bottom: 17px;
  flex-wrap: wrap;
}
.tag-top-logic select {
  min-width: 100px;
}
.tag-pool {
  background: #fcfaff;
  border: 1px solid #e8e0f1;
  border-radius: 7px;
  margin: 13px 0;
  padding: 13px 15px;
}
.tag-pool-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eee7f5;
  padding-bottom: 12px;
}
.tag-pool-head strong {
  font-size: 13px;
  font-weight: 500;
  margin-right: auto;
}
.tag-pool-head select {
  padding: 5px 7px;
  min-width: 105px;
  font-size: 11px;
}
.tag-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}
.tag-rule .domain {
  min-width: 65px;
  text-align: center;
}
.tag-rule select {
  flex: 1;
  min-width: 100px;
}
.tag-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee8f5;
  margin-top: 22px;
  padding-top: 20px;
}
.tag-estimate small {
  display: block;
  font-size: 12px;
  color: #ac98be;
  margin-bottom: 10px;
}
.tag-estimate strong {
  font-size: 34px;
  color: #9174ba;
  font-weight: 550;
  letter-spacing: 0;
}
.tag-estimate em {
  font-style: normal;
  font-size: 12px;
  color: #baabc8;
  font-weight: 400;
  margin-left: 7px;
}
.profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.profile-column {
  padding: 10px 26px 28px;
}
.profile-column + div {
  border-left: 1px solid var(--border);
}
.profile-label {
  font-size: 12px;
  color: #aa95bb;
  margin-bottom: 13px;
}
.profile-column > .control {
  width: 100%;
  padding: 11px;
}
.profile-column .bar-row label {
  width: 75px;
}
.profile-column .number-highlight {
  margin-top: 25px;
}
.sidebar {
  overflow-y: auto;
}
.nav a {
  padding-top: 10px;
  padding-bottom: 10px;
}
.sidebar-bottom {
  min-height: 180px;
}
.help-card {
  padding: 12px;
}
.help-card p {
  font-size: 12px;
}
.sidebar .nav-separator {
  margin-top: 15px;
  margin-bottom: 15px;
}
@media (max-width: 1200px) {
  .tag-builder {
    grid-template-columns: 1fr 1.2fr;
  }
}
@media (max-width: 960px) {
  .sidebar-bottom {
    display: none;
  }
  .tag-builder {
    grid-template-columns: 1fr;
  }
  .tag-catalog-row p {
    max-width: 80%;
  }
}
@media (max-width: 640px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }
  .profile-column + div {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .tag-pool {
    padding: 12px 10px;
  }
  .tag-rule {
    gap: 5px;
  }
  .tag-rule .domain {
    min-width: 50px;
  }
  .tag-categories {
    padding-left: 17px;
    padding-right: 17px;
  }
  .profile-column {
    padding: 15px 20px 25px;
  }
  .tag-builder {
    gap: 17px;
  }
}
