:root {
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #192b29;
  background: #f5f7f6;
  font-synthesis: none;
  font-size: 14px;
  --green: #147c68;
  --green-dark: #0a5c4c;
  --muted: #75817e;
  --line: #e4eae7;
  --surface: #fff;
  --sidebar: #142a27;
}
.brand-image {
  width: 33px;
  height: 33px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field > label > input,
.field > label > textarea,
.field > label > select {
  margin-top: 8px;
}
.site-card .button-row {
  margin-top: 14px;
}
.site-card .button-row .btn {
  font-size: 10px;
  padding: 5px 7px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #75c4ad;
  outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #147c6812;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
svg.icon {
  height: 19px;
  width: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: Consolas, monospace;
  font-size: 12px;
}
.loading-screen {
  height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.shell {
  min-height: 100vh;
  padding-left: 232px;
}
.sidebar {
  background: var(--sidebar);
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  color: #b6c6c0;
  z-index: 20;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 0 12px;
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.logo-symbol {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #368d75;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}
.workspace-chip {
  margin: 28px 6px 25px;
  padding: 13px 12px;
  border: 1px solid #38504a;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.workspace-chip .workspace-avatar {
  width: 29px;
  height: 29px;
  background: #314740;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #c7e8db;
}
.workspace-chip strong {
  font-size: 12px;
  color: #e5f0eb;
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #788e86;
  padding: 0 15px;
  margin: 10px 0;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b5e52 transparent;
}
.sidebar > :not(.nav) { flex-shrink: 0; }
.nav a {
  color: #a5bbb1;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 7px;
  font-size: 13px;
}
.nav a:hover {
  background: #203c33;
  color: #fff;
}
.nav a.active {
  background: #315247;
  color: #f0fff6;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
}
.server-status {
  padding: 14px;
  border-top: 1px solid #31463e;
  color: #9db4a8;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #72b596;
  border-radius: 50%;
  display: inline-block;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #31463e;
}
.avatar {
  height: 34px;
  width: 34px;
  background: #edf2ef;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #49645a;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar .avatar {
  background: #2e4c40;
  color: #c7dbce;
}
.account-info {
  flex: 1;
  min-width: 0;
}
.account-info strong {
  display: block;
  max-width: 125px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #eef6f0;
  font-weight: 500;
}
.account-info small {
  display: block;
  color: #7f9c8b;
  margin-top: 4px;
  font-size: 10px;
}
.icon-button {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: inherit;
  border-radius: 5px;
}
.icon-button:hover {
  background: #ffffff12;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa8;
}
.breadcrumb {
  color: #87938e;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.breadcrumb strong {
  color: #30453c;
  font-weight: 500;
}
.topbar .domain {
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #65766c;
}
.topbar select {
  max-width: 220px;
  font-size: 12px;
  height: 34px;
}
.mobile-menu {
  display: none;
}
.content {
  padding: 34px 38px 25px;
  max-width: 1540px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #7b8c82;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 37px;
  padding: 9px 15px;
  background: #fff;
  color: #395046;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover {
  background: #f4f8f6;
  border-color: #bacdc2;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn.primary:hover {
  background: var(--green-dark);
}
.btn.danger {
  color: #b6534e;
}
.btn.small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}
.btn.ghost {
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--green);
}
.button-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.welcome-banner {
  background: #e9f1ec;
  border: 1px solid #dce8de;
  border-radius: 10px;
  padding: 23px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.welcome-banner p {
  font-size: 12px;
  color: #6c8576;
  line-height: 1.8;
  margin-top: 6px;
}
.welcome-art {
  font-family: Consolas, monospace;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #85a28e;
}
.welcome-art span {
  border: 1px solid #bdd2c2;
  border-radius: 7px;
  padding: 10px;
  font-size: 11px;
  background: #f3f7f3;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f9186;
  font-size: 11px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f3f6f3;
  color: #729180;
}
.stat-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 15px 0 8px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #7a8d80;
  margin-left: 4px;
}
.stat-caption {
  font-size: 10px;
  color: #8a998f;
}
.profit-stat > small {
  display: block;
  color: var(--muted);
  margin-bottom: 20px;
}
.profit-stat > strong {
  display: block;
  font-size: 26px;
  letter-spacing: -1px;
}
.profit-stat > strong > small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.positive {
  color: #398967;
}
.dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 14px;
}
.panel-heading p {
  font-size: 10px;
  color: #93a094;
  margin-top: 6px;
}
.chart {
  padding: 0 24px 18px;
}
.chart-key {
  font-size: 10px;
  color: #7b8f80;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-key .dot {
  background: #3f8a6a;
}
.chart-wrap {
  height: 194px;
  display: flex;
  gap: 12px;
}
.chart-axis {
  width: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #a2ada5;
  font-size: 9px;
  padding-bottom: 25px;
}
.chart-plot {
  flex: 1;
  min-width: 0;
}
.chart-plot svg {
  width: 100%;
  height: 165px;
  display: block;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #95a298;
  font-size: 9px;
  padding-top: 12px;
}
.quick-list {
  padding: 0 20px 12px;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #edf1ed;
  color: #385c48;
  font-size: 12px;
}
.quick-link span {
  flex: 1;
}
.quick-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #e8eee8;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #75967f;
}
.quick-link .icon {
  height: 16px;
  width: 16px;
}
.info-strip {
  padding: 15px 20px;
  background: #f6f8f5;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #92a08e;
  display: flex;
  gap: 8px;
  align-items: center;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.table-toolbar .search {
  flex: 1;
  min-width: 150px;
  max-width: 300px;
}
.table-toolbar select {
  font-size: 12px;
  max-width: 170px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #8e9e92;
  text-align: left;
  font-weight: 500;
  padding: 13px 22px;
  background: #fafbf9;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid #edf0eb;
  color: #506c59;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdfa;
}
td .primary-text {
  color: #2e4c38;
  font-weight: 500;
}
td small {
  display: block;
  color: #94a18f;
  font-size: 10px;
  margin-top: 4px;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.user-cell .avatar {
  width: 31px;
  height: 31px;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 4px;
  padding: 4px 7px;
  background: #edf5ef;
  color: #43805b;
  font-size: 10px;
}
.badge.warn {
  background: #fff5e5;
  color: #a38244;
}
.badge.danger {
  background: #faedeb;
  color: #b4685f;
}
.badge.neutral {
  background: #f0f2ee;
  color: #929b89;
}
.table-footer {
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #99a28f;
  font-size: 10px;
  gap: 12px;
}
.table-footer .button-row {
  gap: 5px;
}
.empty {
  text-align: center;
  padding: 48px 25px;
  color: #8e9b87;
  font-size: 12px;
  line-height: 1.9;
  white-space: normal;
}
.empty strong {
  display: block;
  color: #536e53;
  font-size: 14px;
  margin-bottom: 5px;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a0aa95;
  margin-top: 28px;
  gap: 10px;
}
.notice {
  padding: 13px 16px;
  background: #eff5ee;
  border: 1px solid #e0ebdb;
  border-radius: 7px;
  font-size: 12px;
  color: #6c8260;
  line-height: 1.8;
  margin-bottom: 20px;
}
.notice.warn {
  background: #fff8eb;
  border-color: #eee2c6;
  color: #a18b58;
}
.notice.error {
  background: #fff2ef;
  border-color: #f0d6ce;
  color: #a66a5c;
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-panel {
  padding: 24px;
}
.form-panel h2 {
  margin-bottom: 6px;
}
.form-panel > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
  font-size: 12px;
}
.form-grid .field {
  margin-bottom: 0;
}
.field label {
  font-weight: 500;
  color: #486447;
}
.field small {
  color: #8e9a82;
  font-size: 10px;
  line-height: 1.6;
}
.field input,
.field select,
.field textarea,
input.search {
  width: 100%;
  border: 1px solid #dfe6d9;
  background: #fff;
  color: #355036;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  min-height: 38px;
}
select {
  border: 1px solid #dfe6d9;
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  color: #486247;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field input::placeholder,
.search::placeholder {
  color: #b0b8a6;
}
.field input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--green);
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #637b55;
  margin: 17px 0;
}
.form-actions {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
  gap: 10px;
}
.secret-box {
  padding: 15px;
  background: #eff5ea;
  border: 1px solid #dce8d0;
  border-radius: 7px;
  word-break: break-all;
  line-height: 1.8;
  font:
    12px Consolas,
    monospace;
  color: #3b6b3e;
}
.recharge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  gap: 22px;
}
.presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.preset {
  padding: 20px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #718063;
  font-size: 12px;
}
.preset strong {
  display: block;
  font-size: 22px;
  color: #39553a;
  margin-bottom: 8px;
  font-weight: 550;
}
.preset.active {
  border-color: var(--green);
  background: #f1f7ed;
}
.preset.active strong {
  color: var(--green);
}
.balance-card {
  background: #183d2d;
  color: #cce0cd;
  border-radius: 9px;
  padding: 27px;
  margin-bottom: 20px;
}
.balance-card .balance {
  font-size: 37px;
  color: #f5fff0;
  margin: 16px 0 8px;
  letter-spacing: -1px;
}
.balance-card small {
  font-size: 11px;
  color: #8fb08c;
}
.subtle-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: #839276;
  font-size: 12px;
  line-height: 2.3;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.site-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.site-card .site-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.site-card .site-icon {
  height: 36px;
  width: 36px;
  background: #eff5e9;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #608652;
  margin-bottom: 18px;
}
.site-card h2 {
  font-size: 16px;
}
.site-card .domain-link {
  font-size: 11px;
  display: block;
  margin: 9px 0 20px;
  color: #8a9b7b;
  word-break: break-all;
}
.site-metrics {
  display: flex;
  gap: 25px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 17px;
}
.site-metrics small {
  display: block;
  color: #93a285;
  font-size: 10px;
  margin-bottom: 7px;
}
.site-metrics strong {
  font-size: 18px;
  font-weight: 550;
}
.site-card .button-row {
  justify-content: space-between;
}
.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.copy-row input {
  flex: 1;
  min-width: 0;
}
.tab-pills {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 25px;
}
.tab-pills button {
  background: none;
  border: 0;
  padding: 0 0 13px;
  color: #8b9c7d;
  font-size: 12px;
}
.tab-pills button.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.login-page {
  display: grid;
  grid-template-columns: minmax(350px, 0.95fr) minmax(450px, 1.05fr);
  min-height: 100vh;
}
.login-story {
  background: #142e25;
  padding: 50px 9%;
  color: #e6f3e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .logo {
  padding: 0;
}
.story-content {
  padding: 70px 0;
}
.story-label {
  color: #8ba98d;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 23px;
}
.story-content h1 {
  font-size: 43px;
  line-height: 1.5;
  letter-spacing: -1.3px;
  font-weight: 500;
}
.story-content p {
  font-size: 13px;
  color: #95b294;
  line-height: 2;
  margin-top: 22px;
  max-width: 340px;
}
.story-diagram {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 45px;
}
.story-diagram .node {
  height: 59px;
  min-width: 59px;
  border: 1px solid #496849;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #b1d0a8;
  font-size: 12px;
  padding: 12px;
}
.story-diagram .line {
  height: 1px;
  background: #486b45;
  flex: 1;
  max-width: 30px;
}
.story-footer {
  color: #658661;
  font-size: 10px;
  line-height: 1.8;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbf8;
  padding: 45px;
}
.login-box {
  width: 100%;
  max-width: 360px;
}
.login-domain {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e1e8d9;
  border-radius: 20px;
  color: #829674;
  padding: 6px 10px;
  font-size: 10px;
  margin-bottom: 24px;
}
.login-box h2 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.login-box > p {
  font-size: 12px;
  color: #97a289;
  margin-bottom: 30px;
  line-height: 1.8;
}
.login-box .btn {
  width: 100%;
  margin-top: 5px;
  min-height: 42px;
}
.login-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  color: #8f9d7f;
}
.login-switch button {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 12px;
  padding: 0 5px;
}
.login-error {
  font-size: 12px;
  line-height: 1.7;
  color: #b06d5c;
  margin-bottom: 15px;
  min-height: 1px;
}
.login-caption {
  text-align: center;
  font-size: 10px;
  color: #a4ad94;
  margin-top: 35px;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #132b2570;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
  backdrop-filter: blur(3px);
}
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 490px;
  max-height: 90vh;
  overflow: auto;
}
.modal.wide {
  max-width: 660px;
}
.modal-header {
  padding: 23px 25px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 17px;
}
.modal-body {
  padding: 23px 25px;
}
.modal-body > p {
  line-height: 1.8;
  color: #859477;
  font-size: 12px;
  margin-bottom: 20px;
}
.modal .form-actions {
  margin: 20px -25px -23px;
  padding: 17px 25px;
}
.modal pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f4f7ef;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  font-size: 11px;
  line-height: 1.8;
  color: #5b7950;
}
.error-inline {
  font-size: 12px;
  color: #af6956;
  line-height: 1.8;
  margin: 14px 0;
}
.route-error {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8a6e5b;
  line-height: 2;
}
.route-error strong {
  display: block;
  font-size: 20px;
}
#toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  max-width: 390px;
  background: #254a32;
  color: #edf7e5;
  padding: 14px 20px;
  border-radius: 9px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s;
  pointer-events: none;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
