/* Self-contained, content-sized dashboard preview. */
.mtl-dashboard {
  --mtl-bg: #101813;
  --mtl-panel: #17201a;
  --mtl-sidebar: #121a15;
  --mtl-border: #29382d;
  --mtl-muted: #90ac95;
  --mtl-text: #f6f8f1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #2d3b2f;
  border-radius: 24px;
  background: var(--mtl-bg);
  color: var(--mtl-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.mtl-dashboard,
.mtl-dashboard *,
.mtl-dashboard *::before,
.mtl-dashboard *::after {
  box-sizing: border-box;
}

.mtl-dashboard h1,
.mtl-dashboard h2,
.mtl-dashboard h3,
.mtl-dashboard p {
  font-family: inherit;
}

.mtl-dashboard button {
  font: inherit;
}

.mtl-dashboard svg {
  display: block;
  flex-shrink: 0;
  max-width: none;
}

.mtl-shell {
  overflow: hidden;
  border: 1px solid var(--mtl-border);
  border-radius: 12px;
  background: var(--mtl-panel);
}

.mtl-topbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #2b3a2d;
}

.mtl-brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: #2b382e;
  color: #b3f28e;
  font-weight: 750;
}

.mtl-brand-name {
  color: #f5f7f1;
  font-size: 13px;
  font-weight: 650;
}

.mtl-demo-label {
  margin-left: auto;
  color: #9bb699;
  font-size: 10px;
  letter-spacing: .03em;
}

.mtl-main {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  height: 414px;
}

.mtl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-right: 1px solid #2b3a2d;
  background: var(--mtl-sidebar);
}

.mtl-sidebar-label {
  padding: 15px 8px 7px;
  color: #779c7f;
  font-size: 10px;
  letter-spacing: .06em;
}

.mtl-nav-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a8bca9;
  font-size: 11px !important;
  text-align: left;
  cursor: pointer;
}

.mtl-nav-button:hover {
  background: #213023;
}

.mtl-nav-button[aria-selected="true"] {
  background: #2b3d27;
  color: #ebf8e5;
  font-weight: 650;
}

.mtl-nav-button[aria-selected="true"] .mtl-icon {
  color: #b4ed8c;
}

.mtl-nav-button:focus-visible {
  outline: 2px solid #b4ed8c;
  outline-offset: 2px;
}

.mtl-sidebar-bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #2a3a2e;
}

.mtl-sidebar-static {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #91a593;
  font-size: 11px;
  cursor: default;
}

.mtl-sidebar .mtl-icon {
  width: 15px;
  height: 15px;
  color: #8bab91;
}

.mtl-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.mtl-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #89a38e;
  font-size: 10px;
}

.mtl-crumbs svg {
  color: #647d6b;
}

.mtl-crumbs .mtl-current {
  color: #b9ed9f;
  font-weight: 600;
}

.mtl-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mtl-eyebrow {
  margin-bottom: 2px;
  color: #92af94;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mtl-title {
  margin: 0;
  color: #f6f8f1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.mtl-subtitle {
  margin: 3px 0 0;
  color: #90ac95;
  font-size: 10px;
}

.mtl-pill {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.mtl-pill-review {
  background: #362d20;
  color: #f0c07b;
}

.mtl-pill-green {
  background: #253a29;
  color: #b9ef9c;
}

.mtl-pill-date {
  border: 1px solid #35503b;
  background: #26382a;
  color: #cbf1bd;
}

.mtl-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.mtl-flow-arrow {
  justify-self: center;
  color: #8db995;
}

.mtl-flow-card {
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 4px;
  border: 1px solid #34473b;
  border-radius: 9px;
  text-align: center;
}

.mtl-flow-card--campaign {
  background: #20342b;
}

.mtl-flow-card--group {
  background: #202f34;
}

.mtl-flow-card--ads {
  background: #342f27;
}

.mtl-flow-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
}

.mtl-flow-card--campaign .mtl-flow-icon {
  background: #304f3a;
  color: #a9e5a3;
}

.mtl-flow-card--group .mtl-flow-icon {
  background: #30474e;
  color: #9dd3d9;
}

.mtl-flow-card--ads .mtl-flow-icon {
  background: #494131;
  color: #e2c68e;
}

.mtl-flow-card strong {
  color: #f0f7ef;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

.mtl-flow-card span {
  color: #b3c6b3;
  font-size: 10px;
  line-height: 1.3;
}

.mtl-settings {
  padding: 5px 0;
}

.mtl-section-label {
  margin-bottom: 13px;
  color: #93b197;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .035em;
}

.mtl-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 12px;
  column-gap: 14px;
}

