:root {
  --accent: #c4f36b;
  --bg: #101312;
  --panel: #191d1b;
  --line: #2b302d;
  --muted: #929b94;
  color-scheme: dark;
  font-family: 'DM Sans', 'Microsoft YaHei', sans-serif;
  color: #f0f3ef;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  transition: 0.2s;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  border-radius: 8px;
  padding: 9px 15px;
}
button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 90px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5%;
  gap: 24px;
}
.brand {
  font-size: 29px;
  letter-spacing: -1.5px;
  font-weight: 700;
  white-space: nowrap;
}
.brand:first-letter {
  color: var(--accent);
}
.brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 2.9px;
  color: var(--muted);
  padding-left: 30px;
  margin-top: 3px;
}
nav {
  display: flex;
  gap: 12px;
}
nav button {
  border: 0;
  color: var(--muted);
}
nav .active {
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #30392e;
  color: var(--accent);
  width: 38px;
  height: 38px;
  font-size: 12px;
}
.live {
  font-size: 12px;
  color: var(--accent);
}
main {
  max-width: 1510px;
  margin: auto;
  padding: 36px 4.5%;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow span {
  color: var(--muted);
  margin-left: 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 30px;
  gap: 16px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 10px 0;
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 18px;
}
.pill {
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 24px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
.section-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  display: flex;
  justify-content: space-between;
}
.balance h2 {
  font-size: 42px;
  letter-spacing: -1px;
  margin: 18px 0 10px;
}
.positive {
  color: var(--accent);
}
.negative {
  color: #f28487;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.balance svg {
  height: 150px;
  margin-top: 20px;
}
svg {
  width: 100%;
  height: 220px;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.feature {
  position: relative;
  overflow: hidden;
  border: 1px solid #3b4930;
  border-radius: 14px;
  padding: 30px;
  background: radial-gradient(ellipse at 90% 10%, #3c5129, transparent 70%), #1c241a;
  margin-bottom: 24px;
}
.feature h2 {
  font-size: 29px;
  margin-top: 56px;
  position: relative;
}
.feature p {
  max-width: 300px;
  position: relative;
}
.orb {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 160px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  transform: rotate(-15deg);
}
.primary {
  background: var(--accent);
  color: #182011;
  border: 0;
  font-weight: 600;
  margin-top: 12px;
}
.primary:hover {
  color: #182011;
  filter: brightness(1.08);
}
.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ticker {
  position: relative;
  padding: 20px;
  overflow: hidden;
}
.ticker > div:first-child {
  font-size: 12px;
}
.ticker .muted {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.ticker strong {
  display: block;
  font-size: 23px;
  margin-top: 18px;
}
.ticker > span {
  font-size: 11px;
}
.spark {
  position: absolute;
  right: 15px;
  bottom: 20px;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--accent);
  opacity: 0.65;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading input {
  width: 240px;
}
.tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  color: var(--muted);
  white-space: nowrap;
  padding: 14px;
}
.tabs .active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
input {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121613;
  color: inherit;
  outline: 0;
}
input:focus {
  border-color: var(--accent);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-weight: 400;
  font-size: 10px;
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #282d29;
}
tr:last-child td {
  border: 0;
}
.asset {
  display: flex;
  gap: 13px;
  align-items: center;
}
.asset small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.coin {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #30372e;
  color: #d9e4d2;
  font-size: 17px;
  font-weight: 600;
}
.c1 {
  background: #2e353d;
}
.c2 {
  background: #365036;
}
.c3 {
  background: #624e29;
  color: #ffd287;
}
.mini-chart {
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--accent);
}
.mini-chart.negative {
  color: #f28487;
}
.trade-btn {
  font-size: 11px;
  border-radius: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stats h2 {
  font-size: 29px;
}
.stats p {
  margin-top: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  padding: 26px 0;
  gap: 20px;
}
.admin-shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
aside {
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  position: relative;
  background: #141815;
}
aside .brand {
  display: block;
  margin: 0 12px 42px;
}
aside button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  font-size: 12px;
  border: 0;
  padding: 13px;
  margin: 4px 0;
  color: var(--muted);
}
aside button.active {
  background: #293321;
  color: var(--accent);
}
aside button span {
  font-size: 17px;
  width: 17px;
}
aside i {
  margin-left: auto;
  border-radius: 5px;
  background: var(--accent);
  color: #182011;
  font-style: normal;
  font-size: 10px;
  padding: 2px 6px;
}
.workspace-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #68756b;
  margin: 0 12px 20px;
}
.sidebar-bottom {
  margin: 60px 12px 10px;
  font-size: 11px;
  color: var(--muted);
}
.admin-body {
  min-width: 0;
}
.admin-body header {
  height: 78px;
}
.admin-body main {
  padding: 30px 32px;
}
.admin-body h1 {
  font-size: 28px;
}
.todo {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.notice {
  padding: 16px;
  border: 1px solid #3c4930;
  background: #222b1e;
  color: #bed0af;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0;
}
.settings-panel {
  max-width: 800px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  margin: 22px 0;
}
label input {
  width: 100%;
}
label input[type='color'] {
  height: 48px;
}
.check {
  flex-direction: row;
  align-items: center;
}
.check input {
  width: auto;
}
dialog {
  width: 440px;
  max-width: 94vw;
  background: var(--panel);
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(5px);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #15200e;
  border-radius: 8px;
  padding: 14px 25px;
  z-index: 100;
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 50px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .ticker-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell {
    grid-template-columns: 190px 1fr;
  }
  header {
    padding: 20px;
    gap: 10px;
  }
  nav {
    gap: 0;
  }
  nav button {
    padding: 8px;
  }
  .live {
    display: none;
  }
  .page-heading .pill {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    height: auto;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 24px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .panel {
    padding: 18px;
  }
  .ticker-grid {
    gap: 10px;
  }
  .ticker strong {
    font-size: 19px;
  }
  .spark {
    opacity: 0.25;
  }
  .admin-shell {
    display: block;
  }
  aside {
    padding: 15px;
    display: flex;
    gap: 8px;
    overflow: auto;
    align-items: center;
  }
  aside .brand {
    display: none;
  }
  aside button {
    min-width: 130px;
    margin: 0;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .admin-body main {
    padding: 22px 14px;
  }
  .admin-body header {
    height: 65px;
  }
  .stats {
    gap: 10px;
  }
  .stats h2 {
    font-size: 21px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .section-heading input {
    width: 100%;
  }
  footer {
    flex-direction: column;
  }
  .balance h2 {
    font-size: 34px;
  }
}

.rich-editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.rich-toolbar button {
  padding: 6px 9px;
  font-size: 12px;
}
.rich-editor-body {
  min-height: 200px;
  max-height: 480px;
  overflow: auto;
  padding: 14px;
  outline: none;
  cursor: text;
}
.rich-editor-body:focus {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.rich-content {
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto;
}
.rich-content :is(h2, h3) {
  margin: 18px 0 10px;
}
.rich-content :is(ul, ol) {
  padding-inline-start: 24px;
}
.rich-content blockquote {
  border-inline-start: 3px solid var(--accent);
  margin: 12px 0;
  padding-inline-start: 16px;
  color: var(--muted);
}
.rich-content a {
  color: var(--accent);
  text-decoration: underline;
}
.rich-editor [role='alert']:empty {
  display: none;
}
