:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #263530;
  background: #f6f8f8;
  font-synthesis: none;
  font-size: 14px;
  --green:#167c64;
  --green-dark:#11624f;
  --muted:#8b9692;
  --line:#e9eeec;
  --surface:#fff;
  --red:#c75151;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  display: block;
}
button svg {
  flex-shrink: 0;
}
::selection {
  background: #c8eddf;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  padding: 12px;
  background: #fff;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 18px 22px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 12px 31px;
}
.brand-mark {
  height: 39px;
  width: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #167c64;
  color: #fff;
  box-shadow: 0 4px 9px #167c6418;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.7px;
  color: #a0aaa5;
  margin-top: 5px;
}
.nav-label {
  color: #a1aaa6;
  font-size: 11px;
  padding: 13px 14px 12px;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 7px;
  margin-bottom: 5px;
  transition: background .18s, color .18s;
  color: #718079;
  font-size: 13px;
  position: relative;
}
.nav-item:hover {
  background: #f5f8f6;
  color: var(--green);
}
.nav-item.active {
  color: var(--green);
  background: #eaf5ef;
  font-weight: 600;
}
.nav-item.active:after {
  content: "";
  height: 5px;
  width: 5px;
  background: var(--green);
  border-radius: 50%;
  margin-left: auto;
}
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
  background: #edf1ef;
  padding: 2px 6px;
  border-radius: 4px;
  color: #7d8982;
}
.sidebar-spacer {
  flex: 1;
  min-height: 40px;
}
.sidebar-note {
  background: #f6f9f7;
  border: 1px solid #eaf0ec;
  border-radius: 8px;
  padding: 13px 12px;
  margin: 0 7px 24px;
  line-height: 1.7;
  font-size: 11px;
  color: #8b9890;
}
.sidebar-note strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #607969;
  font-weight: 500;
  margin-bottom: 4px;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 20px 11px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #e9efeb;
  color: #5a7566;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}
