:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #717a8c;
  --line: #e6eaf1;
  --surface: #f5f7fb;
  --panel: #ffffff;
  --purple: #5a4ff3;
  --purple-2: #7c72ff;
  --blue: #2f80ed;
  --green: #16b981;
  --mint: #e6fbf3;
  --orange: #f59e0b;
  --red: #e05263;
  --shadow: 0 12px 36px rgba(24, 32, 51, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
}

body.is-locked .app-frame {
  display: none;
}

body:not(.is-locked) .auth-screen {
  display: none;
}

.auth-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 18px;
  background: radial-gradient(circle at top left, #eef0ff, transparent 38%), var(--surface);
}

.auth-brand-splash {
  display: none;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 2.4rem;
  line-height: 1;
}

.auth-logo {
  display: block;
  width: min(150px, 100%);
  height: auto;
  margin-bottom: 4px;
}

body.app-booting .auth-card {
  display: none;
}

body.app-booting .auth-brand-splash {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(320px, 72vw);
  min-height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13, 27, 62, 0.78), rgba(7, 14, 35, 0.66));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

body.app-booting .auth-brand-splash img {
  display: block;
  width: min(190px, 54vw);
  height: auto;
}

.auth-card button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  cursor: pointer;
}

.auth-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 800;
}

button,
input,
select {
  font: inherit;
}

.app-frame {
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.app-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  width: min(1440px, calc(100% - 48px));
  margin: 14px auto 0;
  padding: 12px 24px 12px 34px;
  border: 1px solid rgba(230, 234, 241, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(24, 32, 51, 0.12);
  backdrop-filter: blur(18px);
  transition:
    transform 0.24s ease,
    opacity 0.24s ease,
    box-shadow 0.24s ease;
  will-change: transform, opacity;
}

.brand,
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-weight: 900;
}

.header-logo {
  display: block;
  width: min(118px, 24vw);
  height: auto;
}

.nav-stack {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
}

.nav-stack a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.nav-stack a.active,
.nav-stack a:hover {
  color: var(--purple);
  background: #eef0ff;
}

.header-account {
  position: relative;
  flex: 0 0 auto;
}

.account-menu-button {
  display: grid;
  gap: 2px;
  min-width: 132px;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
  cursor: pointer;
}

.account-menu-button span,
.account-menu-head span,
.account-menu-head small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.account-menu-button strong {
  overflow: hidden;
  max-width: 150px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 8px;
  width: min(290px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu-head {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.account-menu-head strong,
.account-menu-head small {
  display: block;
  overflow-wrap: anywhere;
}

.account-menu-head strong {
  margin-top: 3px;
}

.account-menu button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.account-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 20, 0.62);
  backdrop-filter: blur(10px);
}

.account-settings-card {
  display: grid;
  gap: 12px;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.settings-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.settings-status.is-error {
  color: var(--red);
}

.settings-status.is-success {
  color: var(--green);
}

.account-settings-card > button[type="submit"] {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  cursor: pointer;
}

.sync-card {
  display: block;
  min-width: 164px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.live-status-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  display: grid;
  gap: 10px;
  width: min(290px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(230, 234, 241, 0.98);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(24, 32, 51, 0.18);
  backdrop-filter: blur(18px);
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
  will-change: transform, opacity;
}

.live-status-popup .sync-card {
  min-width: 0;
  border-radius: 10px;
}

.live-status-popup .header-sync-button {
  width: 100%;
}

.sync-card span,
.sync-card strong,
.sync-card small,
.select-chip span,
.date-range-chip > span {
  display: block;
}

.sync-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.service-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  flex-wrap: nowrap;
}

.service-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.service-status-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  flex: 0 0 auto;
}

.service-status-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1;
}

.service-status-icon.is-live {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
}

.service-status-icon.is-offline {
  border-color: rgba(255, 95, 122, 0.28);
  background: rgba(255, 95, 122, 0.08);
}

@media (max-width: 520px) {
  .service-status-row {
    gap: 6px;
  }

  .service-status-icon {
    min-height: 32px;
    padding: 4px 6px;
  }

  .service-status-icon img {
    width: 20px;
    height: 20px;
  }

  .service-status-icon i {
    font-size: 0.78rem;
  }
}

.sync-card span,
.select-chip span,
.date-range-chip > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.sync-card strong.is-live {
  color: var(--green);
}

.ghost-button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  cursor: pointer;
}

.header-sync-button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  cursor: pointer;
}

.dashboard {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 42px 24px 40px;
}

[hidden] {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1;
}

