:root {
  --ink: #192d37;
  --muted: #687b83;
  --line: #dfe7e8;
  --green: #007b69;
  --bg: #f4f7f7;
  --side: #132c36;
  --card: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

a {
  color: var(--green);
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
select,
input {
  touch-action: manipulation
}

button {
  cursor: pointer
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #e9a450;
  outline-offset: 3px
}

.ico {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 215px;
  background: var(--side);
  color: #c6d6d9;
  padding: 28px 15px 90px;
  z-index: 3;
  overflow: auto
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  letter-spacing: 2px;
  font-weight: 750;
  color: #fff;
  margin: 2px 12px 20px
}

.brand em {
  font-style: normal;
  font-weight: 550;
  font-size: 14px;
  color: #7cdebf;
  letter-spacing: 1.5px
}

.brandmark {
  height: 32px;
  width: 33px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transform: skewY(-17deg)
}

.brandmark b {
  width: 8px;
  height: 18px;
  background: #8ce5c5;
  border-radius: 1px
}

.brandmark b:nth-child(2) {
  height: 30px
}

.brandmark b:nth-child(3) {
  height: 23px;
  background: #43a992
}

.worksp {
  border: 1px solid #37505a;
  border-radius: 6px;
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 8px 27px;
  padding: 10px 12px;
  font-size: 12px;
  color: #b9cccf
}

.dot,
.live i,
.badge i,
.metric small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60bc9f
}

.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #8da5ad;
  margin: 22px 14px 8px
}

.nav-item {
  display: flex;
  padding: 11px 14px;
  align-items: center;
  gap: 13px;
  border-radius: 6px;
  color: #c5d4d8;
  margin: 3px 0;
  font-size: 13px
}

.nav-item:hover {
  background: #203c45
}

.nav-item.selected {
  color: #b6f4dc;
  background: #244b4d;
  box-shadow: inset 3px 0 #81ddbc
}

.profile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 215px;
  background: var(--side);
  border-top: 1px solid #36505a;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px
}

.avatar {
  width: 33px;
  height: 33px;
  background: #43656a;
  border: 1px solid #6c9597;
  color: #e8fff5;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700
}

.profile b,
.profile small {
  display: block
}

.profile small {
  font-size: 10px;
  margin-top: 4px;
  color: #9eb0b6
}

.profile form {
  margin-left: auto
}

.icon-btn,
.mobile-btn {
  background: none;
  border: 0;
  color: inherit
}

.main {
  margin-left: 215px
}

.topbar {
  height: 61px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px
}

.crumb {
  font-size: 12px;
  color: var(--muted)
}

.crumb span {
  margin: 0 9px;
  color: #a9b9bf
}

.crumb strong {
  font-weight: 550;
  color: var(--ink)
}

.topright,
.actions,
.period,
.title-line {
  display: flex;
  align-items: center;
  gap: 12px
}

.topright,
.ml {
  margin-left: auto
}

.topright {
  font-size: 11px;
  color: var(--muted)
}

.topdate {
  border-left: 1px solid #dbe1e3;
  padding-left: 14px
}

.live {
  color: #367362
}

.live i {
  margin-right: 6px
}

.mobile-btn {
  display: none
}

.content {
  max-width: 1680px;
  margin: 0 auto;
  padding: 29px 32px 14px
}

.headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 23px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #588079;
  display: flex;
  align-items: center;
  gap: 8px
}

.eyebrow i {
  width: 17px;
  height: 2px;
  background: #459b8d
}

h1 {
  font-size: 30px;
  letter-spacing: -1.2px;
  line-height: 1.3;
  margin: 7px 0
}

h2 {
  font-size: 17px;
  margin: 3px 0;
  font-weight: 650;
  letter-spacing: -.4px
}

h3 {
  font-size: 15px
}

p {
  line-height: 1.7
}

.headline p,
.hint,
.auth-form p {
  color: var(--muted);
  font-size: 13px
}

.headline p {
  margin: 5px 0
}

.btn,
.period button,
.text-btn,
select,
input,
textarea {
  border: 1px solid #d5dfe1;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 8px 12px
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 13px;
  font-weight: 550
}

.btn:hover {
  border-color: #91b4ad
}

.btn.primary {
  background: #117e70;
  color: white;
  border-color: #117e70
}

.btn.primary:hover {
  background: #08685d
}

.period {
  gap: 2px;
  background: #eaf0ef;
  padding: 3px;
  border-radius: 7px
}

.period button {
  background: transparent;
  border: 0;
  font-size: 12px;
  color: var(--muted)
}

.period .current {
  color: #216e60;
  background: white;
  box-shadow: 0 1px 3px #163a301a
}

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

.metric,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px
}

.metric {
  position: relative;
  padding: 20px 19px 16px;
  overflow: hidden
}

.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #61757d
}

.metric-label .ico {
  color: #719189;
  width: 17px
}

.metric strong {
  display: block;
  font-size: clamp(23px, 2.15vw, 37px);
  font-weight: 620;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  margin: 16px 0
}

.metric small {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px
}