.sidebar-footer strong {
  font-size: 12px;
  font-weight: 500;
}
.sidebar-footer small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #a0aaa5;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 37px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #a1aba5;
}
.breadcrumb strong {
  color: #5d6b64;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e8ece9;
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 5px;
  color: #7b8880;
  background: #fff;
}
.dot {
  width: 6px;
  height: 6px;
  background: #2b9b75;
  display: inline-block;
  border-radius: 50%;
}
.icon-btn {
  padding: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #839087;
}
.icon-btn:hover {
  background: #f0f5f2;
  color: #167c64;
}
.topbar-divider {
  width: 1px;
  height: 21px;
  background: var(--line);
}
.mobile-menu {
  display: none;
}
.main {
  padding: 31px 37px 0;
  max-width: 1650px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: #8e9d94;
  margin: 0 0 10px;
}
.page-heading h1 {
  font-size: 25px;
  letter-spacing: .4px;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.page-heading p {
  font-size: 12px;
  color: #929e96;
  margin: 10px 0 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e8e3;
  border-radius: 6px;
  padding: 9px 13px;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 500;
  min-height: 35px;
}
.btn:hover {
  background: #f6f9f7;
  border-color: #b9ccc0;
}
.btn.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.btn.primary:hover {
  background: #126a55;
}
.btn.danger {
  color: #c34f4f;
  border-color: #e8c9c9;
  background: #fff;
}
.btn.danger:hover {
  background: #fff3f3;
}
.btn.danger.solid {
  background: #bd4545;
  border-color: #bd4545;
  color: #fff;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: #7e8d83;
}
.btn.text {
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--green);
  background: none;
}
.intro-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1ece5;
  background: #f0f7f3;
  border-radius: 7px;
  padding: 11px 15px;
  color: #6f887a;
  font-size: 11px;
  margin-bottom: 23px;
}
.intro-strip svg {
  color: #65a28a;
}
.intro-strip .text-link {
  margin-left: auto;
  white-space: nowrap;
  color: var(--green);
  font-size: 11px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 21px 17px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8b978e;
  font-size: 12px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: #5c8d77;
  background: #f0f6f2;
}
.stat-icon.blue {
  color: #6c8eac;
  background: #f0f5fa;
}
.stat-icon.orange {
  color: #c39756;
  background: #fcf7ef;
}
.stat-icon.purple {
  color: #9388b5;
  background: #f5f2f9;
}
.stat-value {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -.7px;
  margin: 12px 0 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #263d31;
}
.stat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #9ca69f;
  gap: 4px;
}
.stat-hint {
  display: flex;
  gap: 5px;
  align-items: center;
}
.stat-hint b {
  font-weight: 500;
  color: #71947e;
}
.spark {
  width: 74px;
  height: 25px;
  color: #8bc1a3;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(290px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  min-width: 0;
}
.panel-header {
  padding: 22px 23px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-header h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  letter-spacing: .2px;
}
.panel-header p {
  font-size: 10px;
  color: #a0aaa3;
  margin: 7px 0 0;
}
.panel-header .caption {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #96a29a;
  font-size: 10px;
}
.panel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.select {
  border: 1px solid #e2e8e3;
  border-radius: 5px;
  padding: 7px 27px 7px 10px;
  color: #667a6b;
  background: #fff;
  font-size: 11px;
  min-height: 32px;
}
.chart-tab-group {
  display: flex;
  gap: 17px;
  margin: 22px 23px 0;
  border-bottom: 1px solid #edf1ee;
}
.chart-tab {
  font-size: 11px;
  color: #95a198;
  padding: 0 0 11px;
  position: relative;
}
.chart-tab.active {
  color: var(--green);
  font-weight: 600;
}
.chart-tab.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}
.chart-legend {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #8b9990;
  margin-left: auto;
}
.chart-legend .dot {
  width: 5px;
  height: 5px;
}
.chart-container {
  padding: 10px 18px 12px;
  position: relative;
}
.trend-chart {
  width: 100%;
  height: 235px;
  overflow: visible;
}
.trend-chart text {
  font-family: inherit;
  fill: #a1aca5;
  font-size: 9px;
}
.trend-chart .chart-point {
  cursor: crosshair;
}
.trend-chart .chart-point:hover {
  fill: #167c64;
  stroke: #fff;
  stroke-width: 3;
  r: 5;
}
.chart-tooltip {
  display: none;
  position: absolute;
  pointer-events: none;
  padding: 8px 10px;
  font-size: 11px;
  background: #254d3d;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 12px #203c3018;
  z-index: 2;
  white-space: nowrap;
}
.chart-summary {
  border-top: 1px solid #f0f3f1;
  display: flex;
  gap: 30px;
  margin: 0 23px;
  padding: 13px 0;
  color: #9ba69e;
  font-size: 10px;
}
.chart-summary strong {
  color: #4c6655;
  font-size: 12px;
  margin-left: 7px;
  font-weight: 500;
}
.region-bars {
  padding: 25px 23px 8px;
}
.region-bar-row {
  margin-bottom: 21px;
}
.region-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #6d8073;
  margin-bottom: 9px;
}
.region-bar-meta span:last-child {
  font-size: 11px;
  color: #85978a;
  font-variant-numeric: tabular-nums;
}
.bar-bg {
  height: 5px;
  background: #f0f4f1;
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 5px;
  background: #469f7f;
}
.region-total {
  border-top: 1px solid #eff2f0;
  margin: 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: #9aa69d;
  font-size: 10px;
}
.region-total b {
  color: #5c7865;
  font-weight: 500;
}
.table-panel {
  overflow: hidden;
}
.table-panel .panel-header {
  padding-bottom: 21px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 11px;
}
thead {
  background: #f8faf8;
  color: #94a198;
  font-weight: 400;
}
th {
  font-weight: 400;
  padding: 12px 22px;
  border-bottom: 1px solid #edf1ee;
  font-size: 10px;
}
td {
  padding: 14px 22px;
  border-bottom: 1px solid #f0f3f1;
  color: #7f8f84;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfb;
}
.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-cell .avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--avatar-bg,#ecf2ed);
  color: var(--avatar-color,#62816c);
  font-size: 11px;
}
.player-cell strong {
  display: block;
  font-weight: 500;
  color: #54695c;
  font-size: 11px;
}
.player-cell small {
  display: block;
  font-size: 9px;
  line-height: 1.7;
  color: #a5afa8;
}
.mono {
  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 10px;
  letter-spacing: .1px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 10px;
  background: #f0f4f1;
  color: #809188;
  line-height: 1.1;
}
.status .dot {
  width: 4px;
  height: 4px;
}
.status.ACTIVE {
  color: #59957c;
  background: #edf7f1;
}
.status.SETTLED {
  color: #78908a;
  background: #f0f5f3;
}
.status.ABANDONED {
  color: #a39479;
  background: #f7f4ef;
}
.status.ABANDONED .dot {
  background: #bea77c;
}
.status.SETTLED .dot {
  background: #9eb6a9;
}
.row-action {
  font-size: 11px;
  color: #6a9681;
  padding: 4px 0;
}
.row-action:hover {
  text-decoration: underline;
}
.quick-list {
  padding: 10px 23px 4px;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f3f1;
  width: 100%;
  text-align: left;
}
.quick-item:last-child {
  border: 0;
}
.quick-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3f7f3;
  color: #6e9681;
}
.quick-item strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #657b6b;
}
.quick-item small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #a4aea7;
}
.quick-item > svg {
  margin-left: auto;
  color: #a7b8ad;
}
.quick-item:hover strong {
  color: var(--green);
}
.quick-note {
  padding: 11px 23px 20px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #a4afa6;
  font-size: 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 19px 0 22px;
  color: #acb4af;
  font-size: 10px;
  gap: 10px;
}
.page-footer span:last-child {
  letter-spacing: .6px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #e1e7e3;
  border-radius: 6px;
  padding: 0 11px;
  background: white;
  color: #96a59b;
  min-width: 250px;
}
.search input {
  border: 0;
  outline: none;
  background: none;
  padding: 10px 0;
  color: #42594b;
  width: 100%;
  font-size: 12px;
}
.search input::placeholder {
  color: #a3aea7;
}
.toolbar-count {
  margin-left: auto;
  color: #99a79e;
  font-size: 11px;
}
.table-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #99a69d;
  gap: 14px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pagination button {
  padding: 6px 10px;
  border: 1px solid #e2e8e3;
  border-radius: 4px;
  background: white;
  font-size: 11px;
  min-width: 29px;
}
.pagination button.current {
  background: #eaf5ef;
  border-color: #d8eade;
  color: var(--green);
}
.empty {
  padding: 65px 24px;
  text-align: center;
  color: #a1ada4;
  font-size: 12px;
  line-height: 1.9;
}
.empty svg {
  margin: 0 auto 13px;
  color: #a4bbae;
}
.empty strong {
  display: block;
  color: #6d8273;
  font-size: 14px;
  margin-bottom: 7px;
  font-weight: 500;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.region-card {
  position: relative;
  overflow: hidden;
  padding: 23px;
}
.region-card h2 {
  font-size: 15px;
  margin: 3px 0 7px;
  font-weight: 500;
}
.region-card .region-code {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #9faea4;
  text-transform: uppercase;
}
.region-card-visual {
  width: 70px;
  height: 70px;
  color: #90b4a0;
  position: absolute;
  right: 14px;
  top: 14px;
  opacity: .65;
}
.region-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 31px 0 22px;
}
.region-numbers label {
  display: block;
  font-size: 10px;
  color: #9aa89d;
  margin-bottom: 8px;
}
.region-numbers strong {
  font-size: 20px;
  color: #446653;
  font-weight: 500;
}
.region-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #9aa89f;
  padding-top: 15px;
  margin-top: 17px;
  border-top: 1px solid var(--line);
}
.region-progress {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #8ba191;
  margin-bottom: 9px;
}
.config-tabs {
  display: flex;
  gap: 8px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.config-tabs button {
  font-size: 12px;
  color: #8a9c90;
  padding: 8px 15px;
  border-radius: 5px;
}
.config-tabs button.active {
  background: #eaf4ef;
  color: var(--green);
}
.code-view {
  margin: 0;
  max-height: 600px;
  overflow: auto;
  padding: 25px;
  color: #536f5e;
  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 11px;
  line-height: 1.9;
  background: #fcfdfc;
}
.config-note {
  padding: 15px 22px;
  color: #98a79c;
  font-size: 11px;
  line-height: 1.8;
}
.connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  gap: 22px;
  max-width: 1050px;
}
.connection-form {
  padding: 25px;
}
.field {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  color: #657d6c;
}
.field input {
  display: block;
  width: 100%;
  border: 1px solid #dfe7e1;
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
  color: #496251;
  background: #fcfdfc;
}
.field small {
  display: block;
  font-size: 10px;
  color: #a0ada4;
  margin-top: 9px;
  line-height: 1.8;
}
.connection-help {
  padding: 25px;
  line-height: 1.9;
  font-size: 12px;
  color: #8d9e92;
}
.connection-help h3 {
  font-size: 13px;
  color: #5f7968;
  font-weight: 500;
  margin: 0 0 12px;
}
.connection-help code {
  background: #f1f5f2;
  color: #6d8976;
  padding: 3px 5px;
  font-size: 10px;
  border-radius: 3px;
  word-break: break-all;
}
.connection-help p {
  margin: 12px 0;
}
.connection-error {
  background: #fff3f1;
  border: 1px solid #f1d8d4;
  color: #b6645a;
  border-radius: 5px;
  font-size: 11px;
  padding: 12px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: #162c2260;
  z-index: 60;
  animation: fade-in .18s;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 520px;
  max-width: 100%;
  background: #fff;
  z-index: 61;
  box-shadow: -10px 0 50px #1734251a;
  overflow: auto;
  animation: slide-in .22s;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
}
.drawer-content {
  padding: 27px;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.profile-summary .avatar {
  height: 52px;
  width: 52px;
  border-radius: 13px;
  font-size: 20px;
}
.profile-summary h3 {
  font-size: 19px;
  margin: 0 0 7px;
  font-weight: 500;
}
.profile-summary p {
  font-size: 11px;
  color: #9caaa0;
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px;
  margin-bottom: 30px;
  padding: 23px;
  background: #f7faf8;
  border-radius: 7px;
}
.detail-grid label {
  display: block;
  font-size: 10px;
  color: #98a89c;
  margin-bottom: 7px;
}
.detail-grid span {
  font-size: 12px;
  color: #5a7563;
  word-break: break-all;
}
.detail-grid .full {
  grid-column: 1/-1;
}
.section-title {
  font-size: 12px;
  color: #728979;
  font-weight: 500;
  margin: 27px 0 12px;
}
.mini-run {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #789080;
}
.mini-run small {
  font-size: 9px;
  color: #a1ada5;
  display: block;
  margin-top: 5px;
}
.danger-zone {
  border: 1px solid #efd9d7;
  padding: 19px;
  border-radius: 7px;
  margin-top: 35px;
}
.danger-zone h3 {
  color: #b9645f;
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 10px;
}
.danger-zone p {
  font-size: 11px;
  color: #ab8f8b;
  line-height: 1.9;
  margin: 0 0 16px;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 470px;
  max-width: calc(100% - 32px);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  z-index: 65;
  box-shadow: 0 25px 100px #152e2230;
}
.modal h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 16px 0 12px;
}
.modal p {
  font-size: 12px;
  line-height: 1.9;
  color: #8c9a90;
  margin: 0 0 18px;
}
.danger-icon {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #fff0ed;
  color: #cb7265;
  display: grid;
  place-items: center;
}
.delete-list {
  background: #fcf8f6;
  color: #ae8980;
  padding: 13px 15px;
  font-size: 11px;
  line-height: 2;
  border-radius: 6px;
  margin-bottom: 20px;
}
.confirmation-id {
  display: block;
  margin: 9px 0;
  padding: 8px;
  background: #f6f8f6;
  border-radius: 4px;
  color: #7e9285;
  user-select: all;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}