h2 {
  font-size: 1rem;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.select-chip {
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.select-chip strong {
  display: block;
  margin-top: 3px;
}

.date-range-chip {
  display: grid;
  gap: 8px;
  min-width: min(100%, 430px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.date-range-chip strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.quick-range-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-range-buttons button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  background: #f8fafc;
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.quick-range-buttons button:hover {
  border-color: var(--purple-2);
  background: #eef0ff;
}

.date-range-fields {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.date-range-fields label {
  gap: 4px;
}

.date-range-fields input {
  min-height: 36px;
  padding: 7px 9px;
}

.date-range-fields button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.warning-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #ffd2a8;
  border-radius: 8px;
  color: #6b3b05;
  background: #fff7ed;
  font-size: 0.82rem;
  font-weight: 800;
}

.warning-panel[hidden] {
  display: none;
}

.warning-panel div {
  display: grid;
  gap: 5px;
  color: #8a520f;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profit-command-center {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 14px;
  margin-bottom: 14px;
}

.profit-total-card,
.profit-driver-grid article,
.shop-profit-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.profit-total-card {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: 22px;
}

.profit-total-card span,
.profit-total-card small,
.profit-driver-grid span,
.shop-profit-card span,
.shop-profit-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profit-total-card strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--green);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profit-total-card strong.is-negative,
.profit-driver-grid strong.is-negative {
  color: var(--red);
}

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

.profit-driver-grid article {
  display: grid;
  align-content: center;
  min-height: 84px;
  padding: 14px;
}

.profit-driver-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.shop-profit-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-profit-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-left: 4px solid var(--green);
}

.shop-profit-card.loss {
  border-left-color: var(--red);
}

.shop-profit-card strong {
  display: block;
  margin-top: 5px;
  color: var(--green);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.shop-profit-card.loss strong {
  color: var(--red);
}

.shop-profit-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.shop-profit-card div,
.shop-profit-card dd {
  min-width: 0;
}

.shop-profit-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 900;
}

.snapshot-board {
  margin-bottom: 14px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.snapshot-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.snapshot-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.snapshot-title-row h2 {
  color: #202938;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.chevron {
  color: #526071;
  font-size: 1.6rem;
  line-height: 1;
}

.snapshot-date-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--purple);
  background: #eef0ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.snapshot-shop-select {
  display: grid;
  grid-template-columns: auto minmax(140px, 190px);
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  color: #748294;
  font-size: 0.78rem;
  font-weight: 800;
}

.snapshot-shop-select span {
  color: #748294;
}

.snapshot-shop-select select {
  min-height: 34px;
  border: 1px solid #d5dbe3;
  border-radius: 999px;
  padding: 5px 12px;
  color: #202938;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.snapshot-settings {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.snapshot-settings span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.snapshot-settings span::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 6px;
  height: 6px;
  border: 2px solid #334155;
  border-radius: 50%;
  background: #fff;
}

.snapshot-settings span:nth-child(1)::after {
  left: 3px;
}

.snapshot-settings span:nth-child(2)::after {
  right: 1px;
}

.snapshot-settings span:nth-child(3)::after {
  left: 8px;
}

.snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.snapshot-metric {
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid #dce2e8;
}

.snapshot-metric:first-child {
  padding-left: 6px;
  border-left: 0;
}

.snapshot-metric span {
  display: block;
  margin-bottom: 7px;
  color: #748294;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 800;
  letter-spacing: 0;
}

.snapshot-metric strong {
  display: block;
  overflow-wrap: anywhere;
  color: #202938;
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
  font-weight: 900;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.9fr);
  gap: 16px;
}

.panel {
  padding: 18px;
}

.main-chart-panel {
  min-height: 360px;
}

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

.legend {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}

.dot.net {
  background: var(--green);
}

.dot.sales {
  background: var(--purple);
}

.trend-chart {
  width: 100%;
  min-height: 260px;
}

.axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.cost-breakdown,
.profit-stack,
.campaign-list,
.store-list {
  display: grid;
  gap: 12px;
}

.profit-stack {
  grid-template-columns: minmax(0, 1fr);
}

.bridge-shop-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.bridge-shop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bridge-shop-head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bridge-shop-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.bridge-shop-head b {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #087a55;
  background: var(--mint);
  font-size: 0.72rem;
  font-weight: 900;
}

.bridge-shop-card.loss .bridge-shop-head b {
  color: #fff;
  background: var(--red);
}

.cost-row,
.stack-row,
.campaign-row,
.store-card {
  display: grid;
  gap: 8px;
}

.cost-meta,
.stack-meta,
.campaign-meta,
.store-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.cost-meta span,
.stack-meta span,
.campaign-meta span,
.store-meta span {
  color: var(--muted);
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--purple);
}

.bar-fill.cost {
  background: var(--orange);
}

.bar-fill.net,
.bar-fill.revenue {
  background: var(--green);
}

.bar-fill.loss {
  background: var(--red);
}

.store-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.store-card.is-active {
  border-color: var(--purple-2);
  background: #f8f8ff;
}

.delta {
  font-weight: 900;
}

.delta.positive {
  color: #087a55;
}

.delta.negative {
  color: var(--red);
}

.status-pill {
  padding: 8px 11px;
  border-radius: 999px;
  color: #087a55;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.loss {
  color: #fff;
  background: var(--red);
}

.campaign-input,
input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.campaign-input:disabled {
  color: var(--muted);
  background: #f8fafc;
  cursor: not-allowed;
}