#toast.error {
  background: #925f4d;
}
.code-example {
  background: #183125;
  color: #b3cdaa;
  border-radius: 8px;
  padding: 20px;
  white-space: pre-wrap;
  overflow: auto;
  line-height: 1.8;
  font:
    11px Consolas,
    monospace;
  margin-top: 18px;
}
.mobile-backdrop {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .dashboard-main {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .chart-wrap {
    height: 220px;
  }
  .chart-plot svg {
    height: 190px;
  }
}
@media (max-width: 1150px) {
  .shell {
    padding-left: 205px;
  }
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stat-grid {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 25px;
  }
  .dashboard-main {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .site-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .welcome-art {
    display: none;
  }
  .login-story {
    padding: 40px 12%;
  }
  .story-content h1 {
    font-size: 35px;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 850px) {
  .shell {
    padding-left: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 232px;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #10291d70;
    z-index: 19;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .topbar .domain {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-main {
    grid-template-columns: 1fr;
  }
  .quick-panel {
    display: none;
  }
  .grid-two,
  .recharge-grid {
    grid-template-columns: 1fr;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-main {
    min-height: 100vh;
    padding: 30px;
  }
  .page-heading {
    gap: 15px;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading p {
    max-width: 300px;
    line-height: 1.7;
  }
  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar select {
    max-width: 160px;
  }
  .breadcrumb {
    gap: 7px;
  }
  .form-panel {
    padding: 20px;
  }
}
@media (max-width: 520px) {
  .site-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  .stat {
    padding: 15px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-caption {
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .presets {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar select {
    max-width: 130px;
  }
  .breadcrumb > span {
    display: none;
  }
  .footer {
    flex-direction: column;
    gap: 8px;
  }
  .welcome-banner {
    padding: 19px;
  }
  .welcome-banner h2 {
    font-size: 15px;
  }
  .modal-overlay {
    padding: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal .form-actions {
    margin: 20px -20px -20px;
    padding: 15px 20px;
  }
  .panel-heading {
    padding: 18px;
  }
  .table-footer {
    padding: 12px 16px;
  }
}
.shop-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.shop-card { padding:26px; display:flex; flex-direction:column; gap:16px; }
.shop-card-top,.shop-card-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.shop-product-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:13px; background:#edf6f0; color:var(--green); }
.shop-card h2 { font-size:18px; margin:0; line-height:1.5; }
.shop-card p { color:#64748b; line-height:1.7; margin:0; flex:1; }
.shop-card-bottom { margin-top:10px; }
.shop-card-bottom strong { font-size:25px; color:var(--green-dark); }
.shop-description { white-space:pre-wrap; overflow-wrap:anywhere; max-height:260px; overflow:auto; padding:16px; background:#f8fafc; border-radius:10px; font-size:13px; line-height:1.8; }
.secret-box { white-space:pre-wrap; overflow-wrap:anywhere; max-height:360px; overflow:auto; }
@media(max-width:760px) { .shop-grid {grid-template-columns:1fr;} .shop-card {padding:20px;} .shop-card-bottom {flex-wrap:wrap;} }