.modal .field {
  margin-bottom: 0;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: calc(50% + 80px);
  transform: translateX(-50%) translateY(12px);
  border: 1px solid #dcebe1;
  background: #fff;
  color: #55816a;
  padding: 13px 21px;
  border-radius: 8px;
  box-shadow: 0 8px 35px #233e2c12;
  z-index: 100;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  font-size: 12px;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.error-panel {
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #eddcd6;
  border-radius: 9px;
  line-height: 1.9;
  color: #a8867d;
}
.error-panel h2 {
  font-size: 16px;
  font-weight: 500;
  color: #946c61;
}
.error-panel p {
  font-size: 12px;
}
.loading {
  height: 280px;
  display: grid;
  place-items: center;
  color: #9fb2a5;
  font-size: 12px;
}
.spinner {
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 2px solid #e0ece4;
  border-top-color: #4b9a74;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
.body-locked {
  overflow: hidden;
}
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}
.login-story {
  display: flex;
  flex-direction: column;
  padding: 42px 58px 28px;
  background: radial-gradient(ellipse at 65% 52%, #e0eee5 0, transparent 63%), #f0f6f2;
  border-right: 1px solid #e5eee8;
  overflow: hidden;
}
.login-brand {
  padding: 0;
  align-self: flex-start;
}
.login-brand .brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 13px;
}
.login-brand strong {
  font-size: 18px;
}
.login-brand small {
  color: #81998c;
}
.login-story-content {
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 64px 0 46px;
}
.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6e8e7c;
  font-size: 12px;
  letter-spacing: 2px;
}
.login-eyebrow > span {
  width: 20px;
  height: 1px;
  background: #74a28b;
}
.login-story h1 {
  font-weight: 500;
  font-size: clamp(37px, 3.7vw, 54px);
  line-height: 1.48;
  letter-spacing: 3px;
  margin: 20px 0 20px;
  color: #285c48;
}
.login-story h1 > span {
  color: #74a68e;
}
.login-story-content > p {
  font-size: 14px;
  line-height: 2;
  color: #7e998a;
  letter-spacing: .5px;
  margin: 0;
}
.login-art {
  position: relative;
  width: 100%;
  margin: 22px auto 18px;
  max-width: 520px;
}
.login-art > svg {
  width: 100%;
  height: auto;
}
.login-art-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-radius: 9px;
  border: 1px solid #dce9e0;
  background: #ffffffed;
  color: #5c7f6b;
  font-size: 11px;
  box-shadow: 0 8px 22px #285b4810;
  white-space: nowrap;
}
.login-art-tag .dot {
  width: 4px;
  height: 4px;
  background: #85b29b;
  margin-left: 7px;
}
.art-tag-players {
  top: 17%;
  left: 0;
}
.art-tag-battles {
  top: 35%;
  right: -3%;
}
.art-tag-regions {
  bottom: 11%;
  left: 7%;
}
.login-capabilities {
  display: flex;
  align-items: center;
  gap: 21px;
  color: #7a9987;
  font-size: 11px;
  letter-spacing: .5px;
}
.login-capabilities > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.login-capabilities > i {
  width: 1px;
  height: 11px;
  background: #cfdfd4;
}
.login-story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #93ab9c;
  font-size: 8px;
  letter-spacing: 1.7px;
  gap: 15px;
}
.login-panel {
  padding: 43px 52px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.login-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #b0bbb5;
  font-size: 8px;
  letter-spacing: 1.6px;
}
.login-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #94a69a;
  font-size: 10px;
  letter-spacing: .5px;
}
.login-form-wrap {
  width: 100%;
  max-width: 366px;
  margin: auto;
  padding: 64px 0 50px;
}
.login-welcome-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #eef6f1;
  border: 1px solid #e1eee5;
  margin-bottom: 28px;
}
.login-form-wrap > .eyebrow {
  color: #96ad9f;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.login-form-wrap h2 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 1px;
  color: #2b4738;
  margin: 0 0 12px;
}
.login-subtitle {
  color: #96a39b;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 32px;
}
.login-field {
  display: block;
  font-size: 12px;
  color: #62776a;
  font-weight: 500;
  margin-bottom: 22px;
}
.login-input {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e0e8e2;
  background: #fcfdfc;
  border-radius: 7px;
  margin-top: 10px;
  padding: 0 14px;
  color: #97ada0;
  transition: border-color .2s, box-shadow .2s;
}
.login-input:focus-within {
  border-color: #7cae96;
  box-shadow: 0 0 0 3px #167c6409;
  background: #fff;
}
.login-input > svg {
  flex-shrink: 0;
}
.login-input > input {
  min-width: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: #385e49;
  font-size: 12px;
  padding: 0;
}
.login-input > input:focus-visible {
  outline: none;
}
.login-input > input::placeholder {
  color: #b2beb6;
  font-weight: 400;
}
.password-toggle {
  font-size: 10px;
  color: #8aa192;
  white-space: nowrap;
  padding: 8px 0 8px 6px;
}
.password-toggle:hover {
  color: var(--green);
}
.login-session-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9baa9f;
  font-size: 10px;
  margin: -1px 0 23px;
  line-height: 1.7;
}
.login-session-hint svg {
  flex-shrink: 0;
}
.login-submit {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: var(--green);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 16px #167c6415;
  transition: background .2s, transform .2s;
}
.login-submit:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.login-submit .spinner {
  width: 14px;
  height: 14px;
  border-color: #ffffff40;
  border-top-color: #fff;
}
.login-account-help {
  font-size: 10px;
  line-height: 1.8;
  color: #a4b0a8;
  text-align: center;
  margin: 15px 0 30px;
}
.login-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #adbab1;
  font-size: 9px;
}
.login-panel-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.login-error,
.login-retry,
.login-notice {
  border: 1px solid #e0ebe3;
  border-radius: 6px;
  padding: 11px 13px;
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 1.8;
  color: #6e8e7a;
  background: #f6faf7;
}
.login-error[hidden] {
  display: none;
}
.login-error {
  color: #b15c52;
  background: #fff5f2;
  border-color: #f0ddd7;
}
.login-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.login-notice > svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.login-notice .spinner {
  flex-shrink: 0;
  margin: 2px 0 0;
}
.login-retry p {
  margin: 0 0 7px;
}
.login-retry button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 11px;
}
.account-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7d9183;
  font-size: 11px;
}
.logout-btn {
  border: 1px solid #e3ebe6;
  border-radius: 5px;
  padding: 7px 10px;
  font-size: 11px;
  color: #7a8d80;
  white-space: nowrap;
}
.logout-btn:hover {
  color: var(--green);
  border-color: #b9d4c5;
  background: #f8fbf9;
}
.session-content {
  padding: 25px;
}
.session-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.session-profile > div {
  min-width: 0;
}
.session-profile strong {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: #54745f;
  overflow-wrap: anywhere;
}
.session-profile small {
  display: block;
  color: #99a99e;
  font-size: 10px;
  margin-top: 5px;
}
.session-profile > .status {
  margin-left: auto;
  flex-shrink: 0;
}
.session-details {
  font-size: 11px;
  margin: 25px 0;
}
.session-details > div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 16px;
  margin: 18px 0;
  line-height: 1.8;
}
.session-details dt {
  color: #9aaba0;
}
.session-details dd {
  margin: 0;
  color: #6b8875;
  overflow-wrap: anywhere;
}
.session-note {
  padding: 15px;
  background: #f6faf7;
  border: 1px solid #e9f0eb;
  border-radius: 6px;
  color: #91a396;
  font-size: 11px;
  line-height: 1.9;
  margin: 0 0 23px;
}
@media (min-width: 1600px) {
  .login-story {
    padding-left: 80px;
    padding-right: 80px;
  }
  .login-form-wrap {
    max-width: 390px;
  }
}
@media (max-width: 1100px) {
  .login-story {
    padding: 34px 36px 25px;
  }
  .login-panel {
    padding: 36px 36px 25px;
  }
  .login-capabilities {
    gap: 13px;
    font-size: 10px;
  }
  .login-art-tag {
    padding: 11px 12px;
    gap: 7px;
  }
  .login-story-footer {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .login-story-footer > span:last-child,
  .login-panel-top > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .login-page {
    display: flex;
    flex-direction: column;
  }
  .login-story {
    padding: 24px 26px;
    border-right: 0;
    border-bottom: 1px solid #e5eee8;
    flex-shrink: 0;
    background: #f2f7f3;
  }
  .login-story-content,
  .login-story-footer,
  .login-panel-top {
    display: none;
  }
  .login-brand .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }
  .login-brand strong {
    font-size: 17px;
  }
  .login-panel {
    padding: 0 27px 24px;
    min-height: calc(100vh - 88px);
    min-height: calc(100dvh - 88px);
  }
  .login-form-wrap {
    max-width: 400px;
    padding: 38px 0 36px;
  }
  .login-welcome-icon {
    display: none;
  }
  .login-form-wrap h2 {
    font-size: 28px;
  }
  .login-subtitle {
    margin-bottom: 29px;
  }
  .login-panel-footer {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .account-name {
    display: none;
  }
  .session-content {
    padding: 20px;
  }
  .session-details > div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }
  .topbar-right .icon-btn[data-action="help"] {
    display: none;
  }
  .logout-btn {
    padding: 6px 8px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-input {
    transition: none;
  }
  .login-submit:hover:not(:disabled) {
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (min-width:1550px) {
  .main {
    padding-top: 40px;
  }
  .stat-card {
    padding: 25px;
  }
  .trend-chart {
    height: 275px;
  }
  .region-bar-row {
    margin-bottom: 26px;
  }
}
@media (max-width:1200px) {
  .layout {
    grid-template-columns: 194px minmax(0, 1fr);
  }
  .sidebar {
    width: 194px;
    padding: 26px 12px 20px;
  }
  .brand {
    padding-left: 8px;
    gap: 9px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .main {
    padding: 25px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 17px 16px;
  }
  .stat-value {
    font-size: 26px;
  }
  .content-grid {
    gap: 17px;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  }
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .chart-tab-group {
    margin-left: 18px;
    margin-right: 18px;
  }
  .region-bars {
    padding-left: 18px;
    padding-right: 18px;
  }
  .panel-controls {
    gap: 8px;
  }
  th,
  td {
    padding-left: 17px;
    padding-right: 17px;
  }
  .spark {
    width: 58px;
  }
  .chart-summary {
    gap: 16px;
  }
}
@media (max-width:980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .region-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .region-bar-row {
    margin-bottom: 21px;
  }
  .quick-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .quick-item {
    border-bottom: 0;
  }
  .quick-note {
    padding-top: 13px;
  }
  .panel-controls {
    gap: 8px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .spark {
    width: 45px;
  }
  .stat-value {
    font-size: 25px;
  }
  .topbar-right {
    gap: 10px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width:760px) {
  .layout {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 222px;
    box-shadow: 10px 0 30px #193b2510;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .breadcrumb {
    gap: 9px;
  }
  .topbar-right .time-label,
  .topbar-divider {
    display: none;
  }
  .main {
    padding: 24px 18px 0;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .heading-actions {
    gap: 7px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-value {
    font-size: 28px;
    margin: 10px 0 15px;
  }
  .spark {
    width: 65px;
  }
  .content-grid {
    gap: 18px;
    margin-bottom: 18px;
  }
  .intro-strip {
    align-items: flex-start;
    line-height: 1.8;
    padding: 10px 12px;
  }
  .intro-strip > svg {
    margin-top: 3px;
    flex-shrink: 0;
  }
  .intro-strip .text-link {
    margin-top: 2px;
  }
  .intro-strip .strip-detail {
    display: none;
  }
  .region-grid {
    gap: 14px;
  }
  .region-card {
    padding: 17px;
  }
  .region-card h2 {
    font-size: 14px;
  }
  .region-card-visual {
    width: 48px;
    height: 48px;
    right: 10px;
    top: 12px;
  }
  .region-numbers strong {
    font-size: 18px;
  }
  .region-meta {
    font-size: 9px;
    gap: 9px;
  }
  .region-meta span:last-child {
    white-space: nowrap;
  }
  .region-code {
    max-width: 100px;
    overflow: hidden;
  }
  .chart-summary {
    gap: 14px;
  }
  .toolbar {
    padding: 15px;
  }
  .search {
    flex: 1;
    min-width: 200px;
  }
  .toolbar-count {
    margin-left: 0;
  }
  .table-footer {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-footer {
    font-size: 9px;
    line-height: 1.8;
  }
  .page-footer span:last-child {
    display: none;
  }
  .toast {
    left: 50%;
  }
  .panel-header {
    padding-top: 18px;
  }
  .trend-chart {
    height: 220px;
  }
  .panel-header .caption {
    display: none;
  }
  .quick-list {
    grid-template-columns: 1fr;
  }
  .quick-item {
    border-bottom: 1px solid var(--line);
  }
  .connection-form {
    padding: 20px;
  }
}
@media (max-width:420px) {
  .region-grid {
    grid-template-columns: 1fr;
  }
  .heading-actions .btn {
    font-size: 11px;
    padding: 8px 10px;
  }
  .topbar-right {
    gap: 4px;
  }
  .env-badge {
    padding: 6px 8px;
    font-size: 10px;
  }
  .topbar-right > .icon-btn {
    display: none;
  }
  .chart-legend {
    display: none;
  }
  .region-bars {
    gap: 0 18px;
  }
  .panel-controls {
    gap: 5px;
  }
  .panel-header h2 {
    font-size: 13px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .spark {
    width: 50px;
  }
  .table-footer > span {
    width: 100%;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width:760px) {
  .trend-chart text {
    font-size: 17px;
  }
  .topbar-right .time-label {
    display: none !important;
  }
}