.meta-connect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.meta-connect strong,
.meta-connect span {
  display: block;
}

.meta-connect span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-connect a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.meta-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.meta-picker label {
  gap: 5px;
}

.integration-note {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.meta-picker select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.ghost-button {
  padding: 0 13px;
  color: var(--purple);
  border-color: var(--line);
  background: #fff;
}

.report-panel {
  margin-top: 14px;
}

.integrations-panel {
  display: grid;
  gap: 14px;
}

.account-panel {
  display: grid;
  gap: 14px;
}

.forecast-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-dev-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.news-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metrics-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.metrics-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

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

.metrics-product-cost-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metrics-product-cost-summary article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metrics-product-cost-summary span,
.metrics-product-cost-summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.metrics-product-cost-summary span {
  text-transform: uppercase;
}

.metrics-product-cost-summary strong {
  color: var(--ink);
  font-size: 1.28rem;
}

.metrics-product-cost-summary article.is-live strong {
  color: #5eead4;
}

.metrics-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metrics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metrics-card-head span,
.metrics-card-head small,
.metrics-channel-list > strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-card-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.metrics-input-grid,
.metrics-channel-list {
  display: grid;
  gap: 10px;
}

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

.metrics-channel-list {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.metrics-channel-group > span {
  display: block;
  padding-top: 4px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metrics-toggle > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-toggle input {
  width: 42px;
  min-height: 24px;
  accent-color: #5eead4;
}

.metrics-toggle strong {
  justify-self: end;
}

.metrics-live-note {
  display: grid;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.08);
}

.metrics-live-note span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-live-note strong {
  color: #5eead4;
}

.metrics-live-note small {
  color: var(--muted);
  font-weight: 800;
}

.metrics-live-ad-summary {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: 8px;
  color: #c4f1ea;
  background: rgba(20, 184, 166, 0.09);
  font-size: 0.82rem;
  font-weight: 800;
}

.metrics-channel-list label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metrics-channel-list label.is-live input {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
}

.metrics-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(45, 212, 191, 0.34);
  border-radius: 999px;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metrics-cashback-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.metrics-cashback-head,
.metrics-cashback-row {
  display: grid;
  gap: 12px;
  align-items: end;
}

.metrics-cashback-head {
  grid-template-columns: 1fr auto;
}

.metrics-cashback-head span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metrics-cashback-head strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.5rem;
}

.metrics-cashback-rows {
  display: grid;
  gap: 10px;
}

.metrics-cashback-row {
  grid-template-columns: minmax(150px, 200px) minmax(180px, 1fr) minmax(120px, 160px) minmax(100px, 140px) 42px;
}

.news-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(200px, 1fr);
  gap: 12px;
  align-items: end;
}

.news-toolbar input {
  min-height: 40px;
}

