:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #202c2a;
  background: #f5f7f8;
  font-size: 14px;
  font-synthesis: none;
  --green: #087b60;
  --line: #e9eeec;
  --muted: #88938f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 27px 17px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-icon {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  overflow: hidden;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  letter-spacing: 2px;
  color: #8a9491;
  margin-top: 5px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f9f8;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  margin: 29px 3px 23px;
  font-size: 16px;
  font-weight: 600;
}
.workspace > span {
  font-size: 12px;
}
.workspace small {
  display: block;
  font-size: 9px;
  color: #929c98;
  margin-top: 5px;
  letter-spacing: 1px;
}
.workspace-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #29b98d;
  margin-left: auto;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #9ba49f;
  margin: 6px 15px 10px;
}
.sidebar nav {
  overflow: auto;
  flex: 1;
  padding-bottom: 15px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  border: 0;
  background: none;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  text-align: left;
  color: #667570;
}
.nav-item i {
  font-style: normal;
  font-size: 19px;
  width: 20px;
  text-align: center;
  color: #8b9892;
}
.nav-item.active {
  background: #e9f6ef;
  color: #147554;
  font-weight: 600;
}
.nav-item.active i {
  color: #147554;
}
.nav-item.group-active {
  color: #1c5e4c;
  font-weight: 600;
}
.chevron {
  margin-left: auto;
  color: #99a29e;
}
.subnav {
  padding: 1px 0 8px 20px;
}
.subnav button {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 10px 15px 10px 27px;
  text-align: left;
  font-size: 12px;
  color: #7e8b84;
  position: relative;
}
.subnav button.active {
  color: #087b60;
  background: #eef8f2;
  font-weight: 600;
}
.subnav button.active:before {
  content: "";
  position: absolute;
  left: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0b936b;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #d5eee0;
  padding: 1px 5px;
  border-radius: 4px;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.avatar,
.header-avatar {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: #ebf1ed;
  border: 1px solid #dce6df;
  border-radius: 50%;
  font-size: 12px;
  color: #4d6a59;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
  color: #98a19b;
  margin-top: 5px;
}
.main {
  margin-left: 246px;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 12px;
  color: #9aa49e;
}
.breadcrumb span {
  margin: 0 15px;
  color: #c0c8c3;
}
.breadcrumb strong {
  font-weight: 500;
  color: #46564d;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.env {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #63816f;
}
.env span,
.live-dot {
  width: 6px;
  height: 6px;
  background: #19ae7e;
  border-radius: 50%;
}
.timezone {
  font-size: 11px;
  color: #99a49c;
}
.header-icon {
  background: none;
  border: 0;
  font-size: 23px;
  position: relative;
  color: #718077;
}
.header-icon i {
  position: absolute;
  background: #e9a652;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  right: 6px;
  top: 4px;
}
.header-avatar {
  background: #f1ece5;
  color: #8e7759;
}
.menu-button {
  display: none;
}
main {
  padding: 35px 38px 0;
  max-width: 1800px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 18px;
}
.eyebrow {
  font-size: 10px;
  color: #92a099;
  letter-spacing: 1.8px;
  margin-bottom: 9px;
}
h1 {
  font-size: 26px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.6px;
}
h1 .demo-chip {
  vertical-align: middle;
  letter-spacing: 0;
  font-weight: 400;
}
p {
  line-height: 1.7;
}
.heading p {
  font-size: 12px;
  color: #8a9890;
  margin: 10px 0 0;
}
.demo-chip {
  font-size: 10px;
  color: #9c8455;
  background: #f1eddf;
  padding: 4px 8px;
  border-radius: 5px;
  margin-left: 12px;
}
.button {
  background: #fff;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.button.primary {
  background: #087b60;
  color: #fff;
  border-color: #087b60;
}
.button.danger {
  color: #b54b4b;
  border-color: #eed1d1;
}
.button.compact {
  padding: 8px 12px;
  font-size: 11px;
}
.hero {
  background: #173d32;
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  padding: 28px 33px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
  min-height: 204px;
}
.hero-tag {
  font-size: 9px;
  letter-spacing: 3px;
  color: #a2d5b4;
}
.hero h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 1px;
  margin: 16px 0 8px;
}
.hero p {
  font-size: 12px;
  color: #9fbbb0;
  margin: 0;
}
.hero button {
  background: #c6f39c;
  border: 0;
  border-radius: 6px;
  padding: 10px 16px;
  margin-top: 20px;
  font-size: 11px;
  color: #244b2f;
  font-weight: 600;
}
.hero button span {
  margin-left: 24px;
}
.hero-art {
  position: absolute;
  width: 370px;
  height: 230px;
  right: 50px;
  top: -6px;
}
.orbit {
  border: 1px solid #4f72634a;
  border-radius: 50%;
  width: 280px;
  height: 280px;
  position: absolute;
  top: -32px;
  right: 0;
  transform: rotate(-25deg);
}
.o2 {
  width: 380px;
  height: 180px;
  top: 23px;
  right: -40px;
}
.coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 22px;
  width: 72px;
  height: 72px;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 12px 30px #062d233f;
  transform: rotate(-15deg);
}
.c1 {
  background: linear-gradient(130deg, #bbf384, #67cb92);
  color: #2a6340;
  left: 52px;
  top: 52px;
}
.c2 {
  background: linear-gradient(135deg, #50d9c7, #91e0ad);
  color: #23594d;
  left: 155px;
  top: 90px;
  transform: rotate(15deg);
}
.c3 {
  background: #2c5b47;
  color: #b7e89c;
  width: 48px;
  height: 48px;
  font-size: 16px;
  left: 270px;
  top: 33px;
  transform: rotate(15deg);
}
.art-plus {
  color: #a8d795;
  font-size: 30px;
  position: absolute;
  top: 153px;
  left: 64px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.metric {
  padding: 21px 21px 17px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.metric > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #728279;
}
.metric i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eff6ef;
  color: #77a089;
  font-size: 20px;
  font-style: normal;
}
.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 620;
  margin-top: 10px;
  letter-spacing: -1px;
}
.metric strong small {
  font-size: 10px;
  font-weight: 400;
  color: #9aa69d;
  letter-spacing: 0;
}
.metric p {
  font-size: 10px;
  color: #94a097;
  margin: 15px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.metric b {
  margin-left: auto;
  color: #9faea3;
  font-weight: 400;
}
.tiny-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #88b097;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 23px;
  margin-bottom: 25px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-head {
  padding: 23px 24px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-head h3,
h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.panel-head p {
  font-size: 10px;
  color: #97a39a;
  margin: 6px 0 0;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: none;
  border: 0;
  border-top: 1px solid #f2f4f2;
  width: calc(100% - 48px);
  margin: 0 24px;
  padding: 15px 0;
  text-align: left;
}
.task-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f2f7f3;
  color: #67947b;
  border-radius: 9px;
  font-size: 19px;
}
.task-row strong {
  font-size: 12px;
  font-weight: 500;
}
.task-row small {
  display: block;
  font-size: 10px;
  color: #9ca69f;
  margin-top: 6px;
}
.task-num {
  margin-left: auto;
  color: #60836c;
  font-weight: 600;
  font-size: 13px;
}
.task-row b {
  font-weight: 400;
  color: #a1ada4;
  font-size: 18px;
}
.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  font-size: 12px;
}
.system-row > span:first-child {
  color: #809086;
}
.system-row b {
  font-size: 11px;
  font-weight: 500;
}
.system-note {
  display: flex;
  gap: 10px;
  background: #f6f8f4;
  padding: 14px;
  border-radius: 7px;
  margin: 14px 24px 20px;
  color: #8d9b87;
  font-size: 11px;
  line-height: 1.8;
}
.system-note p {
  margin: 0;
  font-size: 10px;
}
.recent {
  margin-bottom: 27px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.green {
  background: #edf7f0;
  color: #478d63;
}
.badge.amber {
  background: #fff6e8;
  color: #b98a38;
}
.badge.red {
  background: #fff0ee;
  color: #bb746b;
}
.badge.neutral {
  background: #f0f3f5;
  color: #83929a;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 11px;
  text-align: left;
}
th {
  background: #f8faf9;
  padding: 14px 19px;
  color: #96a29a;
  font-weight: 450;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 19px;
  border-bottom: 1px solid #f0f3f1;
  color: #61716a;
}
td strong {
  font-weight: 500;
  color: #445d4d;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.text-button {
  border: 0;
  background: none;
  color: #178562;
  font-size: 11px;
  padding: 4px 6px;
}
.text-button.muted {
  color: #98a49b;
}
.info-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.8;
  background: #eff6f2;
  color: #769382;
  border: 1px solid #e1ece5;
  border-radius: 7px;
  padding: 13px 17px;
  margin-bottom: 21px;
}
.info-banner p {
  margin: 0;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
label {
  display: block;
  font-size: 11px;
  color: #728477;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dfe7e1;
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
  margin-top: 8px;
  color: #45564b;
  font-size: 12px;
  min-height: 37px;
}
input::placeholder,
textarea::placeholder {
  color: #a6b0a9;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #badbc9;
}
.filters input {
  width: 240px;
}
.filters select {
  width: 155px;
}
.filters .button {
  height: 37px;
}
.list-toolbar {
  padding: 21px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.list-toolbar > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.count {
  margin-left: 10px;
  color: #87a092;
  background: #f0f6f2;
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 6px;
}
.subtle {
  font-size: 11px;
  color: #98a89b;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 23px;
  color: #99a69d;
  font-size: 10px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.pagination button {
  background: #f5f8f5;
  border: 1px solid #e6ece7;
  padding: 5px 9px;
  border-radius: 5px;
}
.product-dot {
  display: inline-grid;
  place-items: center;
  background: #edf4ee;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  margin-right: 10px;
  color: #79a186;
  font-size: 17px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
}
.empty > span {
  font-size: 36px;
  color: #c4d8cc;
}
.empty h3 {
  margin-top: 15px;
  color: #8b9f91;
}
.empty p {
  font-size: 11px;
  color: #a2afa6;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #aab4ad;
  letter-spacing: 0.2px;
  padding: 27px 0;
}
.scrim {
  position: fixed;
  inset: 0;
  background: #162b285c;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(2px);
}
.drawer {
  height: 100%;
  width: min(560px, 100%);
  background: #fff;
  box-shadow: -10px 0 60px #112b2814;
  display: flex;
  flex-direction: column;
}
.drawer-head {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.drawer-head small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8d9e93;
}
.drawer h2 {
  font-size: 21px;
  margin: 10px 0 0;
  font-weight: 600;
}
.drawer-head > button {
  border: 0;
  background: none;
  font-size: 26px;
  color: #8b9b90;
}
.drawer-body {
  padding: 27px;
  overflow: auto;
  flex: 1;
}
.drawer-body label {
  margin-bottom: 19px;
}
.drawer-body textarea {
  min-height: 90px;
  resize: vertical;
}
.drawer-footer {
  padding: 20px 27px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
dl {
  margin: 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  gap: 25px;
  border-bottom: 1px solid #f0f4f1;
  font-size: 12px;
}
dt {
  color: #93a096;
  flex-shrink: 0;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  color: #45634f;
}
.drawer .system-note {
  margin: 25px 0;
}
.tree {
  text-align: center;
  padding: 40px;
}
.tree-node {
  border: 1px solid #d5e8dc;
  background: #f5faf6;
  border-radius: 10px;
  padding: 20px;
  min-width: 180px;
  position: relative;
}
.tree-node small {
  font-size: 10px;
  color: #90a297;
}
.tree-node strong {
  display: block;
  font-size: 13px;
  margin: 9px 0;
}
.tree-node span {
  font-size: 10px;
  color: #7e9286;
}
.tree-branches {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-top: 50px;
  margin-top: 30px;
  border-top: 1px solid #d5e8dc;
}
.tree-branches .tree-node:before {
  content: "";
  height: 50px;
  position: absolute;
  width: 1px;
  background: #d5e8dc;
  top: -51px;
  left: 50%;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  padding: 14px 23px;
  background: #1d4434;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%);
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
.nav-item:hover,
.subnav button:hover {
  background: #f0f7f2;
}
.text-button:hover {
  color: #034d38;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #39a376;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
  }
  .hero {
    min-height: 220px;
  }
  .metrics {
    gap: 22px;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 218px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    margin-left: 218px;
  }
  main {
    padding: 28px 24px 0;
  }
  header {
    padding: 0 24px;
  }
  .metric {
    padding: 16px 14px;
  }
  .hero-art {
    right: 0;
    opacity: 0.8;
  }
  .hero h2 {
    font-size: 22px;
  }
  .metrics {
    gap: 12px;
  }
  .dashboard-grid {
    gap: 15px;
  }
  .task-row small {
    font-size: 9px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 246px;
    box-shadow: 10px 0 30px #18342815;
  }
  .sidebar.visible {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .menu-button {
    display: block;
    border: 0;
    background: none;
    font-size: 20px;
    color: #76897d;
  }
  .breadcrumb {
    margin-right: auto;
    margin-left: 16px;
  }
  .header-right {
    gap: 15px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-art {
    right: -30px;
  }
}
@media (max-width: 600px) {
  header {
    height: 64px;
    padding: 0 18px;
  }
  .timezone,
  .header-icon {
    display: none;
  }
  main {
    padding: 25px 16px 0;
  }
  .heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 23px;
  }
  .heading p {
    font-size: 11px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .heading > .button {
    padding: 9px;
    font-size: 10px;
  }
  .hero {
    padding: 24px;
    min-height: 210px;
  }
  .hero h2 {
    font-size: 20px;
    max-width: 230px;
    line-height: 1.6;
  }
  .hero p {
    max-width: 210px;
    font-size: 11px;
  }
  .hero-art {
    right: -170px;
    opacity: 0.5;
  }
  .hero > div:first-child {
    z-index: 1;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric strong {
    font-size: 27px;
  }
  .metric p {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 18px;
    gap: 12px;
  }
  .filters label:first-child {
    width: 100%;
  }
  .filters input {
    width: 100%;
  }
  .filters select {
    width: 130px;
  }
  .list-toolbar {
    padding: 18px;
  }
  .list-toolbar > div {
    gap: 8px;
  }
  .list-toolbar .subtle {
    display: none;
  }
  .panel-head {
    padding: 20px;
  }
  .tree {
    padding: 25px 15px;
  }
  .tree-branches {
    flex-direction: column;
    align-items: center;
  }
  .tree-node {
    width: 210px;
  }
  .tree-branches .tree-node:before {
    display: none;
  }
  .tree-branches {
    padding-top: 25px;
    gap: 15px;
  }
  footer {
    font-size: 8px;
    gap: 15px;
  }
  .env {
    font-size: 10px;
  }
  .demo-chip {
    font-size: 9px;
    margin-left: 8px;
  }
}
/* Full management modules */
.role-switch {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.role-switch select {
  margin: 0;
  font-size: 10px;
  min-height: 30px;
  padding: 5px 8px;
  width: 108px;
}
.header-avatar {
  border: 1px solid #dce6df;
}
.heading-actions,
.toolbar-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filters label {
  min-width: 130px;
}
.filters label:first-child {
  min-width: 240px;
}
.filters input {
  width: 180px;
}
.filters input[name="query"] {
  width: 240px;
}
.filters select {
  width: 150px;
}
.filters {
  gap: 15px 18px;
  align-items: flex-end;
}
.filters label {
  font-size: 10px;
}
.row-actions {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -4px 0 5px #1e3e2810;
  min-width: 125px;
}
.required-mark {
  color: #b9905c;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid label:has(textarea) {
  grid-column: 1/-1;
}
.form-bottom {
  padding-top: 10px;
}
.form-error:empty {
  display: none;
}
.form-error {
  background: #fff0ed;
  color: #a85245;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #f0d2ca;
  border-radius: 7px;
  font-size: 12px;
}
.drawer {
  width: min(720px, 100%);
}
.drawer .page-tabs {
  margin: -5px -5px 23px;
  padding: 0;
}
.page-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  overflow: auto;
  white-space: nowrap;
}
.page-tabs button {
  border: 0;
  background: none;
  padding: 14px 14px;
  font-size: 12px;
  color: #8a9a90;
  border-bottom: 2px solid transparent;
}
.page-tabs button.active {
  color: #177350;
  border-bottom-color: #177350;
}
.section-title {
  font-size: 13px;
  margin: 26px 0 15px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.impact-box {
  padding: 16px;
  border: 1px solid #e7ede7;
  background: #f7f9f5;
  border-radius: 7px;
  color: #7e927e;
  font-size: 11px;
  margin: 20px 0;
  line-height: 1.8;
}
.impact-box h3 {
  font-size: 12px;
}
.impact-box p {
  margin: 8px 0 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
}
.check-label input,
.permission-grid input,
.row-check {
  display: inline-block;
  min-height: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #16845f;
}
.drawer-body pre {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  background: #f6f8f6;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
  max-height: 400px;
  overflow: auto;
}
.mini-empty {
  padding: 30px;
  color: #9caf9f;
  text-align: center;
}
.balance-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}
.asset-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px 12px;
  font-size: 11px;
}
.asset-card.selected {
  border-color: #54a87e;
  background: #edf8ef;
}
.asset-symbol {
  display: inline-grid;
  place-items: center;
  background: #f0f7ef;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 10px;
  font-weight: 600;
  color: #75a083;
  margin-right: 7px;
}
.asset-card > span:last-child {
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-top: 15px;
}
.asset-card small {
  display: block;
  font-size: 8px;
  color: #a5afa4;
  margin-top: 6px;
  font-weight: 400;
}
.zero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.zero-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.zero-stats span {
  display: block;
  font-size: 11px;
  color: #96a89a;
}
.zero-stats strong {
  font-size: 25px;
  font-weight: 550;
  display: block;
  margin-top: 13px;
}
.zero-stats small {
  display: block;
  color: #aab7aa;
  font-size: 9px;
  margin-top: 9px;
}
.drawer .zero-stats {
  grid-template-columns: 1fr 1fr;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.related-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 10px;
}
.related-card span {
  font-size: 11px;
  color: #7f9687;
}
.related-card strong {
  font-size: 23px;
  font-weight: 500;
}
.related-card small {
  font-size: 9px;
  color: #9baca1;
}
.timeline > div {
  padding: 15px 0 15px 20px;
  border-left: 2px solid #d6eade;
  position: relative;
}
.timeline > div:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 19px;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  background: #77ae8b;
}
.timeline strong {
  font-size: 12px;
}
.timeline small {
  display: block;
  font-size: 9px;
  color: #8aa291;
  margin-top: 8px;
}
.timeline p {
  font-size: 11px;
  color: #809786;
}
.timeline summary {
  font-size: 10px;
  color: #699277;
  cursor: pointer;
}
.permission-grid details {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
  padding: 10px;
}
.permission-grid summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #497456;
}
.permission-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  align-items: center;
}
.permission-row strong {
  font-size: 10px;
  font-weight: 450;
}
.permission-row > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.permission-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 9px;
}
.calculation {
  border: 1px solid var(--line);
  background: #f9fbf8;
  padding: 20px;
  border-radius: 9px;
  margin: 20px 0;
}
.calculation h3 {
  font-size: 13px;
}
.calculation p {
  font-size: 11px;
  color: #809886;
}
.calculation-values {
  display: flex;
  gap: 30px;
  padding: 15px 0;
  font-size: 11px;
  color: #9aaf9d;
}
.calculation-values b {
  display: block;
  font-size: 22px;
  color: #567f60;
  font-weight: 500;
  margin-top: 8px;
}
.calculation .info-banner {
  margin-bottom: 0;
}
.collection-wallet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-bottom: 22px;
  gap: 15px;
}
.collection-wallet small {
  display: block;
  color: #9bab9d;
  font-size: 10px;
  margin-bottom: 9px;
}
.collection-wallet strong {
  font-size: 12px;
  font-weight: 500;
  color: #607766;
}
.category-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.request-cards details {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.price-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  text-align: center;
  position: relative;
  background: repeating-linear-gradient(
    0deg,
    #fff,
    #fff 38px,
    #eef3ef 39px,
    #fff 40px
  );
  color: #93a69a;
  border: 1px solid var(--line);
}
.price-empty strong {
  font-size: 13px;
  font-weight: 500;
}
.price-empty p {
  font-size: 11px;
}
.preview-image {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 9px;
  background: #f4f7f3;
}
.image-placeholder {
  height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #d3e0d5;
  background: #f8faf6;
  border-radius: 8px;
  color: #a6b7a8;
  font-size: 12px;
}
.content-preview h2 {
  font-size: 20px;
}
.content-preview p {
  font-size: 12px;
  white-space: pre-wrap;
}
.tree {
  overflow: auto;
}
.tree-branches {
  align-items: flex-start;
  min-width: max-content;
}
.tree-node {
  min-width: 210px;
}
.tree-node p {
  font-size: 10px;
  color: #95a697;
  margin: 10px 0;
}
.tree-performance {
  font-size: 9px;
  color: #8ba78f;
  margin: 10px 0;
}
.tree-node > button.button {
  display: block;
  margin: 15px auto 0;
}
.tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tree-branches .tree-branch {
  max-width: 245px;
}
.drawer-body label small {
  display: block;
  margin: 8px 0;
  color: #94a399;
  font-size: 10px;
}
.drawer-body input[disabled] {
  background: #f6f8f5;
}
.row-check {
  appearance: auto;
}
.balance-grid + .panel {
  margin-top: 10px;
}
@media (max-width: 1250px) {
  .balance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .toolbar-actions {
    gap: 5px;
  }
  .header-right {
    gap: 12px;
  }
  .role-switch {
    font-size: 8px;
  }
}
@media (max-width: 850px) {
  .heading-actions {
    max-width: 160px;
  }
  .list-toolbar {
    align-items: flex-start;
    gap: 15px;
  }
  .toolbar-actions {
    max-width: 280px;
  }
  .tree-branches {
    flex-direction: row;
    align-items: flex-start;
  }
  .tree-branches .tree-node:before {
    display: block;
  }
  .tree-branches {
    padding-top: 50px;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .role-switch {
    font-size: 0;
  }
  .role-switch select {
    font-size: 9px;
    width: 90px;
  }
  .header-right {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
    margin-left: 10px;
  }
  .balance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .balance-grid .asset-card:last-child {
    grid-column: 1/-1;
  }
  .zero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .zero-stats > div {
    padding: 14px;
  }
  .zero-stats strong {
    font-size: 22px;
  }
  .filters label,
  .filters label:first-child {
    min-width: 0;
    width: calc(50% - 10px);
  }
  .filters label:first-child {
    width: 100%;
  }
  .filters input,
  .filters select,
  .filters input[name="query"] {
    width: 100%;
  }
  .filters {
    padding: 18px;
    gap: 14px 16px;
  }
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-actions {
    max-width: 100%;
    justify-content: flex-start;
  }
  .heading {
    gap: 10px;
  }
  .heading h1 {
    font-size: 22px;
  }
  .demo-chip {
    display: none;
  }
  .heading-actions {
    max-width: 130px;
  }
  .heading-actions .button {
    font-size: 10px;
    padding: 9px;
  }
  .drawer-body {
    padding: 22px 18px;
  }
  .drawer-head {
    padding: 22px 18px;
  }
  .drawer h2 {
    font-size: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .permission-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tree {
    padding: 30px 18px;
  }
  .tree-branches {
    padding-top: 45px;
  }
  .tree-node {
    width: 205px;
    min-width: 205px;
  }
  .page-tabs {
    padding: 0 12px;
  }
  .page-tabs button {
    font-size: 11px;
    padding: 13px 10px;
  }
  .collection-wallet {
    padding: 15px;
  }
  .collection-wallet strong {
    font-size: 10px;
  }
  .collection-wallet .button {
    font-size: 10px;
    padding: 9px;
  }
  .sidebar {
    visibility: hidden;
  }
  .sidebar.visible {
    visibility: visible;
  }
  .env {
    display: none;
  }
}
.operator-switch select {
  width: 100px;
}
.quote-chart {
  margin: 20px 0;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 9px;
}
.quote-chart figcaption {
  font-size: 11px;
  color: #8b9f91;
  margin-bottom: 15px;
}
.quote-chart svg {
  width: 100%;
  height: auto;
}
@media (max-width: 1100px) {
  header .timezone {
    display: none;
  }
  .header-right {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .operator-switch select {
    width: 80px;
  }
  .header-avatar {
    display: none;
  }
  .header-right {
    gap: 7px;
  }
  .breadcrumb {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.structured-list { display:grid; gap:12px; min-width:0; }
.structured-list section { padding:12px; border:1px solid var(--border,#e1e7e3); border-radius:10px; overflow-wrap:anywhere; }
.drawer dd { overflow-wrap:anywhere; min-width:0; }
.drawer dd dl { margin:0; }
.filters { flex-wrap:wrap; }
#approval-review-form { display:grid; gap:14px; margin-top:24px; padding-top:20px; border-top:1px solid #e1e7e3; }

/* TEST backend contract views reuse the existing admin shell. */
.test-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;padding:18px;background:var(--surface,#fff);border:1px solid var(--border,#e5e7eb);border-radius:12px;margin:18px 0;align-items:end}
.test-filter-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#526274}
.test-filter-grid input,.test-filter-grid select{min-width:0;width:100%;padding:9px;border:1px solid #dce1e7;border-radius:6px;background:#fff}
.test-warning{color:#b42318!important;font-weight:600}.test-deleted{opacity:.55}main>.detail-actions{margin:16px 0}main>.table-scroll td{max-width:320px;overflow-wrap:anywhere}main details{padding:12px;border:1px solid #e8ecf0;border-radius:8px;margin:12px 0}main details summary{cursor:pointer}.detail-grid dd{overflow-wrap:anywhere;white-space:pre-wrap}.form-grid textarea{min-height:80px}

/* Keep review comments readable beside their action buttons. */
main > .table-scroll td.test-long-text {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 220px;
  max-width: 360px;
  line-height: 1.7;
  vertical-align: top;
}
main > .table-scroll td:last-child { min-width: 150px; }
main > .table-scroll td .detail-actions { align-items: flex-start; }
main > .table-scroll td .detail-actions button { white-space: nowrap; }

.qa-panel.info-banner { display: block; min-width: 0; }
.qa-panel h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
.qa-panel.info-banner p { margin: 10px 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.7; }
.qa-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.qa-panel-actions .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 600px) { .qa-panel-actions { display: grid; grid-template-columns: minmax(0,1fr); } .qa-panel-actions .button { width: 100%; } }

.deposit-address-card{display:grid;grid-template-columns:minmax(0,1fr) 208px;gap:24px;align-items:start;margin:20px 0;padding:22px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}.deposit-address-card h2{font-size:18px;margin:0 0 12px}.deposit-address-card p{line-height:1.7}.deposit-network{font-weight:600;color:#126651}.deposit-network-warning{background:#fff5e6;color:#874500;border:1px solid #f0d2a0;padding:12px;border-radius:8px}.deposit-address-text{display:block;padding:12px;background:#f3f6f5;border-radius:6px;overflow-wrap:anywhere;white-space:normal;font-size:13px;line-height:1.7;user-select:all}.deposit-address-qr{margin:0;max-width:208px}.deposit-address-qr svg{display:block;width:100%;height:auto;background:white}.deposit-address-qr figcaption{font-size:12px;line-height:1.6;color:#61716a;margin-top:8px}@media(max-width:600px){.deposit-address-card{grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}.deposit-address-qr{width:208px;max-width:100%;justify-self:center}}

@font-face { font-family: "Admin Rajdhani"; src: url("/public/fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
.brand { gap: 8px; padding-inline: 4px; }
.brand-icon { flex: 0 0 32px; width: 32px; height: 32px; }
.brand-copy { min-width: 0; }
.brand-wordmark { display: block; white-space: nowrap; font-family: "Admin Rajdhani", sans-serif; font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -0.6px; color: #101518; }
.brand-link { color: #083d29; }
.brand-dot { color: #101518; }
.brand small { font-size: 10px; letter-spacing: 1.5px; }