.mtl-setting-label {
  display: block;
  margin-bottom: 4px;
  color: #92ad96;
  font-size: 10px;
}

.mtl-setting-value {
  display: block;
  color: #edf5e8;
  font-size: 12px;
  font-weight: 600;
}

.mtl-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #203326;
}

.mtl-info-banner > .mtl-icon {
  width: 19px;
  height: 19px;
  color: #b2ed96;
}

.mtl-info-banner-title {
  color: #d3ebcb;
  font-size: 11px;
  font-weight: 650;
}

.mtl-info-banner-text {
  margin-top: 2px;
  color: #acc5aa;
  font-size: 10px;
}

.mtl-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mtl-metric {
  padding: 12px;
  border: 1px solid #34473b;
  border-radius: 8px;
}

.mtl-metric--spend {
  background: #203528;
}

.mtl-metric--clicks {
  background: #20343a;
}

.mtl-metric--ctr {
  background: #333125;
}

.mtl-metric-label {
  color: #b0c5b1;
  font-size: 10px;
}

.mtl-metric-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.mtl-metric--spend .mtl-metric-value {
  color: #bff3ac;
}

.mtl-metric--clicks .mtl-metric-value {
  color: #a9dce4;
}

.mtl-metric--ctr .mtl-metric-value {
  color: #e2d29b;
}

.mtl-chart-box {
  padding: 12px;
  border: 1px solid #2c4030;
  border-radius: 9px;
}

.mtl-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.mtl-chart-heading strong {
  color: #b6ee95;
  font-size: 12px;
  font-weight: 600;
}

.mtl-chart-heading span {
  color: #92ad96;
  font-size: 10px;
}

.mtl-chart {
  width: 100%;
  height: 88px;
}

.mtl-creative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mtl-creative-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid #2c4030;
  border-radius: 9px;
}

.mtl-creative-thumbnail {
  position: relative;
  display: flex;
  height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
}

.mtl-creative-thumbnail--one {
  background: #293f33;
  color: #b5e5ae;
}

.mtl-creative-thumbnail--two {
  background: #373c32;
  color: #d0d7ae;
}

.mtl-creative-thumbnail--three {
  background: #3c352f;
  color: #e1cbab;
}

.mtl-creative-number {
  color: #d1dcd1;
  font-size: 10px;
}

.mtl-play-circle {
  display: grid;
  padding: 8px;
  place-items: center;
  border-radius: 999px;
  background: #15251d;
  color: #ddf5d3;
}

.mtl-creative-name {
  color: #f0f6ed;
  font-size: 12px;
  font-weight: 650;
}

.mtl-creative-desc {
  color: #9ebaa2;
  font-size: 10px;
}

.mtl-creative-format {
  color: #8fa693;
  font-size: 10px;
}

.mtl-creative-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  font-size: 10px;
}

.mtl-creative-status--approved {
  color: #b5ef97;
}

.mtl-creative-status--review {
  color: #e7be79;
}

.mtl-connection-list {
  border: 1px solid #2c4030;
  border-radius: 9px;
}

.mtl-connection-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
}

.mtl-connection-row + .mtl-connection-row {
  border-top: 1px solid #2a3a2e;
}

.mtl-connection-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 7px;
}

.mtl-connection-icon--green {
  background: #284233;
  color: #a9e5a3;
}

.mtl-connection-icon--blue {
  background: #2b4148;
  color: #a0d8e1;
}

.mtl-connection-icon--orange {
  background: #3c392d;
  color: #e3d18f;
}

.mtl-connection-icon--purple {
  background: #393342;
  color: #c6ace6;
}

.mtl-connection-name {
  color: #eff5eb;
  font-size: 12px;
  font-weight: 650;
}

.mtl-connection-desc {
  margin-top: 2px;
  color: #91aa97;
  font-size: 10px;
}

.mtl-connection-status {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #b4ec95;
  font-size: 10px;
}