.news-source {
  display: grid;
  gap: 3px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.news-source span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.news-source strong {
  font-size: 0.9rem;
}

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

.news-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.news-stock-check {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.news-card-head,
.news-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.news-card-head span,
.news-card-head strong,
.news-row strong,
.news-row span {
  display: block;
}

.news-card-head span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card-head strong {
  font-size: 1.05rem;
}

.news-card-head b {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 1.05rem;
  background: #eef0ff;
  color: var(--purple);
}

.news-card.sold-out .news-card-head b {
  color: var(--red);
  background: #fff0f3;
}

.news-card.restock .news-card-head b {
  color: #087a55;
  background: var(--mint);
}

.news-card.delivery .news-card-head b {
  color: #075985;
  background: #e0f2fe;
}

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

.news-row,
.news-empty {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.news-row > div {
  min-width: 0;
}

.news-row strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.news-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.news-row b {
  white-space: nowrap;
  font-size: 1rem;
}

.news-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

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

.stock-check-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.stock-check-row strong,
.stock-check-row span {
  display: block;
}

.stock-check-row strong {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.stock-check-row > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stock-check-values {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-check-values span,
.stock-check-values em {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.stock-check-values span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stock-check-values em {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--purple);
}

.product-dev-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.product-dev-toolbar select,
.product-dev-toolbar input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.product-dev-toolbar select {
  min-height: 40px;
  padding: 8px 10px;
}

textarea {
  min-height: 82px;
  resize: vertical;
  padding: 10px;
  line-height: 1.35;
}

.product-dev-status {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.product-dev-status span,
.product-dev-status strong {
  display: block;
}

.product-dev-status span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.product-dev-status strong {
  margin-top: 3px;
  font-size: 0.88rem;
}

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

.product-dev-empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
  font-weight: 900;
}

.product-dev-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-dev-media {
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto;
  min-width: 0;
  min-height: 100%;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.product-dev-media > img,
.product-dev-media > span {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  color: var(--muted);
  background: #fff;
}

.product-dev-media > span {
  display: grid;
  place-items: center;
  font-weight: 900;
}

.product-dev-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.product-dev-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.product-dev-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.product-dev-head,
.product-dev-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-dev-head strong,
.product-dev-head span {
  display: block;
}

.product-dev-head strong {
  font-size: 1rem;
  line-height: 1.25;
}

.product-dev-head > div > span,
.product-dev-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-dev-meta span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-dev-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-dev-version-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.product-dev-version-bar label {
  gap: 4px;
}

.product-dev-version-bar select {
  min-height: 36px;
}

.product-dev-version-bar button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--purple);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.product-dev-idea-preview {
  width: min(220px, 100%);
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

.forecast-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

.forecast-controls select,
.forecast-controls input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.forecast-status {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

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

.forecast-summary article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.forecast-summary span,
.forecast-summary strong {
  display: block;
}

.forecast-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.forecast-summary strong {
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 1.35rem;
  line-height: 1;
}

.forecast-table-wrap table {
  min-width: 1180px;
}

.forecast-table-wrap th,
.forecast-table-wrap td {
  padding: 11px 9px;
}

.forecast-table-wrap th:first-child,
.forecast-table-wrap td:first-child,
.forecast-table-wrap th:nth-child(2),
.forecast-table-wrap td:nth-child(2),
.forecast-table-wrap th:nth-child(11),
.forecast-table-wrap td:nth-child(11),
.forecast-table-wrap th:nth-child(12),
.forecast-table-wrap td:nth-child(12) {
  text-align: left;
}

.forecast-product-cell {
  max-width: 320px;
  white-space: normal;
  line-height: 1.25;
}

.forecast-velocity-cell strong,
.forecast-velocity-cell span,
.forecast-demand-cell strong,
.forecast-demand-cell span,
.forecast-production-cell strong,
.forecast-production-cell span {
  display: block;
}

.forecast-velocity-cell span,
.forecast-demand-cell span,
.forecast-production-cell span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.forecast-row-critical td {
  background: #fff8fa;
}

.forecast-row-watch td {
  background: #fffaf0;
}

.forecast-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.forecast-pill.critical {
  color: #fff;
  background: var(--red);
}

.forecast-pill.watch {
  color: #7a3f02;
  background: #fff1d6;
}

.forecast-pill.healthy {
  color: #087a55;
  background: var(--mint);
}

.integration-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.integration-hero strong,
.integration-hero span {
  display: block;
}

.integration-hero strong {
  font-size: 1.05rem;
}

.integration-hero span {
  max-width: 720px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.integration-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.integration-head,
.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.integration-head strong,
.integration-head span,
.integration-row strong,
.integration-row span {
  display: block;
}

.integration-head span,
.integration-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.integration-head a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

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

.shopify-connect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.shopify-connect-row input,
.shopify-connect-row button {
  min-height: 36px;
  border-radius: 8px;
  font: inherit;
}

.shopify-connect-row input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0 10px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.06);
}

.shopify-connect-row button {
  border: 0;
  padding: 0 12px;
  color: #04101f;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.connection-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: #f4efff;
  font-size: 0.76rem;
  font-weight: 900;
}

.connection-pill.connected {
  color: #087a55;
  background: var(--mint);
}

.connection-pill.missing {
  color: var(--red);
  background: #fff0f3;
}

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

.account-login-card {
  gap: 14px;
}

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

.account-login-summary > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.account-login-summary span,
.account-login-summary strong {
  display: block;
}

.account-login-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-login-summary strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.account-card,
.assignment-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-card {
  gap: 16px;
}

.account-card-head,
.account-row,
.assignment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-card-head strong,
.account-card-head span,
.account-row strong,
.account-row span,
.account-row small,
.assignment-head strong {
  display: block;
}

.account-card-head span,
.account-row span,
.account-row small,
.assignment-grid span,
.assignment-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.account-list,
.assignment-list {
  display: grid;
  gap: 10px;
}

.account-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

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

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

.assignment-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.assignment-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: 0.9rem;
}

.admin-user-list {
  display: grid;
  gap: 12px;
}

.admin-user-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-user-fields {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.8fr 0.7fr;
  gap: 10px;
}

.permission-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-check {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.permission-check input {
  width: auto;
  min-height: auto;
  padding: 0;
}

.remove-admin-user {
  justify-self: start;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #ffd0d8;
  border-radius: 8px;
  color: var(--red);
  background: #fff0f3;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-actions span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--purple);
  font-weight: 900;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-size: 0.86rem;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  width: 100%;
  min-height: 26px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.sort-button::after {
  content: "↕";
  color: #b3abc7;
  font-size: 0.72rem;
}

.sort-button.active {
  color: var(--purple);
}

.sort-button.active[data-direction="asc"]::after {
  content: "↑";
  color: var(--purple);
}

.sort-button.active[data-direction="desc"]::after {
  content: "↓";
  color: var(--purple);
}

button:focus-visible,
input:focus,
select:focus {
  outline: 3px solid rgba(101, 34, 231, 0.22);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .app-header {
    justify-content: flex-start;
    flex-wrap: wrap;
    border-radius: 24px;
  }

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

  .profit-command-center {
    grid-template-columns: 1fr;
  }

  .shop-profit-grid {
    grid-template-columns: 1fr;
  }

  .profit-stack {
    grid-template-columns: 1fr;
  }

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

  .snapshot-board {
    padding: 22px;
  }

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

  .snapshot-metric:nth-child(odd) {
    padding-left: 6px;
    border-left: 0;
  }

  .integration-grid,
  .account-grid,
  .assignment-list,
  .forecast-summary,
  .metrics-grid,
  .metrics-product-cost-summary,
  .metrics-toolbar,
  .product-dev-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .admin-user-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard {
    padding: 28px 14px 110px;
  }

  .app-header {
    top: 8px;
    width: calc(100% - 28px);
    margin-top: 8px;
    padding: 12px 14px 12px 20px;
    gap: 12px;
    border-radius: 20px;
  }

  .nav-stack {
    padding-bottom: 2px;
  }

  .live-status-popup {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .topbar,
  .toolbar,
  .dashboard-grid,
  .input-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .toolbar {
    display: grid;
  }

  .integration-hero {
    display: grid;
  }

  .forecast-controls {
    grid-template-columns: 1fr;
  }

  .product-dev-toolbar,
  .metrics-toolbar,
  .metrics-input-grid,
  .metrics-cashback-head,
  .metrics-cashback-row,
  .product-dev-card,
  .product-dev-fields,
  .product-dev-version-bar,
  .news-toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .stock-check-values {
    justify-content: flex-start;
  }

  .product-dev-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .select-chip {
    width: 100%;
  }

  .date-range-fields {
    grid-template-columns: 1fr;
  }

  .snapshot-board {
    padding: 18px;
  }

  .snapshot-board-head,
  .snapshot-title-row {
    align-items: flex-start;
  }

  .snapshot-board-head {
    display: grid;
  }

  .snapshot-title-row {
    flex-wrap: wrap;
  }

  .snapshot-metrics {
    grid-template-columns: 1fr;
  }

  .snapshot-metric {
    padding: 0;
    border-left: 0;
  }
}

/* Vision-inspired dashboard theme */
:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #a6b3cf;
  --line: rgba(255, 255, 255, 0.12);
  --surface: #060b1b;
  --panel: rgba(9, 18, 43, 0.82);
  --purple: #7551ff;
  --purple-2: #9b85ff;
  --blue: #01c5ff;
  --green: #2cd9a8;
  --mint: rgba(44, 217, 168, 0.16);
  --orange: #ffb547;
  --red: #ff6680;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

body {
  background:
    linear-gradient(135deg, rgba(1, 197, 255, 0.11), transparent 31%),
    linear-gradient(220deg, rgba(117, 81, 255, 0.14), transparent 34%),
    #060b1b;
}

.auth-screen {
  background:
    linear-gradient(135deg, rgba(1, 197, 255, 0.13), transparent 40%),
    linear-gradient(220deg, rgba(117, 81, 255, 0.14), transparent 34%),
    #060b1b;
}

.auth-screen::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(1, 197, 255, 0.14), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(117, 81, 255, 0.16), transparent 31%);
  content: "";
}

.auth-card,
.auth-brand-splash {
  position: relative;
  z-index: 1;
}

.auth-card,
.select-chip,
.date-range-chip,
.profit-total-card,
.profit-driver-grid article,
.shop-profit-card,
.bridge-shop-card,
.snapshot-board,
.panel,
.forecast-panel,
.product-dev-panel,
.news-panel,
.metrics-panel,
.news-stock-check,
.integration-hero,
.integration-card,
.account-card,
.assignment-card,
.product-dev-card,
.news-card,
.metrics-card,
.metrics-product-cost-summary article,
.metrics-cashback-panel,
.metrics-toggle,
.metrics-live-note,
.live-status-popup {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(13, 27, 62, 0.92), rgba(7, 14, 35, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow);
}

.app-header {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(8, 17, 41, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.38);
}

.account-menu-button,
.account-menu,
.account-menu-head,
.account-settings-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(13, 27, 62, 0.96), rgba(7, 14, 35, 0.92));
}

.account-menu button {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.05);
}

.account-menu-button strong,
.account-menu-head strong {
  color: #fff;
}

.header-logo,
.auth-logo {
  filter: none;
}

.nav-stack a {
  color: #b5c0dc;
}

.nav-stack a.active,
.nav-stack a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(1, 197, 255, 0.25), rgba(117, 81, 255, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.eyebrow,
.snapshot-date-pill,
.integration-head a,
.meta-connect a,
.sort-button.active,
.news-card-head b {
  color: var(--blue);
}

h1,
h2,
.snapshot-title-row h2,
.snapshot-metric strong,
.profit-driver-grid strong,
.shop-profit-card dd,
.bridge-shop-head strong,
.product-dev-head strong,
.news-row strong,
.sync-card strong,
.select-chip strong,
.date-range-chip strong {
  color: #fff;
}

.snapshot-title-row h2 {
  text-shadow: 0 0 24px rgba(1, 197, 255, 0.08);
}

.snapshot-date-pill,
.connection-pill,
.quick-range-buttons button,
.status-pill,
.forecast-pill.healthy {
  border: 1px solid rgba(1, 197, 255, 0.14);
  background: rgba(1, 197, 255, 0.12);
}

.snapshot-metric,
.snapshot-metric:first-child {
  border-color: rgba(255, 255, 255, 0.11);
}

.profit-total-card strong,
.shop-profit-card.profit strong {
  color: var(--green);
}

.bridge-shop-card {
  color: #f7fbff;
}

.bridge-shop-card .stack-meta strong {
  color: #f7fbff;
}

.bridge-shop-card .stack-meta span {
  color: #b5c0dc;
}

.bridge-shop-card .bar-track {
  background: rgba(255, 255, 255, 0.12);
}

.profit-total-card small {
  color: var(--muted);
}

.snapshot-metric span,
.cost-meta span,
.stack-meta span,
.campaign-meta span,
.store-meta span,
.assignment-grid span,
.assignment-grid small,
.account-card-head span,
.account-row span,
.account-row small,
.product-dev-meta,
.news-source span,
.news-row span,
.date-range-chip > span,
.select-chip span,
.sync-card span {
  color: var(--muted);
}

input,
select,
textarea,
.campaign-input,
.forecast-controls select,
.forecast-controls input,
.product-dev-toolbar select,
.product-dev-toolbar input,
.meta-picker select,
.snapshot-shop-select select {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  background: rgba(4, 12, 31, 0.72);
}

input::placeholder,
textarea::placeholder {
  color: #7181a4;
}

.quick-range-buttons button,
.ghost-button {
  color: #d9e8ff;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
}

.quick-range-buttons button:hover,
.ghost-button:hover {
  border-color: rgba(1, 197, 255, 0.35);
  background: rgba(1, 197, 255, 0.11);
}

.header-sync-button,
.date-range-fields button,
.sync-card button,
.auth-card button,
.admin-actions button {
  color: #fff;
  background: linear-gradient(135deg, #01c5ff, #7551ff);
  box-shadow: 0 12px 30px rgba(1, 197, 255, 0.2);
}

.sync-card,
.meta-connect,
.account-row,
.assignment-grid > div,
.account-login-summary > div,
.admin-user-card,
.forecast-summary article,
.product-dev-status,
.product-dev-media,
.product-dev-version-bar,
.news-source,
.news-row,
.news-empty,
.stock-check-row,
.product-dev-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 14, 35, 0.62);
}

.store-card,
.permission-check {
  border-color: rgba(255, 255, 255, 0.11);
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.045);
}

.store-card.is-active {
  border-color: rgba(1, 197, 255, 0.34);
  background: rgba(1, 197, 255, 0.12);
}

.bar-track {
  background: rgba(255, 255, 255, 0.09);
}

.bar-fill,
.dot.sales {
  background: var(--purple);
}

.bar-fill.net,
.bar-fill.revenue,
.dot.net {
  background: var(--blue);
}

.bar-fill.cost {
  background: var(--orange);
}

.trend-chart {
  filter: drop-shadow(0 10px 22px rgba(1, 197, 255, 0.08));
}

.axis-label {
  fill: #9cb0d4;
}

.warning-panel {
  border-color: rgba(255, 181, 71, 0.26);
  color: #ffe3a7;
  background: rgba(95, 57, 8, 0.28);
}

.warning-panel div {
  color: #ffd48a;
}

.forecast-row-critical td {
  background: rgba(255, 102, 128, 0.08);
}

.forecast-row-watch td {
  background: rgba(255, 181, 71, 0.08);
}

.forecast-pill.critical,
.status-pill.loss {
  background: rgba(255, 102, 128, 0.88);
}

.forecast-pill.watch {
  color: #ffe1a0;
  background: rgba(255, 181, 71, 0.16);
}

.product-dev-media > img,
.product-dev-media > span,
.product-dev-thumbs img,
.product-dev-idea-preview {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

th,
td {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

th,
.sort-button {
  color: #9cb0d4;
}

button:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline-color: rgba(1, 197, 255, 0.32);
}

/* Compact Dashboard interval picker */
.topbar-heading {
  min-width: 0;
}

.dashboard-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.dashboard-title-line h1 {
  flex: 0 0 auto;
}

.dashboard-title-line .date-range-chip {
  position: relative;
  display: block;
  min-width: 0;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.date-range-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: min(360px, calc(100vw - 48px));
  min-height: 50px;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(13, 27, 62, 0.92), rgba(7, 14, 35, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.date-range-toggle strong {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-range-toggle:hover,
.date-range-chip.is-open .date-range-toggle {
  border-color: rgba(1, 197, 255, 0.36);
  background: linear-gradient(145deg, rgba(15, 35, 77, 0.98), rgba(8, 17, 42, 0.94));
}

.calendar-glyph {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 23px;
  border: 2px solid #b5c0dc;
  border-radius: 4px;
}

.calendar-glyph::before {
  position: absolute;
  top: 4px;
  right: -2px;
  left: -2px;
  height: 2px;
  background: #b5c0dc;
  content: "";
}

.calendar-glyph::after {
  position: absolute;
  top: -5px;
  left: 4px;
  width: 12px;
  height: 7px;
  border-right: 2px solid #b5c0dc;
  border-left: 2px solid #b5c0dc;
  content: "";
}

.date-range-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(13, 27, 62, 0.98), rgba(7, 14, 35, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.date-range-menu .quick-range-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.date-range-menu .quick-range-buttons button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  color: #d9e8ff;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.date-range-menu .quick-range-buttons button:hover {
  color: #fff;
}

.date-range-menu .date-range-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.date-range-menu .date-range-fields label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 780px) {
  .dashboard-title-line {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .date-range-toggle {
    min-width: 0;
    width: 100%;
  }

  .dashboard-title-line .date-range-chip,
  .date-range-menu {
    width: 100%;
  }

  .date-range-menu .quick-range-buttons,
  .date-range-menu .date-range-fields {
    grid-template-columns: 1fr;
  }
}

/* Mobile shell polish */
.mobile-menu-button {
  display: none;
}

@media (max-width: 900px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open::before {
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(2, 7, 20, 0.58);
    backdrop-filter: blur(7px);
    content: "";
  }

  .app-header {
    z-index: 30;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: calc(100% - 24px);
    min-height: 62px;
    padding: 10px 12px 10px 18px;
    border-radius: 22px;
  }

  .header-logo {
    width: min(96px, 34vw);
  }

  .header-brand {
    order: 1;
  }

  .header-account {
    order: 2;
    margin-left: auto;
  }

  .mobile-menu-button {
    order: 3;
  }

  .account-menu-button {
    min-width: 0;
    width: 44px;
    height: 42px;
    padding: 0;
    place-items: center;
    text-align: center;
  }

  .account-menu-button span {
    display: none;
  }

  .account-menu-button strong {
    max-width: 2ch;
    font-size: 0;
  }

  .account-menu-button strong::first-letter {
    font-size: 0.9rem;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }

  .mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: #f7fbff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.mobile-nav-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-stack {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    z-index: 31;
    display: none;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 27, 62, 0.98), rgba(7, 14, 35, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 28px 80px rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(20px);
  }

  body.mobile-nav-open .nav-stack {
    display: grid;
    gap: 6px;
  }

  .nav-stack a {
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .nav-stack a::after {
    color: rgba(247, 251, 255, 0.42);
    content: "›";
    font-size: 1.25rem;
  }
}

@media (max-width: 760px) {
  .dashboard {
    padding: 24px 12px 96px;
  }

  .topbar {
    gap: 12px;
    margin-bottom: 14px;
  }

  .toolbar {
    width: 100%;
  }

  .select-chip {
    min-width: 0;
  }

  .dashboard-title-line h1 {
    font-size: 2rem;
  }

  .date-range-menu {
    position: fixed;
    top: 84px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
  }

  .date-range-toggle {
    min-height: 46px;
  }

  .snapshot-board,
  .profit-total-card,
  .profit-driver-grid article,
  .shop-profit-card,
  .forecast-panel,
  .product-dev-panel,
  .news-panel,
  .news-stock-check,
  .panel {
    padding: 14px;
  }

  .profit-command-center {
    gap: 10px;
  }

  .profit-total-card {
    min-height: 140px;
  }

  .profit-driver-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-profit-card dl {
    grid-template-columns: 1fr;
  }

  .snapshot-board-head,
  .panel-title,
  .integration-head,
  .account-card-head,
  .assignment-head,
  .news-card-head {
    gap: 10px;
  }

  .snapshot-title-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .snapshot-title-row .chevron {
    display: none;
  }

  .snapshot-date-pill,
  .snapshot-shop-select,
  .snapshot-shop-select select {
    width: 100%;
  }

  .snapshot-shop-select {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .snapshot-settings {
    display: none;
  }

  .snapshot-metrics {
    gap: 10px;
  }

  .snapshot-metric {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(5, 14, 35, 0.44);
  }

  .snapshot-metric:first-child {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dashboard-grid {
    gap: 12px;
  }

  .meta-connect,
  .cost-meta,
  .stack-meta,
  .campaign-meta,
  .store-meta {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .meta-connect a,
  .ghost-button,
  .header-sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .table-wrap {
    margin-inline: -6px;
    padding-inline: 6px;
    scrollbar-width: thin;
  }

  table {
    min-width: 720px;
  }

  .forecast-table-wrap table {
    min-width: 1080px;
  }

  th,
  td {
    padding: 11px 8px;
    font-size: 0.8rem;
  }

  .product-dev-card {
    overflow: hidden;
  }

  .product-dev-thumbs {
    grid-auto-flow: column;
    grid-auto-columns: 58px;
    overflow-x: auto;
  }

  .news-grid {
    gap: 12px;
  }

  .live-status-popup {
    right: 12px;
    bottom: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: min(360px, calc(100vw - 24px));
    padding: 8px;
    gap: 8px;
    border-radius: 16px;
  }

  .live-status-popup .sync-card {
    padding: 8px 9px;
  }

  .live-status-popup .header-sync-button {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .sync-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .auth-card {
    padding: 22px;
  }

  .app-header {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding-left: 14px;
  }

  .dashboard {
    padding-inline: 8px;
  }

  .dashboard-title-line h1 {
    font-size: 1.78rem;
  }

  .date-range-toggle strong {
    font-size: 0.9rem;
  }

  .quick-range-buttons button,
  .date-range-menu .quick-range-buttons button {
    min-height: 40px;
  }

  .news-row,
  .stock-check-row,
  .account-row {
    padding: 11px;
  }
}

.live-status-popup #dataStatus {
  display: block;
  width: 100%;
  overflow: visible;
}

.live-status-popup #dataStatus .service-status-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}

.live-status-popup #dataStatus .service-status-icon {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
}

body.chrome-hidden .app-header {
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(-100% - 28px));
}

body.chrome-hidden .live-status-popup {
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(100% + 28px));
}

body.mobile-nav-open.chrome-hidden .app-header {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

@keyframes dashboardCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }

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

@keyframes dashboardGlowSweep {
  from {
    transform: translateX(-120%) skewX(-16deg);
  }

  to {
    transform: translateX(220%) skewX(-16deg);
  }
}

@keyframes dashboardBarGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.dashboard-page :where(
  .profit-total-card,
  .profit-driver-grid article,
  .shop-profit-card,
  .snapshot-board,
  .snapshot-metric,
  .panel,
  .bridge-shop-card,
  .store-card
) {
  position: relative;
  overflow: hidden;
  animation: dashboardCardIn 0.5s ease both;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.dashboard-page :where(
  .profit-total-card,
  .profit-driver-grid article,
  .shop-profit-card,
  .snapshot-board,
  .panel,
  .bridge-shop-card,
  .store-card
)::before {
  position: absolute;
  inset: 0 auto 0 -35%;
  z-index: 0;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  content: "";
  opacity: 0;
  transform: translateX(-120%) skewX(-16deg);
}

.dashboard-page :where(
  .profit-total-card,
  .profit-driver-grid article,
  .shop-profit-card,
  .snapshot-board,
  .panel,
  .bridge-shop-card,
  .store-card
):hover {
  border-color: rgba(1, 197, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 70px rgba(1, 197, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.dashboard-page :where(
  .profit-total-card,
  .profit-driver-grid article,
  .shop-profit-card,
  .snapshot-board,
  .panel,
  .bridge-shop-card,
  .store-card
):hover::before {
  opacity: 1;
  animation: dashboardGlowSweep 0.85s ease;
}

.dashboard-page :where(
  .profit-total-card,
  .profit-driver-grid article,
  .shop-profit-card,
  .snapshot-board,
  .snapshot-metric,
  .panel,
  .bridge-shop-card,
  .store-card
) > * {
  position: relative;
  z-index: 1;
}

.profit-driver-grid article:nth-child(1),
.shop-profit-card:nth-child(1),
.snapshot-metric:nth-child(1),
.dashboard-grid .panel:nth-child(1) {
  animation-delay: 0.04s;
}

.profit-driver-grid article:nth-child(2),
.shop-profit-card:nth-child(2),
.snapshot-metric:nth-child(2),
.dashboard-grid .panel:nth-child(2) {
  animation-delay: 0.08s;
}

.profit-driver-grid article:nth-child(3),
.shop-profit-card:nth-child(3),
.snapshot-metric:nth-child(3) {
  animation-delay: 0.12s;
}

.profit-driver-grid article:nth-child(4),
.snapshot-metric:nth-child(4) {
  animation-delay: 0.16s;
}

.snapshot-metric:nth-child(5) {
  animation-delay: 0.2s;
}

.snapshot-metric:nth-child(6) {
  animation-delay: 0.24s;
}

.snapshot-metric:nth-child(7) {
  animation-delay: 0.28s;
}

.bar-fill {
  transform-origin: left center;
  animation: dashboardBarGrow 0.72s ease both;
}

.trend-chart polyline,
.trend-chart polygon,
.trend-chart circle {
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.main-chart-panel:hover .trend-chart polyline {
  filter: drop-shadow(0 0 8px rgba(1, 197, 255, 0.4));
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page :where(
    .profit-total-card,
    .profit-driver-grid article,
    .shop-profit-card,
    .snapshot-board,
    .snapshot-metric,
    .panel,
    .bridge-shop-card,
    .store-card
  ),
  .bar-fill,
  .dashboard-page :where(
    .profit-total-card,
    .profit-driver-grid article,
    .shop-profit-card,
    .snapshot-board,
    .panel,
    .bridge-shop-card,
    .store-card
  ):hover::before {
    animation: none;
  }

  .dashboard-page :where(
    .profit-total-card,
    .profit-driver-grid article,
    .shop-profit-card,
    .snapshot-board,
    .panel,
    .bridge-shop-card,
    .store-card
  ):hover {
    transform: none;
  }
}
