@charset "UTF-8";
:root {
  --bg: #f2f4f7;
  --surface: #fff;
  --ink: #172329;
  --muted: #68777f;
  --green: #176854;
  --mint: #dff4e9;
  --purple: #7860b5;
  --line: rgba(31, 60, 65, 0.08);
  --red: #b64752;
  --amber: #946325;
  --curve: cubic-bezier(0.32, 0.72, 0, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 "Segoe UI Variable",
    "Segoe UI",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    transform 0.2s var(--curve),
    opacity 0.2s var(--curve);
}
button {
  cursor: pointer;
}
button:active,
a:active {
  transform: scale(0.98);
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #9674d3;
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
}
svg {
  display: block;
}
button svg {
  width: 19px;
  height: 19px;
}
.reviewbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  background: #ece9f3;
  color: #55446e;
  font-size: 12px;
  gap: 10px;
}
.reviewbar a {
  text-decoration: none;
  font-weight: 650;
}
.reviewbar strong {
  letter-spacing: 0.08em;
  font-size: 10px;
  margin-right: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: calc(100dvh - 42px);
}
.sidebar {
  padding: 35px 20px;
  background: #142a2b;
  color: #cfddda;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.4px;
}
.logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #ceecd9;
  color: #163d34;
  border-radius: 13px;
  font-size: 24px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.19em;
  color: #9ab3ab;
  font-weight: 400;
  margin-top: 4px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  color: #acc1ba;
  padding: 13px 15px;
  border-radius: 12px;
}
.nav button.active {
  background: #2d4642;
  color: #e6f8ed;
  box-shadow: inset 3px 0 #b5e3c6;
}
.nav button:hover {
  background: #263e3a;
}
.nav em {
  font-style: normal;
  font-size: 10px;
  margin-left: auto;
  background: #40574f;
  padding: 1px 6px;
  border-radius: 5px;
}
.sidebarlabel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8da99f;
  margin: 0 15px 15px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #99b2a8;
}
.side-note {
  border-radius: 16px;
  background: #203b35;
  padding: 18px;
  margin-bottom: 28px;
}
.side-note strong {
  color: #d4ecdb;
  display: block;
  margin-bottom: 5px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #d7e5dc;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  color: #255641;
  font-weight: 600;
  margin-right: 10px;
}
.workspace {
  min-width: 0;
  padding: 28px 38px 22px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 32px;
}
.topline .trail span {
  color: #263b35;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mint);
  color: var(--green);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge:before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.amber {
  background: #faf0db;
  color: var(--amber);
}
.badge.gray {
  background: #eef1f3;
  color: #6b747d;
}
.badge.purple {
  background: #efeaf7;
  color: #7856a3;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 650;
  margin-bottom: 8px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin: 0 0 9px;
  font-weight: 620;
}
p {
  margin: 0;
  color: var(--muted);
}
h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
  margin: 0;
  font-weight: 620;
}
h3 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: #fff;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 12px;
  color: #32433d;
  min-height: 40px;
  text-decoration: none;
}
.btn.primary {
  background: #225d4b;
  color: #fff;
  box-shadow: none;
}
.btn.danger {
  background: #fae9e8;
  color: #a63743;
}
.btn .round {
  display: grid;
  place-items: center;
  background: #ffffff20;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}
.filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 23px;
  flex-wrap: wrap;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e7ebed;
  border-radius: 12px;
  flex-wrap: wrap;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}