.metric small i {
  width: 4px;
  height: 4px
}

.featured {
  background: #19443f;
  color: white;
  border-color: #19443f
}

.featured:after {
  content: "";
  position: absolute;
  width: 98px;
  height: 98px;
  right: -44px;
  bottom: -60px;
  border: 14px solid #73b99a33;
  border-radius: 35%;
  transform: rotate(45deg)
}

.featured .metric-label,
.featured .metric-label .ico,
.featured small {
  color: #b9dacb
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(240px, 1fr);
  gap: 17px;
  margin-bottom: 18px
}

.panel {
  overflow: hidden
}

.panel-head,
.toolbar {
  padding: 20px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.panel-head .eyebrow {
  font-size: 9px;
  margin-bottom: 5px;
  color: #83978f
}

.panel-head select {
  font-size: 11px
}

.panel-foot {
  border-top: 1px solid #e7edec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 11px
}

.legend {
  display: flex;
  gap: 18px;
  margin: 6px 23px 0;
  min-height: 18px;
  font-size: 11px;
  color: var(--muted)
}

.swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin-right: 6px
}

.s0 {
  background: #258e76
}

.s1 {
  background: #8cc9b7
}

.s2 {
  background: #e3b56b
}

.s3 {
  background: #899db8
}

#trend {
  padding: 6px 13px 0
}

#trend svg {
  display: block;
  min-height: 185px;
  max-height: 240px;
  width: 100%
}

.mix {
  padding: 0 24px 17px
}

.donut {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  margin: 6px auto 12px;
  display: grid;
  place-items: center;
  transform: rotate(-90deg)
}

.donut>div {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: white;
  display: grid;
  align-content: center;
  text-align: center;
  transform: rotate(90deg)
}

.donut small {
  color: var(--muted);
  font-size: 10px
}

.donut strong {
  font-size: 22px;
  margin-top: 2px
}

.mix-list>div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 12px
}

.mix-list strong {
  margin-left: auto;
  font-weight: 550
}

.mix-list small {
  color: var(--muted);
  min-width: 39px;
  text-align: right
}

.title-line {
  gap: 8px
}

.title-line>i {
  height: 14px;
  width: 3px;
  border-radius: 3px;
  background: #34947f
}

.sub-link,
.text-btn,
td a {
  font-size: 12px;
  color: var(--green)
}

.text-btn {
  background: none;
  border: 0;
  padding: 0
}

.table-scroll {
  overflow: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  font-size: 12px
}

th {
  font-weight: 550;
  color: #65787e;
  background: #f5f8f7;
  border-top: 1px solid #e7eceb;
  border-bottom: 1px solid var(--line)
}

td {
  border-bottom: 1px solid #edf0ef;
  font-variant-numeric: tabular-nums
}

tbody tr:last-child td {
  border-bottom: 0
}

tbody tr:hover {
  background: #fafcfb
}

td b {
  font-weight: 600
}

.cell-sub {
  display: block;
  color: #8a989c;
  font-size: 10px;
  margin-top: 3px
}

.rank,
.count {
  font-size: 11px;
  background: #edf3f1;
  color: #55766a;
  padding: 3px 7px;
  border-radius: 4px
}

.type,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap
}

.type0,
.badge.on {
  color: #25745e;
  background: #e2f3e9
}

.type1 {
  color: #927234;
  background: #fbf1dd
}

.type2 {
  color: #745989;
  background: #f1eaf7
}

.type3 {
  color: #3f6d89;
  background: #e7eff7
}

.badge.off {
  color: #65747c;
  background: #edf0f2
}

.badge.off i {
  background: #91a0a7
}

.badge.warn {
  background: #fff0df;
  color: #985b20
}

.badge.warn i {
  background: #e2a761
}

.badge i {
  width: 5px;
  height: 5px
}

.slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf1ef;
  padding: 12px 20px;
  color: var(--ink);
  font-size: 12px
}

.slot-row .badge {
  margin-left: auto
}

.toolbar {
  padding: 16px 20px
}

.toolbar .actions {
  gap: 7px
}

.search {
  width: 175px
}

.price-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 11px
}

.empty {
  text-align: center;
  padding: 36px;
  color: var(--muted)
}

.empty i {
  display: block;
  font-size: 24px;
  color: #83ae9f
}

.empty b {
  display: block;
  font-size: 12px;
  font-weight: 450;
  margin-top: 5px
}

footer {
  padding: 16px 0;
  color: #80908d;
  font-size: 10px;
  display: flex;
  gap: 9px
}

.stack,
label {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.stack {
  gap: 18px
}

label {
  font-size: 12px;
  font-weight: 550
}

.check {
  flex-direction: row;
  align-items: center;
  font-weight: 450
}

.check input {
  accent-color: var(--green)
}

input,
select,
textarea {
  min-width: 0;
  font-size: 13px
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8dc5b7;
  outline-offset: 1px
}

.form-panel {
  padding: 24px;
  margin-bottom: 16px
}

.form-panel h2 {
  margin-bottom: 15px
}

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

.wide {
  grid-column: 1/-1
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 15px
}

.asset-field {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: end;
  gap: 12px;
  margin-top: 12px
}

.asset-field input[type=file] {
  font-size: 11px
}

.form-panel .btn {
  align-self: start
}

.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line)
}