.mtl-footer {
  padding: 9px 6px;
  border-top: 1px solid #2b3a2d;
  color: #87a18c;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 640px) {
  .mtl-dashboard {
    padding: 8px;
    border-radius: 16px;
  }

  .mtl-main {
    grid-template-columns: 106px minmax(0, 1fr);
    height: 430px;
  }

  .mtl-sidebar {
    padding: 5px;
  }

  .mtl-content {
    gap: 8px;
    padding: 10px;
  }

  .mtl-title {
    font-size: 18px;
  }

  .mtl-nav-button {
    gap: 5px;
    padding: 8px 5px;
    font-size: 10px !important;
  }

  .mtl-flow {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
    gap: 3px;
  }

  .mtl-flow-card {
    padding: 10px 2px;
  }

  .mtl-flow-card span {
    font-size: 9px;
  }

  .mtl-flow-card strong {
    font-size: 11px;
  }

  .mtl-settings-grid {
    row-gap: 11px;
    column-gap: 8px;
  }

  .mtl-creative-thumbnail {
    height: 110px;
  }

  .mtl-creative-name {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .mtl-main {
    display: block;
    height: auto;
  }

  .mtl-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid #2b3a2d;
  }

  .mtl-sidebar-label,
  .mtl-sidebar-bottom {
    display: none;
  }

  .mtl-nav-button {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 3px;
    white-space: nowrap;
  }

  .mtl-nav-button .mtl-icon {
    display: none;
  }

  .mtl-content {
    height: 510px;
  }

  .mtl-creative-grid {
    gap: 5px;
  }

  .mtl-creative-card {
    padding: 5px;
  }

  .mtl-creative-thumbnail {
    height: 96px;
  }

  .mtl-creative-name {
    font-size: 10px;
  }

  .mtl-creative-desc,
  .mtl-creative-format,
  .mtl-creative-status {
    font-size: 9px;
  }

  .mtl-heading {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mtl-nav-button {
    transition: background-color .15s ease, color .15s ease;
  }
}

/* Light theme */
[data-theme="light"] .mtl-dashboard {
  --mtl-bg: #edf3e7;
  --mtl-panel: #ffffff;
  --mtl-sidebar: #f8faf5;
  --mtl-border: #dce5d4;
  --mtl-muted: #75826f;
  --mtl-text: #202920;
  border-color: #dce5d4;
  background: var(--mtl-bg);
  color: var(--mtl-text);
  box-shadow: 0 22px 55px #263e2014;
}

[data-theme="light"] .mtl-shell {
  border-color: #dce2d7;
  background: #ffffff;
}

[data-theme="light"] .mtl-topbar {
  border-bottom-color: #e8ede4;
}

[data-theme="light"] .mtl-brand-mark {
  background: #202920;
  color: #b9ef9f;
}

[data-theme="light"] .mtl-brand-name {
  color: #202920;
}

[data-theme="light"] .mtl-demo-label,
[data-theme="light"] .mtl-sidebar-label {
  color: #7b8772;
}

[data-theme="light"] .mtl-sidebar {
  border-right-color: #e8ede4;
  background: var(--mtl-sidebar);
}

[data-theme="light"] .mtl-nav-button {
  color: #6f7c69;
}

[data-theme="light"] .mtl-nav-button:hover {
  background: #edf3e8;
}

[data-theme="light"] .mtl-nav-button[aria-selected="true"] {
  border-color: #dce8d2;
  background: #e7f1de;
  color: #36552a;
}

[data-theme="light"] .mtl-nav-button[aria-selected="true"] .mtl-icon {
  color: #2e7047;
}

[data-theme="light"] .mtl-sidebar-bottom {
  border-top-color: #e8ede4;
}

[data-theme="light"] .mtl-sidebar-static {
  color: #7c8975;
}

[data-theme="light"] .mtl-sidebar .mtl-icon {
  color: #7f8f76;
}

[data-theme="light"] .mtl-crumbs {
  color: #7f8c77;
}

[data-theme="light"] .mtl-crumbs svg {
  color: #a0ac97;
}

[data-theme="light"] .mtl-crumbs .mtl-current,
[data-theme="light"] .mtl-section-label,
[data-theme="light"] .mtl-chart-heading strong {
  color: #2e7047;
}

[data-theme="light"] .mtl-eyebrow,
[data-theme="light"] .mtl-subtitle {
  color: #6f8067;
}

[data-theme="light"] .mtl-title {
  color: #202920;
}

[data-theme="light"] .mtl-pill-review {
  background: #f8eeda;
  color: #9a6524;
}

[data-theme="light"] .mtl-pill-green {
  background: #e9f3e5;
  color: #2e7047;
}

[data-theme="light"] .mtl-pill-date {
  border-color: #dce8d2;
  background: #eef7e9;
  color: #2e7047;
}

[data-theme="light"] .mtl-flow-arrow {
  color: #679151;
}

[data-theme="light"] .mtl-flow-card {
  border-color: #d9e5d0;
}

[data-theme="light"] .mtl-flow-card--campaign {
  background: #e7f4e3;
}

[data-theme="light"] .mtl-flow-card--group {
  background: #e4f0f8;
}

[data-theme="light"] .mtl-flow-card--ads {
  background: #f8efe0;
}

[data-theme="light"] .mtl-flow-card--campaign .mtl-flow-icon {
  background: #d5ebd1;
  color: #2f8a3f;
}

[data-theme="light"] .mtl-flow-card--group .mtl-flow-icon {
  background: #d3e8f2;
  color: #2c6e8f;
}

[data-theme="light"] .mtl-flow-card--ads .mtl-flow-icon {
  background: #f3e4cd;
  color: #a5682a;
}

[data-theme="light"] .mtl-flow-card strong,
[data-theme="light"] .mtl-setting-value {
  color: #263126;
}

[data-theme="light"] .mtl-flow-card span,
[data-theme="light"] .mtl-setting-label {
  color: #6c7967;
}

[data-theme="light"] .mtl-section-label {
  color: #5f7955;
}

[data-theme="light"] .mtl-info-banner {
  background: #eef7e9;
}

[data-theme="light"] .mtl-info-banner > .mtl-icon {
  color: #2e7047;
}

[data-theme="light"] .mtl-info-banner-title {
  color: #2e7047;
}

[data-theme="light"] .mtl-info-banner-text {
  color: #5c7054;
}

[data-theme="light"] .mtl-metric {
  border-color: #dce7d5;
}

[data-theme="light"] .mtl-metric--spend {
  background: #e7f4e3;
}

[data-theme="light"] .mtl-metric--clicks {
  background: #e4f0f8;
}

[data-theme="light"] .mtl-metric--ctr {
  background: #f8efe0;
}

[data-theme="light"] .mtl-metric-label,
[data-theme="light"] .mtl-chart-heading span {
  color: #72806c;
}

[data-theme="light"] .mtl-metric--spend .mtl-metric-value {
  color: #2f8a3f;
}

[data-theme="light"] .mtl-metric--clicks .mtl-metric-value {
  color: #2c6e8f;
}

[data-theme="light"] .mtl-metric--ctr .mtl-metric-value {
  color: #9a6524;
}

[data-theme="light"] .mtl-chart-box,
[data-theme="light"] .mtl-creative-card,
[data-theme="light"] .mtl-connection-list {
  border-color: #dce7d5;
  background: #ffffff;
}

[data-theme="light"] .mtl-chart-grid {
  stroke: #e1e8da;
}

[data-theme="light"] .mtl-chart-area {
  fill: #dcefcb;
}

[data-theme="light"] .mtl-chart-line {
  stroke: #2e7047;
}

[data-theme="light"] .mtl-chart-label {
  fill: #7b8772;
}

[data-theme="light"] .mtl-creative-thumbnail--one {
  background: #e7f4e3;
  color: #2f8a3f;
}

[data-theme="light"] .mtl-creative-thumbnail--two {
  background: #e4f0f8;
  color: #2c6e8f;
}

[data-theme="light"] .mtl-creative-thumbnail--three {
  background: #f0eafa;
  color: #6d4fa0;
}

[data-theme="light"] .mtl-creative-number,
[data-theme="light"] .mtl-creative-desc,
[data-theme="light"] .mtl-creative-format,
[data-theme="light"] .mtl-connection-desc {
  color: #75836f;
}

[data-theme="light"] .mtl-play-circle {
  background: #ffffff;
  color: #2e7047;
  box-shadow: 0 3px 8px #263e2017;
}

[data-theme="light"] .mtl-creative-name,
[data-theme="light"] .mtl-connection-name {
  color: #263126;
}

[data-theme="light"] .mtl-creative-status--approved,
[data-theme="light"] .mtl-connection-status {
  color: #2f8a3f;
}

[data-theme="light"] .mtl-creative-status--review {
  color: #a5682a;
}

[data-theme="light"] .mtl-connection-row + .mtl-connection-row {
  border-top-color: #e8eee4;
}

[data-theme="light"] .mtl-connection-icon--green {
  background: #e7f4e3;
  color: #2f8a3f;
}

[data-theme="light"] .mtl-connection-icon--blue {
  background: #e4f0f8;
  color: #2c6e8f;
}

[data-theme="light"] .mtl-connection-icon--orange {
  background: #f8efe0;
  color: #a5682a;
}

[data-theme="light"] .mtl-connection-icon--purple {
  background: #f0eafa;
  color: #6d4fa0;
}

[data-theme="light"] .mtl-footer {
  border-top-color: #e8ede4;
  color: #85917d;
}