.segmented button.active {
  background: #fff;
  color: #263e35;
  box-shadow: 0 2px 5px #183b2c08;
}
.date {
  font-size: 12px;
  color: var(--muted);
}
.custom-range {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: #e9edf1;
  border-radius: 16px;
  margin-bottom: 18px;
}
.custom-range label {
  display: grid;
  gap: 5px;
  font-size: 11px;
}
input,
select {
  border: 0;
  box-shadow: 0 0 0 1px #355c4218;
  background: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  min-height: 40px;
  max-width: 100%;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.bezel {
  padding: 4px;
  background: #e7ecec90;
  border-radius: 21px;
  min-width: 0;
}
.card {
  background: var(--surface);
  border-radius: 17px;
  padding: 22px;
  box-shadow:
    inset 0 1px #ffffffb0,
    0 5px 24px #283b4210;
  height: 100%;
  min-width: 0;
}
.kpi .label {
  color: var(--muted);
  font-size: 12px;
}
.kpi .value {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 12px 0 9px;
  font-weight: 600;
}
.kpi .foot {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.green {
  color: var(--green);
}
.red {
  color: var(--red);
}
.purple-text {
  color: var(--purple);
}
.kpi:first-child .card {
  background: #e2efea;
}
.kpi-head {
  display: flex;
  justify-content: space-between;
}
.kpi-head svg {
  width: 18px;
  height: 18px;
  color: #7b9289;
}
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-head p {
  font-size: 11px;
  margin-top: 4px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
  padding: 6px;
}
.chart-summary {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 5px 0 12px;
}
.chart-summary strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.chart-summary small {
  color: var(--muted);
  font-size: 11px;
}
.legend {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 15px;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #27705a;
  margin-right: 5px;
}
.legend span:nth-child(2):before {
  background: #b7a2d7;
}
.chart {
  width: 100%;
  height: 156px;
}
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #879399;
  margin-top: 4px;
}
.session {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.session:first-of-type {
  padding-top: 4px;
}
.session:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.session p {
  font-size: 11px;
  margin-top: 3px;
}
.session time {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.session-info {
  display: flex;
  gap: 11px;
  align-items: center;
}
.iconbox {
  background: #edf2f0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #43675a;
  flex-shrink: 0;
}
.iconbox svg {
  width: 18px;
  height: 18px;
}
.health-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #e5eee9;
  border-radius: 14px;
  padding: 13px 17px;
  margin-top: 18px;
  font-size: 11px;
  color: #476454;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  font-weight: 500;
  color: #81908e;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 10px;
  background: #f6f8f8;
}
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border: 0;
}
.symbol {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 650;
}
.coin {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f8ecd9;
  color: #a77836;
  display: grid;
  place-items: center;
}
.coin.eth {
  background: #ece9f7;
  color: #8370b3;
}
.coin.sol {
  background: #e4f2ee;
  color: #578f7c;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #8b969b;
  margin-top: 24px;
}
.bottom-nav,
.mobile-top {
  display: none;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.metric-row:last-child {
  border: 0;
}
.metric-row span {
  color: var(--muted);
  font-size: 12px;
}
.bar {
  height: 7px;
  background: #e8edef;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.bar div {
  height: 100%;
  background: #79a58e;
  border-radius: 10px;
}
.chart-note {
  font-size: 11px;
  margin-top: 10px;
}
.notice {
  padding: 15px 18px;
  background: #f4ecdf;
  border-radius: 14px;
  color: #806239;
  font-size: 12px;
  margin: 0 0 22px;
}
.control-row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.control-row:last-child {
  border: 0;
}
.control-row p {
  font-size: 12px;
  max-width: 490px;
  margin-top: 5px;
}
.control-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.audit {
  padding: 11px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.audit small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.screen {
  animation: enter 0.35s var(--curve);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
dialog {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 100px #193f302b;
  padding: 30px;
  max-width: 440px;
  width: calc(100% - 32px);
  color: var(--ink);
}
dialog::backdrop {
  background: #162d3766;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 23px;
  margin-bottom: 14px;
}
dialog p {
  font-size: 13px;
  margin-bottom: 25px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #193b31;
  color: #fff;
  padding: 14px 23px;
  border-radius: 16px;
  box-shadow: 0 8px 35px #263e3d20;
  z-index: 5;
  max-width: 90%;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
.mobile {
  background: #dfe5e7;
}
.mobile #app {
  max-width: 430px;
  margin: 24px auto;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 80px #354d5e16;
  background: var(--bg);
  position: relative;
}
.mobile .reviewbar {
  padding: 10px 16px;
  font-size: 10px;
}
.mobile .reviewbar strong {
  display: none;
}
.mobile .shell {
  display: block;
  min-height: 800px;
}
.mobile .sidebar {
  display: none;
}
.mobile .workspace {
  padding: 20px 17px 94px;
}
.mobile .mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.mobile .brand {
  font-size: 14px;
}
.mobile .brand small {
  font-size: 8px;
  color: #6d8980;
}
.mobile .brand .logo {
  width: 32px;
  height: 32px;
}
.mobile .topline {
  margin-bottom: 20px;
}
.mobile .trail,
.mobile .top-actions .desktop-date {
  display: none;
}
.mobile .top-actions {
  justify-content: space-between;
  width: 100%;
  gap: 7px;
  font-size: 10px;
}
.mobile .hero {
  align-items: flex-start;
  margin-bottom: 21px;
}
.mobile h1 {
  font-size: 28px;
  letter-spacing: -1px;
}
.mobile .hero p {
  font-size: 12px;
  max-width: 235px;
}
.mobile .hero .btn {
  font-size: 0;
  padding: 9px;
}
.mobile .hero .btn svg {
  width: 18px;
}
.mobile .hero .btn .round {
  display: none;
}
.mobile .filters {
  gap: 10px;
  margin-bottom: 16px;
}
.mobile .segmented {
  width: 100%;
  flex-wrap: nowrap;
  overflow: auto;
}
.mobile .segmented button {
  flex-shrink: 0;
  font-size: 10px;
  padding: 8px 9px;
}
.mobile .date {
  font-size: 10px;
}
.mobile .kpis {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 16px;
}
.mobile .card {
  padding: 16px;
  border-radius: 16px;
}
.mobile .bezel {
  padding: 3px;
  border-radius: 19px;
}
.mobile .kpi .label {
  font-size: 11px;
}
.mobile .kpi .value {
  font-size: 29px;
  margin: 9px 0;
}
.mobile .kpi .foot {
  font-size: 9px;
}
.mobile .kpi-head svg {
  width: 14px;
}
.mobile .main-grid,
.mobile .two-col {
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 16px;
}
.mobile .card-head {
  margin-bottom: 12px;
}
.mobile h2 {
  font-size: 15px;
}
.mobile .chart {
  height: 137px;
}
.mobile .chart-summary strong {
  font-size: 24px;
}
.mobile .legend {
  font-size: 9px;
  gap: 10px;
}
.mobile .session {
  padding: 12px 0;
}
.mobile .session h3 {
  font-size: 12px;
}
.mobile .footer {
  flex-direction: column;
  margin-top: 17px;
}
.mobile .bottom-nav {
  display: flex;
  position: sticky;
  bottom: 0;
  background: #fffffff0;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 9px 4px 13px;
  justify-content: space-around;
  z-index: 2;
  margin-top: -78px;
  height: 78px;
}
.bottom-nav button {
  display: grid;
  place-items: center;
  gap: 5px;
  border: 0;
  background: none;
  font-size: 9px;
  color: #7b8a84;
  min-width: 48px;
  padding: 4px;
  border-radius: 10px;
}
.bottom-nav button.active {
  color: #19674e;
  background: #e9f3ed;
}
.bottom-nav svg {
  width: 18px;
  height: 18px;
}
.mobile .table-wrap {
  overflow: visible;
}
.mobile table,
.mobile tbody {
  display: block;
}
.mobile thead {
  display: none;
}
.mobile tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mobile td {
  border: 0;
  padding: 0;
  font-size: 11px;
}
.mobile td:nth-child(2) {
  order: 3;
  width: 65%;
  color: var(--muted);
}
.mobile td:nth-child(4) {
  order: 4;
  text-align: right;
}
.mobile td:nth-child(5) {
  display: none;
}
.mobile .table-foot {
  font-size: 10px;
}
.mobile .control-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}
.mobile .control-actions {
  width: 100%;
  justify-content: flex-end;
}
.mobile .control-actions .badge {
  margin-right: auto;
}
.mobile .notice {
  font-size: 11px;
}
.mobile .custom-range {
  padding: 12px;
  gap: 10px;
}
.mobile .custom-range label {
  width: 100%;
}
.mobile .toast {
  bottom: 90px;
}
.mobile .table-head-buttons {
  display: none;
}
body:not(.mobile) .mobile-link {
  display: none;
}
@media (max-width: 950px) {
  body:not(.mobile) .shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  body:not(.mobile) .workspace {
    padding: 24px 20px;
  }
  body:not(.mobile) .main-grid {
    grid-template-columns: 1fr;
  }
  body:not(.mobile) .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  body:not(.mobile) .sidebar {
    padding: 28px 12px;
  }
  .control-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 550px) {
  body.mobile #app {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }
  .reviewbar {
    padding: 10px 14px;
  }
  body:not(.mobile) .shell {
    display: block;
  }
  body:not(.mobile) .sidebar {
    display: none;
  }
  body:not(.mobile) .two-col {
    grid-template-columns: 1fr;
  }
  body:not(.mobile) .topline {
    display: none;
  }
  body:not(.mobile) .hero {
    flex-wrap: wrap;
  }
  body:not(.mobile) .workspace {
    padding: 20px 14px;
  }
  body:not(.mobile) .mobile-link {
    display: inline;
  }
  body:not(.mobile) .footer {
    flex-wrap: wrap;
  }
  .control-actions {
    flex-wrap: wrap;
  }
  .custom-range input {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Concept 02 — Electric orbit. Shared mobile / desktop theme tokens. */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0ff;
  --surface: #fff;
  --ink: #231b43;
  --muted: #746889;
  --green: #087464;
  --mint: #d8faf0;
  --purple: #8045e7;
  --red: #c12c59;
  --amber: #97600b;
  --line: rgba(102, 70, 164, 0.12);
  --tray: #e8e0f6;
  --soft: #f3edff;
  --nav: #321c59;
  --chart: #8848ed;
  --chart-alt: #ff9d43;
  --hero-small: #e7d8ff;
  --input: #fff;
  --shadow: 0 12px 35px #7540ca0a;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100d20;
  --surface: #211a36;
  --ink: #f4efff;
  --muted: #b2a5cc;
  --green: #54e7bb;
  --mint: #163e39;
  --purple: #c39aff;
  --red: #ff86a6;
  --amber: #ffc36a;
  --line: rgba(194, 158, 255, 0.13);
  --tray: #2a2140;
  --soft: #2c2244;
  --nav: #160f28;
  --chart: #b58aff;
  --chart-alt: #ffb34f;
  --hero-small: #e4d1ff;
  --input: #2d2344;
  --shadow: 0 12px 40px #05021412;
}
body {
  background:
    radial-gradient(ellipse at 80% 0, #9954ef12, transparent 50%), var(--bg);
  color: var(--ink);
}
.reviewbar {
  background: var(--soft);
  color: var(--purple);
  padding: 12px 28px;
  gap: 16px;
}
.review-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.theme-toggle {
  border: 0;
  border-radius: 30px;
  padding: 9px 15px;
  min-height: 40px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 0 0 1px var(--line);
  white-space: nowrap;
}
.theme-toggle:hover {
  transform: translateY(-1px);
}
.sidebar {
  background: linear-gradient(165deg, #352054 0%, #1b1230 75%);
  color: #e9d9ff;
  padding-top: 32px;
}
.logo {
  background: linear-gradient(135deg, #b47aff, #ff83b5);
  color: #fff;
  box-shadow: 0 5px 20px #b465e322;
}
.brand small {
  color: #bc9ed8;
}
.nav button {
  color: #c2addb;
  border-radius: 13px;
}
.nav button.active {
  background: linear-gradient(110deg, #9850ef, #7042de);
  color: #fff;
  box-shadow: 0 5px 25px #8a43eb24;
}
.nav button:hover {
  background: #674086;
}
.nav button.active:hover {
  background: #9654e4;
}
.nav em {
  background: #be9ae32b;
}
.sidebarlabel,
.sidebar-bottom {
  color: #bba5cc;
}
.side-note {
  background: linear-gradient(135deg, #512f72, #32214b);
  box-shadow: inset 0 1px #ba8ef51a;
  color: #c5abd9;
}
.side-note strong {
  color: #f3d6ff;
}
.avatar {
  background: linear-gradient(135deg, #ffcb85, #ff8fa8);
  color: #4a2045;
}
.workspace {
  padding-top: 25px;
}
.topline {
  margin-bottom: 22px;
}
.topline .trail span {
  color: var(--ink);
}
.hero {
  padding: 29px 30px 31px;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 90% 100%, #f26cbd75, transparent 55%),
    linear-gradient(115deg, #6429cd, #8742e1 65%, #af56e8);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px #883be61c;
  min-height: 155px;
}
.hero:after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px #ffffff14,
    0 0 0 32px #ffffff08,
    0 0 0 65px #ffffff06;
  right: 20px;
  top: -130px;
  pointer-events: none;
}
.hero > div,
.hero > button {
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -1.3px;
}
.hero p {
  color: #ebddff;
}
.hero .eyebrow {
  color: #e6ceff;
}
.hero .btn.primary {
  background: #fff;
  color: #6125bb;
  box-shadow: 0 4px 20px #5217911c;
}
.hero .round {
  background: #eee2ff;
}
.btn {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.btn.primary {
  background: linear-gradient(110deg, #8b3fec, #6952e6);
  color: #fff;
}
.btn.danger {
  background: #c42f5c18;
  color: var(--red);
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}
.segmented {
  background: var(--tray);
  padding: 5px;
}
.segmented button {
  color: var(--muted);
}
.segmented button.active {
  background: var(--surface);
  color: var(--purple);
  box-shadow: 0 3px 10px #361e6610;
}
.bezel {
  background: var(--tray);
  padding: 4px;
  border-radius: 22px;
}
.card {
  background: var(--surface);
  box-shadow:
    inset 0 1px #ffffff09,
    var(--shadow);
  border-radius: 18px;
}
.kpis {
  gap: 17px;
}
.kpi .card,
.kpi:first-child .card {
  background: linear-gradient(135deg, #843cde, #a15ced);
  color: #fff;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.kpi:nth-child(2) .card {
  background: linear-gradient(130deg, #036f88, #079aad);
}
.kpi:nth-child(3) .card {
  background: linear-gradient(130deg, #ad4415, #d97226);
}
.kpi:nth-child(4) .card {
  background: linear-gradient(130deg, #a62c71, #d34c86);
}
.kpi .card:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  right: -28px;
  bottom: -32px;
  box-shadow: 0 0 0 20px #ffffff06;
  pointer-events: none;
}
.kpi .label,
.kpi .foot,
.kpi-head svg {
  color: #fff !important;
}
.kpi .label {
  font-weight: 550;
}
.kpi .foot {
  opacity: 0.88;
}
.kpi .value {
  color: white !important;
  font-size: 35px;
  margin: 13px 0 10px;
}
.kpi-head svg {
  opacity: 0.85;
}
.kpi .bezel {
  box-shadow: none;
}
.badge {
  background: var(--mint);
  color: var(--green);
}
.badge.purple {
  background: #9657ed1b;
  color: var(--purple);
}
.badge.gray {
  background: var(--soft);
  color: var(--muted);
}
.badge.amber {
  background: #e69d241b;
  color: var(--amber);
}
.text-button {
  color: var(--purple);
}
.health-strip {
  background: var(--mint);
  color: var(--green);
}
.iconbox {
  background: var(--soft);
  color: var(--purple);
}
.legend span:before {
  background: var(--chart);
}
.legend span:nth-child(2):before {
  background: var(--chart-alt);
}
.chart rect[fill="#36735c"] {
  fill: var(--chart);
}
.chart rect[fill="#b9a3d6"] {
  fill: var(--chart-alt);
}
.chart path[stroke="#eaf0ed"] {
  stroke: var(--line);
}
.chart path[fill="#e5efea"] {
  fill: var(--soft);
}
.chart path[stroke="#568c70"] {
  stroke: var(--chart);
}
th {
  background: var(--soft);
  color: var(--muted);
}
td {
  border-color: var(--line);
}
.coin {
  background: #ffa24922;
  color: var(--amber);
}
.coin.eth {
  background: #a67bff22;
  color: var(--purple);
}
.coin.sol {
  background: var(--mint);
  color: var(--green);
}
.custom-range {
  background: var(--tray);
}
input,
select {
  background: var(--input);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.notice {
  background: #efb12f14;
  color: var(--amber);
  box-shadow: inset 3px 0 #eeac42;
}
.bar {
  background: var(--tray);
}
.bar div {
  background: linear-gradient(90deg, #8e4aed, #ee80bc);
}
dialog {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 90px #35195d25;
}
dialog::backdrop {
  background: #11092599;
}
.toast {
  background: #7038c6;
  color: #fff;
}
.footer,
.axis {
  color: var(--muted);
}
.session time,
.session p {
  color: var(--muted);
}
.session {
  border-color: var(--line);
}
.card-head p {
  color: var(--muted);
}
.mobile {
  background:
    radial-gradient(ellipse at 20% 10%, #9860ed24, transparent 50%), var(--bg);
}
.mobile #app {
  background: var(--bg);
  box-shadow:
    0 0 0 1px var(--line),
    0 22px 90px #6435a515;
}
.mobile .reviewbar {
  padding: 9px 13px;
  gap: 8px;
  font-size: 9px;
}
.mobile .review-actions {
  gap: 8px;
}
.mobile .reviewbar a {
  font-size: 9px;
}
.mobile .theme-toggle {
  padding: 8px 10px;
  font-size: 10px;
  min-height: 38px;
}
.mobile .brand small {
  color: var(--muted);
}
.mobile .hero {
  padding: 22px 18px;
  display: block;
  min-height: 175px;
  border-radius: 21px;
}
.mobile .hero h1 {
  font-size: 30px;
  max-width: 270px;
}
.mobile .hero p {
  max-width: 260px;
}
.mobile .hero .btn {
  font-size: 10px;
  margin-top: 16px;
  padding: 7px 13px;
  min-height: 34px;
  gap: 7px;
}
.mobile .hero .btn svg {
  width: 14px;
  height: 14px;
}
.mobile .hero:after {
  right: -130px;
  top: -140px;
}
.mobile .kpi .card {
  min-height: 145px;
}
.mobile .kpi .value {
  font-size: 30px;
}
.mobile .kpi .foot {
  font-size: 10px;
  line-height: 1.5;
  max-width: 130px;
}
.mobile .bottom-nav {
  background: var(--surface);
  box-shadow: 0 -7px 24px #41197409;
  border-color: var(--line);
}
.bottom-nav button {
  color: var(--muted);
}
.bottom-nav button.active {
  background: var(--soft);
  color: var(--purple);
}
.mobile .top-actions {
  flex-wrap: wrap;
}
.mobile .control-actions {
  gap: 7px;
}
.mobile .control-actions .btn {
  min-height: 44px;
}
.mobile .segmented button {
  min-height: 36px;
}
.mobile .nav button.active {
  background: var(--purple);
  color: var(--surface);
}
@media (max-width: 650px) {
  .reviewbar {
    flex-wrap: wrap;
  }
  .review-actions {
    margin-left: auto;
  }
  .hero {
    padding: 23px 19px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .mobile .reviewbar {
    flex-wrap: nowrap;
  }
}

/* Concept 03 — soft color surfaces with readable accents in both modes. */
:root,
[data-theme="light"] {
  --bg: #f5f5fa;
  --surface: #fff;
  --ink: #2c3044;
  --muted: #697286;
  --tray: #e9ebf2;
  --soft: #f0eef7;
  --purple: #7860a4;
  --line: rgba(93, 99, 132, 0.12);
  --green: #277965;
  --mint: #e4f4ed;
  --red: #b54c64;
  --amber: #88601e;
  --input: #fff;
  --chart: #9d8cbe;
  --chart-alt: #e7b890;
  --shadow: 0 8px 30px #333d6406;
}
[data-theme="dark"] {
  --bg: #232737;
  --surface: #2e3347;
  --ink: #edf0fa;
  --muted: #bcc4d7;
  --tray: #363d53;
  --soft: #3b4058;
  --purple: #c3b6df;
  --line: rgba(207, 217, 248, 0.12);
  --green: #a0ddc8;
  --mint: #304f48;
  --red: #f0acba;
  --amber: #e5c38c;
  --input: #383f55;
  --chart: #b2a2cb;
  --chart-alt: #dabc9d;
  --shadow: 0 8px 30px #161d2c09;
}
body,
.mobile {
  background: var(--bg);
}
.sidebar {
  background: linear-gradient(160deg, #525d7a, #414a66);
  color: #f1f1fa;
}
.brand small,
.sidebarlabel,
.sidebar-bottom {
  color: #d5dceb;
}
.nav button {
  color: #e1e5ef;
}
.nav button.active,
.nav button.active:hover {
  background: #ffffff20;
  color: #fff;
  box-shadow: inset 3px 0 #d7cce8;
}
.nav button:hover {
  background: #ffffff12;
}
.side-note {
  background: #ffffff0c;
  box-shadow: inset 0 1px #ffffff16;
  color: #d6deee;
}
.side-note strong {
  color: #fff;
}
.logo {
  background: linear-gradient(135deg, #ac9bc6, #8aa9bd);
  box-shadow: none;
}
.avatar {
  background: #ded7ec;
  color: #625477;
}
.reviewbar {
  background: var(--soft);
  color: var(--muted);
}
.hero {
  background: linear-gradient(110deg, #e9e5f3, #e9edf5 65%, #e4eff0);
  box-shadow: none;
}
.hero h1 {
  color: #3b3654;
}
.hero p {
  color: #69637e;
}
.hero .eyebrow {
  color: #817395;
}
.hero:after {
  box-shadow:
    0 0 0 1px #9683ad16,
    0 0 0 32px #9683ad07,
    0 0 0 65px #9683ad05;
}
.hero .btn.primary {
  background: #fff;
  color: #756391;
  box-shadow: 0 3px 14px #61508509;
}
.hero .round {
  background: #f0eaf6;
}
.btn.primary {
  background: #82749f;
  color: #fff;
}
.kpi .card,
.kpi:first-child .card {
  background: #ede7f5;
  color: #514267;
}
.kpi:nth-child(2) .card {
  background: #e2eff2;
  color: #355d6a;
}
.kpi:nth-child(3) .card {
  background: #f5eadd;
  color: #7b5b39;
}
.kpi:nth-child(4) .card {
  background: #f4e5ee;
  color: #795064;
}
.kpi .label,
.kpi .foot,
.kpi-head svg,
.kpi .value {
  color: inherit !important;
}
.kpi .foot {
  opacity: 0.9;
}
.kpi .card:after {
  border-color: #7267850c;
  box-shadow: 0 0 0 20px #72678504;
}
.mobile .kpi .card {
  min-height: 140px;
}
.bar div {
  background: linear-gradient(90deg, #ab9abf, #dbb4c6);
}
.badge.purple {
  background: var(--soft);
}
.toast {
  background: #686181;
}
.api-summary {
  background: var(--surface);
  border-radius: 17px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  box-shadow: 0 0 0 1px var(--line);
}
.api-summary p {
  font-size: 11px;
  margin-top: 7px;
}
.api-summary strong {
  font-size: 13px;
  margin-right: 10px;
}
.api-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 8px;
}
.api-dot.off {
  background: var(--amber);
}
.api-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.api-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 16px;
}
.api-metrics > div {
  padding: 15px;
  background: var(--soft);
  border-radius: 13px;
}
.api-metrics span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.api-metrics strong {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.api-section .metric-row strong {
  font-size: 12px;
  font-weight: 550;
  text-align: right;
}
.api-error {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.api-error > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.api-error > div > strong {
  color: var(--amber);
  font-size: 12px;
}
.api-error p {
  font-size: 12px;
  margin-top: 7px;
}
.api-error h3 {
  font-size: 13px;
}
.theme-toggle {
  min-height: 42px;
}
.mobile .theme-toggle {
  min-height: 40px;
}
.mobile .api-section {
  grid-template-columns: 1fr;
  gap: 15px;
}
.mobile .api-summary {
  padding: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.mobile .api-summary .text-button {
  font-size: 10px;
  white-space: nowrap;
}
.mobile .api-summary strong {
  font-size: 12px;
}
.mobile .api-summary .badge {
  font-size: 9px;
  margin-top: 5px;
}
.mobile .api-metrics strong {
  font-size: 19px;
}
.mobile .api-section .metric-row {
  gap: 8px;
}
.mobile .api-section .metric-row span {
  font-size: 11px;
}
.mobile .reviewbar {
  flex-wrap: wrap;
  row-gap: 7px;
}
.mobile .review-actions {
  margin-left: auto;
}
.mobile .bottom-nav {
  background: var(--surface);
}
[data-theme="dark"] .sidebar {
  background: linear-gradient(165deg, #3c455d, #30394f);
}
[data-theme="dark"] .hero {
  background: linear-gradient(110deg, #45445f, #41495f 65%, #3d535a);
}
[data-theme="dark"] .hero h1 {
  color: #f0eef8;
}
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero .eyebrow {
  color: #d0cee3;
}
[data-theme="dark"] .hero .btn.primary {
  background: #d8d3e7;
  color: #454057;
}
[data-theme="dark"] .hero .round {
  background: #c8bfdc;
}
[data-theme="dark"] .kpi .card,
[data-theme="dark"] .kpi:first-child .card {
  background: #4a435e;
  color: #eee5fc;
}
[data-theme="dark"] .kpi:nth-child(2) .card {
  background: #36545f;
  color: #d9eef3;
}
[data-theme="dark"] .kpi:nth-child(3) .card {
  background: #5b4c40;
  color: #f2e5d3;
}
[data-theme="dark"] .kpi:nth-child(4) .card {
  background: #5c4356;
  color: #f5e0ef;
}
[data-theme="dark"] .logo {
  background: #a59ab7;
}
[data-theme="dark"] .btn.primary {
  background: #9b8ab9;
  color: #1f2032;
}
@media (max-width: 950px) {
  .api-section {
    grid-template-columns: 1fr;
  }
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(460px, 100%);
}
#login {
  display: grid;
  gap: 18px;
  margin: 25px 0;
}
#login label {
  display: grid;
  gap: 7px;
}
#login input {
  width: 100%;
}
.mobile .hero {
  min-height: 140px;
}
.mobile .hero h1 {
  font-size: 26px;
}
.bottom-nav button {
  min-height: 48px;
}
.mobile .bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  height: 78px;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
.mobile .workspace {
  padding-bottom: 100px;
}
.login-card > .theme-toggle {
  display: block;
  margin: 0 0 16px auto;
}
/* Desktop: persistent shell, independently scrollable content and menu. */
body.dashboard:not(.mobile) {
  height: 100dvh;
  overflow: hidden;
}
.dashboard:not(.mobile) #app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.dashboard:not(.mobile) .reviewbar {
  flex-shrink: 0;
}
.dashboard:not(.mobile) .shell {
  flex: 1;
  min-height: 0;
  height: 0;
  overflow: hidden;
  width: 100%;
}
.dashboard:not(.mobile) .sidebar {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 20px;
}
.dashboard:not(.mobile) .sidebar .brand,
.dashboard:not(.mobile) .sidebar-bottom {
  flex-shrink: 0;
}
.dashboard:not(.mobile) .sidebar .nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #9facc6 transparent;
}
.dashboard:not(.mobile) .sidebar .nav button {
  flex-shrink: 0;
  min-height: 46px;
}
.dashboard:not(.mobile) .sidebar-bottom {
  margin-top: 0;
}
.dashboard:not(.mobile) .side-note {
  margin: 12px 0 0;
  padding: 12px;
}
.dashboard:not(.mobile) .workspace {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  max-width: none;
  scrollbar-gutter: stable;
}
.screen {
  animation: none;
}

/* Account help remains usable on small screens and in both themes. */
.recovery-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 88dvh;
  overflow-y: auto;
}
.recovery-dialog label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.recovery-dialog input {
  width: 100%;
  box-sizing: border-box;
}
.recovery-dialog li {
  margin-bottom: 10px;
}
.recovery-link {
  margin-top: 16px;
}
@media (max-width: 650px) {
  .reviewbar {
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
  }
  .review-actions {
    flex-wrap: wrap;
  }
}