.tabs a {
  padding: 10px 15px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent
}

.tabs a.active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600
}

.filters {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  padding: 16px;
  margin-bottom: 16px
}

.filters label {
  font-size: 11px;
  color: var(--muted)
}

.filters input[type=number] {
  width: 82px
}

.flash,
.credential {
  padding: 12px 16px;
  margin: 0 0 16px;
  background: #e0f5e9;
  color: #216a4c;
  border-radius: 6px
}

.flash.error {
  background: #fce5e3;
  color: #9d3b36
}

.credential code,
.prose code {
  word-break: break-all;
  background: #edf3f2;
  padding: 5px 9px;
  border-radius: 4px
}

.detail-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  margin-bottom: 15px
}

.resource-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 16px 0
}

.resource-links a {
  background: #edf4f1;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px
}

.prose {
  max-width: 900px
}

.prose h3 {
  margin-top: 28px
}

.prose p {
  color: var(--muted)
}

dialog {
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  width: min(420px, 92vw);
  box-shadow: 0 18px 60px #152e3430
}

dialog::backdrop {
  background: #12263577
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.dialog-top button {
  border: none;
  background: none;
  font-size: 22px;
  color: var(--muted)
}

.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #fff
}

.auth-art {
  position: relative;
  overflow: hidden;
  background: #153b38;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px
}

.auth-art .brand {
  margin: 0
}

.auth-copy {
  z-index: 1;
  color: white
}

.auth-copy h1 {
  font-size: clamp(44px, 5.5vw, 92px);
  margin-top: 15px;
  line-height: 1.13
}

.auth-copy .eyebrow,
.auth-copy p {
  color: #b6ddcb
}

.auth-form {
  width: min(370px, 80%);
  margin: auto
}

.auth-form h1 {
  margin-top: 12px
}

.auth-form .stack {
  margin-top: 25px
}

.auth-form input {
  padding: 12px
}

.auth-form .btn {
  padding: 12px;
  justify-content: space-between
}

.orbit {
  position: absolute;
  inset: 10% 0 23%;
  overflow: hidden
}

.orbit div {
  position: absolute;
  width: 80%;
  aspect-ratio: 1/1;
  border: 1px solid #4d8b79;
  border-radius: 25%;
  transform: rotate(30deg);
  left: 34%;
  top: -11%
}

.orbit div:nth-child(2) {
  left: 42%;
  top: 0
}

.orbit div:nth-child(3) {
  left: 50%;
  top: 11%
}

.orbit i {
  position: absolute;
  left: 44%;
  top: 34%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b5e4bc;
  box-shadow: 0 0 0 7px #93cfa022
}

[hidden] {
  display: none !important
}

@media(min-width:1550px) {
  .content {
    padding: 36px 42px
  }

  .metric {
    padding: 24px
  }

  .donut {
    width: 134px;
    height: 134px
  }

  .donut>div {
    width: 98px;
    height: 98px
  }
}

@media(max-width:1100px) {

  #sidebar,
  .profile {
    width: 182px
  }

  .main {
    margin-left: 182px
  }

  .content {
    padding: 22px 20px
  }

  .topbar {
    padding: 0 20px
  }

  .metrics {
    gap: 9px
  }

  .metric {
    padding: 14px
  }

  .chart-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(215px, 1fr)
  }
}

@media(max-width:800px) {
  #sidebar {
    transform: translateX(-100%)
  }

  #sidebar.open {
    transform: none;
    box-shadow: 12px 0 50px #16302d44
  }

  .main {
    margin: 0
  }

  .mobile-btn {
    display: block
  }

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

  .topbar {
    height: 52px
  }

  .chart-layout {
    grid-template-columns: 1fr
  }

  .mix {
    display: flex;
    align-items: center;
    gap: 18px
  }

  .mix-list {
    flex: 1
  }

  .donut {
    margin: 2px 0 8px
  }

  .headline {
    flex-wrap: wrap
  }

  .toolbar {
    flex-wrap: wrap
  }

  .topdate {
    display: none
  }

  .metric strong {
    font-size: 28px
  }

  .auth {
    grid-template-columns: 1fr
  }

  .auth-art {
    min-height: 200px;
    padding: 22px
  }

  .auth-copy h1 {
    font-size: 32px
  }

  .auth-copy h1 br,
  .auth-copy p,
  .auth-copy .eyebrow {
    display: none
  }

  .auth-form {
    padding: 30px 0
  }

  .form-grid,
  .asset-field {
    grid-template-columns: 1fr
  }

  dialog {
    max-height: 90vh
  }

  .panel-head {
    padding: 16px
  }

  .profile {
    position: absolute
  }

  .content {
    padding: 19px 14px
  }

  .search {
    width: 145px
  }

  .tabs {
    overflow: auto;
    white-space: nowrap
  }
}
