:root {
  --bg: #f5f7fb;
  --bg-strong: #eef4ff;
  --surface: rgba(255, 255, 255, .94);
  --surface-strong: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #647083;
  --subtle: #8b95a7;
  --line: #dce3ee;
  --line-soft: #edf1f7;
  --blue: #2f6feb;
  --blue-2: #1f56c5;
  --cyan: #06a7b8;
  --green: #12805c;
  --orange: #a86500;
  --danger: #c43c2d;
  --shadow: 0 20px 48px rgba(23, 32, 51, .08);
  --shadow-soft: 0 12px 30px rgba(23, 32, 51, .06);
  --radius: 8px;
  color-scheme: light;
}

/* Compact server list v4 */
.server-list-mobile {
  display: none;
}

.responsive-server-list > .modal-backdrop {
  display: none;
}

.responsive-server-list > .modal-backdrop.open {
  display: none;
}

.compact-server-list {
  display: grid;
  gap: 16px;
}

.compact-server-list .metric-strip {
  margin-bottom: 0;
}

.server-list-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.server-list-hero h2 {
  margin: 4px 0 8px;
}

.server-list-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.server-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.server-list-panel {
  padding: 22px;
}

.compact-server-list .compact-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compact-server-card {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(47, 111, 235, .14);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.server-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 5px rgba(148, 163, 184, .12);
}

.server-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(18, 128, 92, .12);
}

.server-status-dot.offline {
  background: #c43c2d;
  box-shadow: 0 0 0 5px rgba(196, 60, 45, .12);
}

.compact-server-card .server-card-main {
  gap: 5px;
}

.compact-server-card .server-card-main strong {
  font-size: 17px;
  line-height: 1.25;
}

.compact-server-card .server-card-main span,
.compact-server-card .server-card-main em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.compact-server-card .server-card-main em {
  color: var(--green);
  font-weight: 900;
}

.server-card-stats {
  display: grid;
  min-width: 84px;
  justify-items: end;
  gap: 4px;
}

.server-card-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.server-card-stats strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.compact-server-card .card-actions {
  grid-column: 2 / 4;
  justify-content: flex-end;
  gap: 8px;
}

.compact-server-card .card-actions .button,
.compact-server-card .card-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 720px) {
  .responsive-server-list .server-list-desktop {
    display: none;
  }

  .responsive-server-list .server-list-mobile {
    display: grid;
  }

  .responsive-server-list > .modal-backdrop.open {
    display: flex;
  }

  .compact-server-list {
    gap: 10px;
    padding-bottom: 18px;
  }

  .compact-server-list .topbar {
    margin-bottom: 4px;
  }

  .compact-server-list .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 0;
  }

  .compact-server-list .metric-strip > div {
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 12px;
  }

  .compact-server-list .metric-strip span {
    font-size: 12px;
  }

  .compact-server-list .metric-strip strong {
    margin-top: 6px;
    font-size: 20px;
  }

  .server-list-hero {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .server-list-hero h2 {
    margin: 2px 0 5px;
    font-size: 22px;
  }

  .server-list-hero p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.45;
  }

  .server-list-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .server-list-actions .button,
  .server-list-actions button {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .server-list-panel {
    padding: 14px;
    border-radius: 14px;
  }

  .compact-server-list .compact-cards {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .compact-server-card {
    grid-template-columns: 10px minmax(0, 1fr) 58px;
    gap: 9px;
    min-height: 86px;
    padding: 10px;
    border-radius: 12px;
  }

  .server-status-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
  }

  .compact-server-card .server-card-main strong {
    font-size: 15px;
  }

  .compact-server-card .server-card-main span,
  .compact-server-card .server-card-main em {
    font-size: 12px;
  }

  .server-card-stats {
    min-width: 0;
  }

  .server-card-stats span {
    max-width: 58px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .server-card-stats strong {
    font-size: 20px;
  }

  .compact-server-card .card-actions {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 7px;
  }

  .compact-server-card .card-actions form {
    margin: 0;
  }

  .compact-server-card .card-actions .button,
  .compact-server-card .card-actions button {
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }

  .compact-server-list .server-modal {
    width: 100%;
    max-height: calc(100dvh - 14px);
    padding: 16px;
    border-radius: 20px 20px 0 0;
  }

  .compact-server-list .server-modal .two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .mobile-workspace .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 42;
    display: block;
    width: min(78vw, 292px);
    height: 100dvh;
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: 20px 0 50px rgba(20, 35, 62, .16);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(-106%);
    transition: transform .22s ease;
    scroll-snap-type: none;
  }

  .mobile-workspace .sidebar.open {
    transform: translateX(0);
  }

  .mobile-workspace .workspace-brand-link {
    display: flex;
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 6px 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
  }

  .mobile-workspace .workspace-brand-link span {
    display: block;
  }

  .mobile-workspace .workspace-brand-link .brand-mark {
    width: 40px;
    height: 40px;
  }

  .mobile-workspace .sidebar a:not(.workspace-brand-link) {
    display: flex;
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    margin-bottom: 7px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    font-size: 14px;
  }

  .mobile-workspace .sidebar a:not(.workspace-brand-link).active {
    border-color: rgba(47, 111, 235, .18);
    background: #eaf2ff;
  }

  .mobile-workspace .sidebar .back-link {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }

  .mobile-workspace .workspace-main {
    padding-top: 8px;
  }

  .mobile-workspace .mobile-workspace-menu {
    position: sticky;
    top: 8px;
    z-index: 34;
    display: inline-flex;
    width: fit-content;
    min-height: 40px;
    justify-self: start;
    justify-content: center;
    margin: 0 0 2px;
    padding: 0 13px;
    border: 1px solid rgba(214, 224, 238, .86);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(20, 35, 62, .08);
    backdrop-filter: blur(16px);
  }

  .mobile-workspace .mobile-workspace-menu::before {
    content: "";
    width: 16px;
    height: 12px;
    margin-right: 8px;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 16px 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 5px / 16px 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 10px / 16px 2px no-repeat;
  }
}

@media (max-width: 768px) {
  .mobile-workspace .sidebar {
    align-items: center;
    min-height: 56px;
    gap: 6px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(214, 224, 238, .86);
    background: rgba(249, 251, 255, .96);
    box-shadow: 0 8px 18px rgba(20, 35, 62, .06);
  }

  .mobile-workspace .workspace-brand-link {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 5px;
    border: 1px solid rgba(47, 111, 235, .14);
    border-radius: 14px;
    background: #fff;
  }

  .mobile-workspace .workspace-brand-link span {
    display: none;
  }

  .mobile-workspace .workspace-brand-link .brand-mark {
    width: 30px;
    height: 30px;
  }

  .mobile-workspace .sidebar a:not(.workspace-brand-link) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(214, 224, 238, .78);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    color: #4b5d78;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
  }

  .mobile-workspace .sidebar a:not(.workspace-brand-link).active {
    border-color: rgba(47, 111, 235, .28);
    background: #edf5ff;
    color: var(--blue-2);
    box-shadow: inset 0 0 0 1px rgba(47, 111, 235, .08);
  }

  .mobile-workspace .sidebar .back-link {
    border-top: 0;
  }

  .mobile-workspace .workspace-main {
    gap: 10px;
    padding: 10px 10px 22px;
  }

  .mobile-workspace .server-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 14px;
    border-color: rgba(214, 224, 238, .82);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 20px rgba(20, 35, 62, .05);
  }

  .mobile-workspace .server-head h1 {
    margin-bottom: 4px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.18;
  }

  .mobile-workspace .server-head p {
    color: #65748b;
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-workspace .server-head .status-pill {
    min-height: 30px;
    padding: 0 11px;
    align-self: start;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-monitor-dashboard {
    gap: 10px;
  }

  .mobile-monitor-dashboard .monitor-hero-card {
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(20, 35, 62, .07);
  }

  .mobile-monitor-dashboard .monitor-cover,
  .mobile-monitor-dashboard .monitor-cover img {
    width: 100%;
    height: 116px;
    min-height: 116px;
    max-height: 116px;
  }

  .mobile-monitor-dashboard .monitor-cover img {
    object-fit: cover;
    object-position: center;
  }

  .mobile-monitor-dashboard .monitor-hero-content {
    gap: 8px;
    padding: 12px;
  }

  .mobile-monitor-dashboard .monitor-hero-content .eyebrow {
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-monitor-dashboard .monitor-hero-content h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.28;
  }

  .mobile-monitor-dashboard .monitor-hero-content p {
    font-size: 13px;
    line-height: 1.45;
  }

  .mobile-monitor-dashboard .monitor-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
  }

  .mobile-monitor-dashboard .monitor-hero-meta span,
  .mobile-monitor-dashboard .monitor-info-list p {
    min-height: 54px;
    padding: 9px 10px;
    border-radius: 14px;
    background: #f9fbff;
  }

  .mobile-monitor-dashboard .monitor-hero-meta b,
  .mobile-monitor-dashboard .monitor-info-list strong {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
  }

  .mobile-monitor-dashboard .monitor-live-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-monitor-dashboard .monitor-live-metrics > div {
    min-height: 68px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 18px rgba(20, 35, 62, .05);
  }

  .mobile-monitor-dashboard .monitor-live-metrics span {
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-monitor-dashboard .monitor-live-metrics strong {
    margin-top: 7px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-monitor-dashboard .panel {
    padding: 13px;
    border-radius: 18px;
  }

  .mobile-monitor-dashboard .panel h2,
  .mobile-workspace .panel-title-row h2 {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
  }

  .mobile-monitor-dashboard .monitor-detail-grid,
  .mobile-monitor-dashboard .monitor-bottom-grid {
    gap: 10px;
  }

  .mobile-monitor-dashboard .monitor-info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .mobile-public,
  .mobile-pricing,
  .mobile-public-legacy,
  .mobile-tutorial,
  .mobile-tutorial-legacy,
  .mobile-auth,
  .mobile-auth-legacy,
  .mobile-fleet-page,
  .mobile-server-list-legacy,
  .mobile-billing,
  .mobile-account {
    width: min(100% - 20px, 760px);
  }

  .mobile-public .landing-nav,
  .mobile-pricing .landing-nav,
  .mobile-public-legacy .landing-nav,
  .mobile-tutorial .landing-nav,
  .mobile-tutorial-legacy .landing-nav,
  .mobile-fleet-page .topbar,
  .mobile-billing .topbar,
  .mobile-account .topbar {
    position: sticky;
    top: 8px;
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 28px rgba(20, 35, 62, .08);
    backdrop-filter: blur(18px);
  }

  .mobile-public .nav-links,
  .mobile-pricing .nav-links,
  .mobile-public-legacy .nav-links,
  .mobile-tutorial .nav-links,
  .mobile-tutorial-legacy .nav-links,
  .mobile-fleet-page .topbar nav,
  .mobile-billing .topbar nav,
  .mobile-account .topbar nav {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-public .nav-links::-webkit-scrollbar,
  .mobile-pricing .nav-links::-webkit-scrollbar,
  .mobile-public-legacy .nav-links::-webkit-scrollbar,
  .mobile-tutorial .nav-links::-webkit-scrollbar,
  .mobile-tutorial-legacy .nav-links::-webkit-scrollbar,
  .mobile-fleet-page .topbar nav::-webkit-scrollbar,
  .mobile-billing .topbar nav::-webkit-scrollbar,
  .mobile-account .topbar nav::-webkit-scrollbar,
  .mobile-workspace .sidebar::-webkit-scrollbar,
  .mobile-admin-shell .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

  .mobile-public .nav-links a,
  .mobile-pricing .nav-links a,
  .mobile-public-legacy .nav-links a,
  .mobile-tutorial .nav-links a,
  .mobile-tutorial-legacy .nav-links a,
  .mobile-fleet-page .topbar nav a,
  .mobile-billing .topbar nav a,
  .mobile-account .topbar nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    scroll-snap-align: start;
  }

  .mobile-public .polished-hero,
  .mobile-public-legacy .landing-hero,
  .mobile-pricing .pricing-hero,
  .mobile-tutorial .tutorial-hero,
  .mobile-tutorial-legacy .tutorial-hero {
    min-height: auto;
    padding: 22px 0 12px;
  }

  .mobile-public .hero-copy h1,
  .mobile-public-legacy .landing-hero h1,
  .mobile-pricing .pricing-hero h1,
  .mobile-tutorial .tutorial-hero h1,
  .mobile-tutorial-legacy .tutorial-hero h1,
  .mobile-auth .auth-card h1,
  .mobile-auth-legacy .auth-card h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .mobile-public .lead,
  .mobile-public-legacy .landing-hero p,
  .mobile-pricing .lead,
  .mobile-tutorial .lead,
  .mobile-tutorial-legacy .tutorial-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .mobile-public .hero-actions,
  .mobile-public-legacy .hero-actions,
  .mobile-tutorial .hero-actions,
  .mobile-tutorial-legacy .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-public .hero-actions a,
  .mobile-public-legacy .hero-actions a,
  .mobile-tutorial .hero-actions a,
  .mobile-tutorial-legacy .hero-actions a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .mobile-public .product-shot,
  .mobile-public-legacy .hero-panel {
    min-height: auto;
    border-radius: 18px;
  }

  .mobile-public .shot-main,
  .mobile-public-legacy .hero-panel {
    padding: 14px;
  }

  .mobile-public .shot-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-public .shot-metrics strong {
    font-size: 18px;
  }

  .mobile-public .trust-row,
  .mobile-public .polished-features,
  .mobile-public-legacy .feature-grid,
  .mobile-tutorial .tutorial-grid,
  .mobile-tutorial-legacy .tutorial-grid {
    gap: 10px;
  }

  .mobile-public .polished-features article,
  .mobile-public-legacy .feature-grid article,
  .mobile-tutorial .tutorial-grid article,
  .mobile-tutorial-legacy .tutorial-grid article {
    padding: 14px;
    border-radius: 16px;
  }

  .mobile-auth,
  .mobile-auth-legacy {
    min-height: 100dvh;
    padding: 12px;
  }

  .mobile-auth .auth-card,
  .mobile-auth-legacy .auth-card {
    width: min(100%, 420px);
    padding: 20px;
    border-radius: 20px;
  }

  .mobile-fleet-page {
    display: grid;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 26px;
  }

  .mobile-fleet-page .fleet-metrics,
  .mobile-server-list-legacy .metric-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-fleet-page .fleet-metrics > div,
  .mobile-server-list-legacy .metric-strip > div {
    min-height: 72px;
    padding: 12px;
    border-radius: 16px;
  }

  .mobile-fleet-page .fleet-metrics strong,
  .mobile-server-list-legacy .metric-strip strong,
  .mobile-workspace .metric-strip strong,
  .mobile-monitor-dashboard .monitor-live-metrics strong,
  .mobile-admin-shell .admin-metrics strong,
  .mobile-billing .price-line strong {
    max-width: 100%;
    font-size: min(28px, 7vw);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .mobile-fleet-page .fleet-panel,
  .mobile-server-list-legacy .panel,
  .mobile-billing .panel,
  .mobile-account .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-fleet-page .fleet-toolbar {
    display: grid;
    gap: 12px;
  }

  .mobile-fleet-page .fleet-toolbar h2 {
    margin: 4px 0;
    font-size: 22px;
  }

  .mobile-fleet-page .fleet-toolbar p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.55;
  }

  .mobile-fleet-page .fleet-actions,
  .mobile-fleet-page .fleet-card-actions,
  .mobile-server-list-legacy .card-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .mobile-fleet-page .fleet-actions .button,
  .mobile-fleet-page .fleet-actions button,
  .mobile-fleet-page .fleet-card-actions .button,
  .mobile-fleet-page .fleet-card-actions button,
  .mobile-server-list-legacy .card-actions .button,
  .mobile-server-list-legacy .card-actions button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .mobile-fleet-page .fleet-list,
  .mobile-server-list-legacy .server-cards {
    display: grid;
    gap: 10px;
  }

  .mobile-fleet-page .fleet-card,
  .mobile-server-list-legacy .server-card {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
  }

  .mobile-fleet-page .fleet-card-stats,
  .mobile-fleet-page .fleet-card-actions {
    grid-column: 2;
  }

  .mobile-fleet-page .fleet-card-main strong,
  .mobile-server-list-legacy .server-card strong {
    font-size: 17px;
    line-height: 1.25;
  }

  .mobile-fleet-page .fleet-card-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .mobile-fleet-page .fleet-card-stats strong {
    font-size: 15px;
  }

  .mobile-workspace {
    display: block;
    min-height: 100dvh;
  }

  .mobile-workspace .sidebar {
    position: sticky;
    top: 0;
    z-index: 28;
    display: flex;
    width: 100%;
    height: auto;
    max-width: 100vw;
    gap: 8px;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 26px rgba(20, 35, 62, .08);
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-workspace .workspace-brand-link {
    min-height: 38px;
    padding: 7px 10px;
  }

  .mobile-workspace .workspace-brand-link .brand-mark {
    width: 28px;
    height: 28px;
  }

  .mobile-workspace .sidebar a {
    flex: 0 0 auto;
    min-height: 38px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .mobile-workspace .sidebar a.active {
    border-color: rgba(47, 111, 235, .34);
    background: #eaf2ff;
    color: var(--blue-2);
  }

  .mobile-workspace .sidebar .back-link {
    margin-top: 0;
    border-top: 1px solid var(--line-soft);
  }

  .mobile-workspace .workspace-main {
    display: grid;
    gap: 12px;
    padding: 10px;
  }

  .mobile-workspace .mobile-workspace-menu {
    display: none;
  }

  .mobile-workspace .server-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    margin-bottom: 0;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
  }

  .mobile-workspace .server-head h1 {
    font-size: 22px;
  }

  .mobile-workspace .server-head p {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .mobile-workspace .server-head .status-pill,
  .mobile-workspace .live-pill,
  .mobile-workspace .status-pill {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .mobile-workspace .panel,
  .mobile-monitor-dashboard .monitor-hero-card,
  .mobile-alliance-bans-page,
  .mobile-alliance-whitelist-page,
  .mobile-player-profiles-page,
  .mobile-operation-history,
  .mobile-settings-page,
  .mobile-chat-page,
  .mobile-permissions-page,
  .mobile-economy-page {
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-monitor-dashboard {
    gap: 12px;
  }

  .mobile-monitor-dashboard .monitor-hero-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .mobile-monitor-dashboard .monitor-cover,
  .mobile-monitor-dashboard .monitor-cover img {
    min-height: 126px;
    max-height: 168px;
  }

  .mobile-monitor-dashboard .monitor-hero-content {
    gap: 9px;
    padding: 12px 0 0;
  }

  .mobile-monitor-dashboard .monitor-hero-content h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .mobile-monitor-dashboard .monitor-hero-meta,
  .mobile-monitor-dashboard .monitor-live-metrics,
  .mobile-monitor-dashboard .monitor-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-monitor-dashboard .monitor-hero-meta span,
  .mobile-monitor-dashboard .monitor-info-list p,
  .mobile-monitor-dashboard .monitor-live-metrics > div {
    min-height: 64px;
    padding: 10px;
    border-radius: 14px;
  }

  .mobile-monitor-dashboard .monitor-detail-grid,
  .mobile-monitor-dashboard .monitor-bottom-grid,
  .mobile-control-grid,
  .mobile-operation-center {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mobile-monitor-dashboard .line-chart {
    height: 176px;
  }

  .mobile-monitor-dashboard .chart-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .mobile-monitor-dashboard .chart-actions button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
  }

  .mobile-workspace .log-stream {
    max-height: 320px;
    gap: 6px;
  }

  .mobile-workspace .log-stream p {
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .mobile-workspace .player-grid,
  .mobile-workspace .settings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-workspace .player-card {
    padding: 10px;
    border-radius: 14px;
  }

  .mobile-control-grid .console-window {
    height: 46dvh;
    min-height: 260px;
    padding: 12px;
    border-radius: 16px;
    font-size: 12px;
  }

  .mobile-control-grid .inline-form,
  .mobile-alliance-bans-page .inline-form,
  .mobile-permissions-page .inline-form,
  .mobile-chat-page .chat-compose {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-control-grid .inline-form button,
  .mobile-alliance-bans-page .inline-form button,
  .mobile-permissions-page .inline-form button,
  .mobile-chat-page .chat-compose button {
    width: 100%;
  }

  .mobile-chat-page .chat-window {
    grid-template-rows: minmax(280px, 58dvh) auto;
    border-radius: 16px;
  }

  .mobile-chat-page .chat-stream {
    gap: 10px;
    padding: 10px;
  }

  .mobile-chat-page .chat-message {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .mobile-chat-page .chat-message img,
  .mobile-chat-page .chat-message .avatar-fallback {
    width: 34px;
    height: 34px;
  }

  .mobile-chat-page .chat-bubble {
    padding: 9px 11px;
    border-radius: 14px;
  }

  .mobile-workspace .sort-links,
  .mobile-player-profiles-page .sort-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mobile-workspace .sort-links a,
  .mobile-player-profiles-page .sort-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 13px;
  }

  .mobile-workspace .responsive-table tr,
  .mobile-admin-shell .admin-table tr,
  .mobile-account .responsive-table tr,
  .mobile-billing .responsive-table tr {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(20, 35, 62, .06);
  }

  .mobile-workspace .responsive-table td,
  .mobile-admin-shell .admin-table td,
  .mobile-account .responsive-table td,
  .mobile-billing .responsive-table td {
    grid-template-columns: minmax(74px, .32fr) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
  }

  .mobile-workspace .responsive-table td::before,
  .mobile-admin-shell .admin-table td::before,
  .mobile-account .responsive-table td::before,
  .mobile-billing .responsive-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-player-profiles-page .profile-group {
    margin-top: 12px;
  }

  .mobile-player-profiles-page .profile-group + .profile-group {
    margin-top: 16px;
  }

  .mobile-player-profiles-page .profile-group-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .mobile-player-profiles-page .profile-group-head h3 {
    font-size: 16px;
  }

  .mobile-player-profiles-page .profile-cell {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .mobile-player-profiles-page .profile-cell .table-avatar,
  .mobile-player-profiles-page .profile-cell .avatar-fallback {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .mobile-economy-page .economy-mobile-table td[data-label="余额"] strong {
    font-size: 20px;
  }

  .mobile-operation-center .panel,
  .mobile-operation-history {
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-operation-center .install-form,
  .mobile-settings-page .install-form,
  .mobile-admin-shell .install-form {
    gap: 10px;
  }

  .mobile-alliance-bans-page .empty-state {
    padding: 10px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .mobile-billing,
  .mobile-account {
    gap: 12px;
    padding-top: 8px;
  }

  .mobile-billing .current-plan,
  .mobile-account .account-hero {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-billing .current-plan h1,
  .mobile-account .account-hero h1 {
    font-size: 24px;
  }

  .mobile-billing .pricing-section {
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-billing .pricing-heading {
    gap: 8px;
  }

  .mobile-billing .pricing-heading h2 {
    font-size: 22px;
  }

  .mobile-billing .pricing-grid,
  .mobile-pricing .pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-billing .pricing-card,
  .mobile-pricing .pricing-card {
    min-height: auto;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-billing .pricing-card ul,
  .mobile-pricing .pricing-card ul {
    gap: 7px;
  }

  .mobile-billing .pricing-card li,
  .mobile-pricing .pricing-card li {
    font-size: 13px;
    line-height: 1.45;
  }

  .mobile-billing .price-line strong,
  .mobile-pricing .price-line strong {
    font-size: 28px;
  }

  .mobile-account .account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-account .account-detail-list p,
  .mobile-admin-shell .admin-detail-list p {
    gap: 4px;
    padding: 10px 0;
  }

  .mobile-admin-shell {
    display: block;
    min-height: 100dvh;
  }

  .mobile-admin-shell .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 24;
    display: flex;
    height: auto;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, .95);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-admin-shell .admin-sidebar .brand-line {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding-right: 4px;
  }

  .mobile-admin-shell .admin-sidebar .brand-mark {
    width: 30px;
    height: 30px;
  }

  .mobile-admin-shell .admin-sidebar a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  .mobile-admin-shell .admin-main {
    width: min(100% - 20px, 900px);
    gap: 12px;
    padding-top: 12px;
  }

  .mobile-admin-shell .admin-header {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
  }

  .mobile-admin-shell .admin-header h1 {
    font-size: 24px;
  }

  .mobile-admin-shell .admin-header-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
  }

  .mobile-admin-shell .admin-header-actions .button {
    flex: 0 0 auto;
    width: auto;
  }

  .mobile-admin-shell .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-admin-shell .admin-metrics > div {
    min-height: 70px;
    padding: 12px;
    border-radius: 16px;
  }

  .mobile-admin-shell .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-admin-shell .admin-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-admin-shell .inline-admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-admin-shell .inline-admin-form button,
  .mobile-admin-shell .admin-filter button {
    width: 100%;
  }

  .mobile-admin-shell .admin-json {
    max-height: 46dvh;
    min-height: 240px;
    font-size: 12px;
  }

  .mobile-workspace code,
  .mobile-admin-shell code,
  .mobile-account code,
  .mobile-billing code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-workspace .modal-backdrop.open,
  .mobile-fleet-page .modal-backdrop.open,
  .mobile-billing .modal-backdrop.open {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .mobile-workspace .server-modal,
  .mobile-fleet-page .server-modal,
  .mobile-billing .server-modal,
  .mobile-billing .payment-modal {
    width: 100%;
    max-height: calc(100dvh - 18px);
    padding: 16px;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
  }

  .mobile-billing .qr-box {
    width: min(68vw, 220px);
    height: min(68vw, 220px);
  }
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 111, 235, .12), transparent 30%),
    linear-gradient(180deg, var(--bg-strong), var(--bg) 340px);
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 40;
  max-width: min(560px, calc(100vw - 36px));
  padding: 14px 18px;
  border: 1px solid rgba(47, 111, 235, .22);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--blue-2);
  box-shadow: var(--shadow);
}

.toast.error {
  border-color: rgba(196, 60, 45, .24);
  color: var(--danger);
}

.landing,
.app-frame.single {
  width: min(1360px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.landing-nav,
.topbar,
.server-head,
.panel,
.auth-card,
.metric-strip > div,
.feature-grid article,
.tutorial-grid article,
.server-card,
.stat-card,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.landing-nav,
.topbar,
.server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.landing-nav {
  position: sticky;
  top: 18px;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
}

.nav-brand,
.topbar-brand,
.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-brand strong,
.topbar strong,
.brand-line span {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.nav-brand span,
.topbar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav-links,
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav-links a,
.topbar a,
.sidebar a {
  color: var(--muted);
  font-weight: 800;
}

.nav-links a:hover,
.topbar a:hover {
  color: var(--blue-2);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 10px 24px rgba(47, 111, 235, .18);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
  gap: 44px;
  align-items: center;
  min-height: 570px;
  padding: 46px 0 28px;
}

.landing-hero h1,
.tutorial-hero h1 {
  max-width: 820px;
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--blue-2);
  font-weight: 900;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(47, 111, 235, .2);
  letter-spacing: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.button.ghost,
button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--blue-2);
  box-shadow: none;
}

.button.danger,
button.danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 10px 26px rgba(196, 60, 45, .16);
}

.button.small,
button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.block-button {
  width: fit-content;
  margin-top: 18px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,248,255,.9)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(47, 111, 235, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(#173056 0 0) 24px 22px/170px 18px no-repeat,
    linear-gradient(var(--blue) 0 0) 24px 74px/128px 42px no-repeat,
    linear-gradient(var(--cyan) 0 0) 178px 74px/128px 42px no-repeat,
    linear-gradient(var(--surface-soft) 0 0) 24px 148px/calc(100% - 48px) 170px no-repeat,
    linear-gradient(90deg, transparent 12px, rgba(47,111,235,.12) 13px, transparent 14px),
    linear-gradient(180deg, #fff, #edf5ff);
  background-size:
    170px 18px,
    128px 42px,
    128px 42px,
    calc(100% - 48px) 170px,
    42px 42px,
    auto;
  opacity: .96;
}

.hero-panel::after {
  content: "";
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 78px;
  height: 86px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--blue), var(--cyan)) 0 58px/100% 6px no-repeat,
    linear-gradient(180deg, rgba(47,111,235,.14), rgba(6,167,184,.1));
}

.hero-panel > * {
  position: relative;
  z-index: 1;
  max-width: 310px;
}

.hero-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.price {
  margin: 20px 0 12px;
  color: var(--blue-2);
  font-size: 40px;
  font-weight: 900;
}

.feature-grid,
.metric-strip,
.content-grid,
.dashboard-grid,
.tutorial-grid,
.control-grid,
.server-cards,
.player-grid,
.settings-grid,
.monitor-legend,
.param-list {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.tutorial-grid article,
.metric-strip > div,
.server-card,
.panel {
  background: var(--surface-strong);
}

.feature-grid article,
.tutorial-grid article,
.metric-strip > div {
  padding: 22px;
}

.feature-grid article h3,
.tutorial-grid h2,
.panel h2 {
  color: var(--ink);
}

.feature-visual {
  position: relative;
  overflow: hidden;
  min-height: 188px;
}

.feature-visual::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 150px;
  height: 92px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47,111,235,.14), rgba(6,167,184,.14));
}

.server-visual::after {
  background:
    linear-gradient(90deg, transparent 12px, rgba(47,111,235,.2) 13px, transparent 14px),
    linear-gradient(180deg, #f8fbff, #dbeafe);
}

.player-visual::after {
  background:
    radial-gradient(circle at 25% 35%, #2f6feb 0 13px, transparent 14px),
    radial-gradient(circle at 55% 48%, #06a7b8 0 13px, transparent 14px),
    radial-gradient(circle at 78% 34%, #12805c 0 13px, transparent 14px),
    #eff6ff;
}

.permission-visual::after {
  background:
    linear-gradient(#2f6feb 0 0) 18px 20px/104px 10px no-repeat,
    linear-gradient(#06a7b8 0 0) 18px 46px/82px 10px no-repeat,
    linear-gradient(#12805c 0 0) 18px 72px/112px 10px no-repeat,
    #eff6ff;
}

.tutorial-hero {
  max-width: 920px;
  padding: 80px 0 24px;
}

.tutorial-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 24px;
}

.tutorial-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius);
  background: #eaf2ff;
  color: var(--blue-2);
  font-weight: 900;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(450px, 100%);
  padding: 30px;
  background: var(--surface-strong);
}

.auth-card h1 {
  margin: 10px 0 20px;
}

.metric-strip {
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.metric-strip span,
.stat-card span {
  display: block;
  color: var(--muted);
}

.metric-strip strong,
.stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.content-grid {
  grid-template-columns: 390px minmax(0, 1fr);
}

.dashboard-grid {
  grid-template-columns: 1.55fr .95fr;
}

.control-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
}

.panel {
  padding: 26px;
}

.install-form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 15px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 111, 235, .14);
}

.server-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.server-card {
  display: grid;
  gap: 14px;
  min-height: 168px;
  padding: 18px;
}

.server-card-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.server-card strong {
  color: var(--ink);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.server-card span,
.server-card em {
  overflow-wrap: anywhere;
}

.server-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.card-actions form {
  margin: 0;
}

.empty-state {
  padding: 14px;
  border: 1px dashed rgba(47, 111, 235, .3);
  border-radius: var(--radius);
  background: rgba(47, 111, 235, .06);
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 272px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.workspace-brand-link {
  min-height: 58px;
  padding: 4px 0;
  color: var(--ink);
}

.workspace-brand-link:hover {
  color: var(--blue-2);
}

.workspace-brand-link .brand-mark {
  width: 56px;
  height: 56px;
}

.sidebar a {
  display: block;
  margin-bottom: 8px;
  padding: 13px 14px;
  border-radius: var(--radius);
}

.sidebar a.active,
.sidebar a:hover {
  background: #eaf2ff;
  color: var(--blue-2);
}

.sidebar .back-link {
  margin-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.workspace-main {
  min-width: 0;
  padding: 18px;
}

.hamburger {
  display: none;
  margin-bottom: 12px;
}

.server-head {
  margin-bottom: 16px;
}

.server-head h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
}

.server-head p {
  margin: 0;
}

.server-head > span,
.status-pill,
.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: #e8f7f0;
  color: var(--green);
  font-weight: 800;
}

.status-pill.offline {
  background: #fff0ed;
  color: var(--danger);
}

.map-panel,
.monitor-panel {
  min-height: 430px;
}

.monitor-dashboard {
  display: grid;
  gap: 16px;
}

.monitor-hero-card {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.monitor-cover {
  position: relative;
  min-height: 260px;
  background: linear-gradient(135deg, #eaf2ff, #f8fbff);
}

.monitor-cover img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.monitor-cover.image-failed {
  display: grid;
  place-items: center;
}

.monitor-cover.image-failed::after {
  content: "服务器展示图暂不可用";
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  font-weight: 900;
}

.monitor-cover.image-failed img {
  display: none;
}

.monitor-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 30px;
}

.monitor-hero-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.monitor-hero-content p {
  margin: 0;
}

.monitor-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.monitor-hero-meta span,
.monitor-info-list p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.monitor-hero-meta b,
.monitor-info-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.monitor-live-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monitor-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  gap: 16px;
}

.monitor-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.monitor-chart-panel {
  min-width: 0;
}

.chart-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
}

.trend-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.line-chart {
  display: none;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.line-chart.active {
  display: block;
}

.line-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-actions .active {
  background: #eaf2ff;
  color: var(--blue-2);
  border-color: rgba(47, 111, 235, .28);
}

.monitor-bottom-grid {
  align-items: stretch;
}

.monitor-chart {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 14px;
  height: 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(47, 111, 235, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 235, .06) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 48px 48px;
}

.monitor-chart span {
  display: block;
  height: var(--h);
  min-height: 28px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 28px rgba(47, 111, 235, .18);
}

.log-stream,
.console-window {
  border-radius: var(--radius);
  background: #07111f;
  color: #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .16);
}

.log-stream {
  display: grid;
  gap: 6px;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
}

.log-stream p {
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #e5f2ff;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.log-stream span {
  display: inline;
  margin-right: 10px;
  color: #7dd3fc;
  font-size: 13px;
}

.monitor-legend {
  grid-template-columns: repeat(3, 1fr);
}

.monitor-legend b,
.param-list p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.param-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.param-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.param-form {
  margin-top: 16px;
}

.fake-map {
  position: relative;
  height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 40%, rgba(47,111,235,.18), transparent 18%),
    radial-gradient(circle at 68% 52%, rgba(6,167,184,.2), transparent 20%),
    linear-gradient(135deg, #eaf3ff, #ffffff);
}

.fake-map::before {
  content: "";
  position: absolute;
  inset: 40px 70px;
  border-radius: 48% 42% 55% 38%;
  background: linear-gradient(135deg, rgba(47,111,235,.18), rgba(18,128,92,.16));
}

.fake-map i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 10px rgba(47, 111, 235, .14);
}

.fake-map i:nth-child(1) { left: 28%; top: 40%; }
.fake-map i:nth-child(2) { left: 55%; top: 35%; background: var(--cyan); }
.fake-map i:nth-child(3) { left: 72%; top: 56%; background: var(--orange); }

.player-grid {
  gap: 12px;
}

.player-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.player-card > div {
  min-width: 0;
}

.player-card img,
.avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: var(--blue-2);
  font-weight: 900;
}

.player-card span {
  display: block;
  color: var(--muted);
}

.player-card strong,
.player-card span {
  display: block;
  white-space: normal;
  max-width: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.player-card strong {
  color: var(--ink);
  font-size: 18px;
}

pre {
  overflow: auto;
  min-height: 520px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0f172a;
  color: #dbeafe;
}

.console-window {
  height: 620px;
  overflow: auto;
  padding: 16px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
  line-height: 1.45;
}

.console-window p {
  margin: 0 0 4px;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.inline-form input {
  flex: 1;
}

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

.mini-form {
  max-width: 560px;
}

.responsive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
}

td code {
  color: var(--blue-2);
}

.profile-cell {
  display: grid;
  grid-template-columns: 44px minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.profile-cell .table-avatar,
.profile-cell .avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: 0 0 44px;
}

.profile-cell .table-avatar {
  display: block;
  object-fit: cover;
  object-position: center;
}

.profile-cell .avatar-fallback {
  display: inline-grid;
  place-items: center;
}

.profile-cell strong {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.profile-group {
  margin-top: 18px;
}

.profile-group + .profile-group {
  margin-top: 28px;
}

.profile-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-group-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.profile-group-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto auto;
  gap: 8px;
}

.table-form input {
  height: 36px;
  min-width: 0;
}

.table-form button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.sort-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue-2);
  font-weight: 700;
}

.settings-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.settings-grid input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-actions {
  margin-top: 18px;
}

.chat-list {
  display: grid;
  gap: 10px;
}

.chat-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.chat-list span {
  color: var(--subtle);
  font-size: 13px;
}

.chat-panel {
  display: grid;
  gap: 16px;
}

.chat-panel .panel-title-row p {
  margin: 6px 0 0;
}

.chat-window {
  display: grid;
  grid-template-rows: minmax(360px, 62vh) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}

.chat-stream {
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  overflow-y: auto;
  padding: 18px;
}

.chat-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  max-width: min(760px, 100%);
}

.chat-message img,
.chat-message .avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(20, 35, 62, .12);
}

.chat-bubble {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-top-left-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 35, 62, .08);
}

.chat-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.chat-name-row strong {
  max-width: 100%;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.chat-name-row span,
.chat-bubble time {
  color: var(--subtle);
  font-size: 12px;
}

.chat-bubble p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-bubble time {
  display: block;
  margin-top: 8px;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
}

.chat-compose input {
  min-width: 0;
}

.fleet-page {
  width: min(1360px, calc(100vw - 48px));
}

.fleet-metrics {
  margin: 18px 0 16px;
}

.fleet-panel {
  min-height: 560px;
}

.fleet-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.fleet-toolbar h2 {
  margin: 8px 0;
  font-size: 28px;
}

.fleet-toolbar p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
}

.fleet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.fleet-actions .loading {
  opacity: .62;
}

.fleet-list {
  display: grid;
  gap: 12px;
}

.fleet-card {
  display: grid;
  grid-template-columns: 16px minmax(220px, 1fr) minmax(180px, .42fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.fleet-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(196, 60, 45, .1);
}

.fleet-status-dot.online {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(18, 128, 92, .12);
}

.fleet-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fleet-card-main strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.fleet-card-main span,
.fleet-card-main small,
.fleet-card-stats small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.fleet-card-stats {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.fleet-card-stats strong {
  color: var(--ink);
  font-size: 18px;
}

.fleet-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fleet-card-actions form {
  margin: 0;
}

.fleet-empty {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 34px;
  border: 1px dashed rgba(47, 111, 235, .32);
  border-radius: var(--radius);
  background: rgba(47, 111, 235, .06);
  text-align: center;
}

.fleet-empty h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
}

.fleet-empty p {
  max-width: 480px;
  margin: 0 0 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 34, .46);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: grid;
}

.server-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(9, 18, 34, .28);
}

.server-modal h2 {
  margin: 8px 0 10px;
  color: var(--ink);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
  font-size: 24px;
}

.landing-polished {
  width: min(1240px, calc(100vw - 48px));
}

.polished-hero {
  grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
  gap: 52px;
  align-items: center;
  min-height: 620px;
  padding: 54px 0 34px;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy .lead {
  max-width: 650px;
  color: #5f6f85;
  font-size: 18px;
  line-height: 1.8;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid rgba(47, 111, 235, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-shot {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 235, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 32, 51, .12);
}

.shot-sidebar {
  padding: 22px;
  background: #10213d;
  color: rgba(255, 255, 255, .72);
}

.shot-sidebar strong {
  display: block;
  margin-bottom: 24px;
  color: #fff;
  font-size: 18px;
}

.shot-sidebar span {
  display: block;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.shot-sidebar .active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.shot-main {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(rgba(47, 111, 235, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 235, .04) 1px, transparent 1px),
    #f8fbff;
  background-size: 36px 36px;
}

.shot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.shot-top strong,
.shot-top span {
  display: block;
}

.shot-top strong {
  color: var(--ink);
  font-size: 20px;
}

.shot-top span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.shot-top em {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #e8f7f0;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.shot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.shot-metrics div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.shot-metrics span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.shot-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  overflow-wrap: anywhere;
}

.shot-console {
  min-height: 185px;
  padding: 16px;
  border-radius: var(--radius);
  background: #07111f;
  color: #dbeafe;
  font-family: "Cascadia Mono", Consolas, monospace;
}

.shot-console p {
  margin: 0 0 8px;
  color: inherit;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.shot-console span {
  margin-right: 8px;
  color: #7dd3fc;
}

.polished-features {
  margin-top: 12px;
}

.polished-features article {
  min-height: 188px;
  padding: 26px;
}

.polished-features article::after {
  content: none;
}

.polished-features span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: var(--radius);
  background: #eaf2ff;
  color: var(--blue-2);
  font-weight: 900;
}

.pricing-section {
  margin-top: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.pricing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pricing-heading h2,
.pricing-card h3,
.current-plan h1,
.admin-hero h1 {
  margin: 0;
}

.pricing-heading p,
.pricing-card p,
.pricing-card li,
.price-line em {
  color: var(--muted);
}

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

.pricing-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.pricing-card.current,
.pricing-card:nth-child(2) {
  border-color: rgba(47, 111, 235, .42);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 235, .16), 0 18px 42px rgba(47, 111, 235, .08);
}

.pricing-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-card-head span,
.current-plan-status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(6, 167, 184, .16);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.price-line strong {
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
}

.pricing-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-right: 12px;
  border: solid #12805c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-card .button,
.pricing-card form,
.pricing-card button {
  width: 100%;
}

.billing-page,
.admin-page {
  display: grid;
  gap: 22px;
}

.current-plan,
.admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.current-plan-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.billing-pricing {
  margin-top: 0;
}

.account-page {
  display: grid;
  gap: 18px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
}

.account-hero h1 {
  margin: 6px 0;
  font-size: clamp(28px, 3vw, 40px);
  overflow-wrap: anywhere;
}

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

.account-detail-list {
  display: grid;
  gap: 12px;
}

.account-detail-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.account-detail-list span {
  color: var(--muted);
  font-weight: 800;
}

.account-detail-list strong {
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  gap: 20px;
}

.admin-user-list {
  display: grid;
  gap: 14px;
}

.admin-user-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-weight: 800;
}

.check-row input {
  width: auto;
}

.check-stack,
.pay-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.check-stack label,
.pay-type-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.check-stack input,
.pay-type-row input {
  width: auto;
}

.payment-modal {
  width: min(520px, 100%);
}

.payment-modal [data-pay-plan-price] {
  color: var(--ink);
}

.pay-method-grid {
  display: grid;
  gap: 10px;
}

.pay-method-grid label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.pay-method-grid label:has(input:checked) {
  border-color: rgba(47, 111, 235, .54);
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 235, .14);
}

.pay-method-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pay-method-grid label:has(input:focus-visible) {
  outline: 2px solid rgba(47, 111, 235, .34);
  outline-offset: 2px;
}

.qr-payment {
  display: grid;
  gap: 16px;
}

.qr-payment[hidden] {
  display: none;
}

.payment-modal [hidden] {
  display: none !important;
}

.qr-box {
  display: grid;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.qr-order {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
}

.qr-order strong {
  color: var(--ink);
  font-size: 17px;
}

.qr-order b {
  color: var(--ink);
}

.pay-waiting {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #eef7ff;
  color: var(--blue-2);
  font-weight: 800;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-strong), var(--bg) 360px);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
}

.admin-sidebar .brand-line {
  margin-bottom: 24px;
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 900;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: #eef5ff;
  color: var(--blue-2);
}

.admin-main {
  display: grid;
  gap: 20px;
  width: min(100% - 48px, 1380px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-header h1 {
  margin: 4px 0 0;
  font-size: 34px;
}

.admin-header-actions,
.inline-admin-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.admin-metrics > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-metrics span,
.admin-detail-list span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 26px;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-filter input,
.admin-filter select {
  width: min(280px, 100%);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
}

.admin-table small {
  color: var(--muted);
}

.admin-detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.admin-detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-json {
  min-height: 280px;
  white-space: pre-wrap;
}

.admin-user-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 12px;
  }

  .landing,
  .app-frame.single {
    width: min(100% - 28px, 760px);
  }

  .landing-hero,
  .content-grid,
  .dashboard-grid,
  .control-grid,
  .monitor-hero-card,
  .monitor-detail-grid,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: min(82vw, 320px);
    height: 100dvh;
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .workspace-main {
    padding: 12px;
  }

  .metric-strip,
  .feature-grid,
  .tutorial-grid,
  .settings-grid,
  .monitor-legend,
  .monitor-live-metrics,
  .monitor-info-list,
  .monitor-hero-meta,
  .pricing-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-heading,
  .current-plan,
  .account-hero,
  .admin-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-card {
    grid-template-columns: 1fr;
  }

  pre {
    min-height: 360px;
  }

  .console-window {
    height: 420px;
  }

  .monitor-cover,
  .monitor-cover img {
    min-height: 190px;
  }

  .monitor-hero-content {
    padding: 20px;
  }

  .line-chart {
    height: 230px;
  }

  .hamburger {
    display: inline-flex;
    position: sticky;
    top: 10px;
    z-index: 25;
    margin-bottom: 12px;
  }

  .landing-polished {
    width: min(100% - 28px, 820px);
  }

  .polished-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-shot {
    grid-template-columns: 1fr;
  }

  .shot-sidebar {
    display: none;
  }

  .fleet-page {
    width: min(100% - 28px, 900px);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100vw;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar .brand-line {
    width: 100%;
    margin-bottom: 10px;
  }

  .admin-sidebar a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .admin-main {
    width: min(100% - 28px, 900px);
  }

  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-toolbar,
  .fleet-card {
    grid-template-columns: 1fr;
  }

  .fleet-toolbar {
    display: grid;
  }

  .fleet-actions,
  .fleet-card-actions {
    justify-content: flex-start;
  }

  .fleet-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .two-col,
  .inline-form,
  .chat-compose,
  .monitor-live-metrics,
  .monitor-info-list,
  .monitor-hero-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .landing,
  .app-frame.single {
    width: min(100% - 20px, 760px);
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .landing-nav,
  .topbar,
  .server-head,
  .panel-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav,
  .topbar {
    position: static;
    padding: 12px;
  }

  .nav-links,
  .topbar nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a,
  .topbar a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface-soft);
    scroll-snap-align: start;
  }

  .landing-hero,
  .tutorial-hero {
    min-height: auto;
    padding: 28px 0 16px;
  }

  .landing-hero h1,
  .tutorial-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-panel {
    min-height: 300px;
  }

  .hero-panel::before {
    inset: 14px;
    opacity: .36;
  }

  .hero-panel::after {
    left: 32px;
    right: 32px;
  }

  .table-form {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  .workspace-main {
    padding: 10px;
  }

  .hamburger {
    top: 8px;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .server-head,
  .panel-title-row,
  .profile-group-head {
    gap: 10px;
  }

  .panel-title-row .sort-links,
  .sort-links,
  .card-actions,
  .settings-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .sort-links a,
  .card-actions .button,
  .card-actions button,
  .settings-actions button,
  .settings-actions .button,
  .inline-form button,
  .table-form button,
  .chat-compose button {
    width: 100%;
  }

  .button,
  button,
  .button.small,
  button.small,
  .table-form button {
    min-height: 44px;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button,
  .table-form input,
  .table-form select,
  .table-form button {
    width: 100%;
  }

  .metric-strip,
  .feature-grid,
  .tutorial-grid,
  .settings-grid,
  .monitor-legend,
  .pricing-grid,
  .account-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    padding: 22px;
  }

  .current-plan-status {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar nav,
  .card-actions,
  .sort-links,
  .nav-links {
    gap: 8px;
  }

  .server-cards {
    grid-template-columns: 1fr;
  }

  .server-card {
    min-height: auto;
    padding: 16px;
  }

  .responsive-table {
    overflow-x: visible;
  }

  .responsive-table table,
  .admin-table {
    display: block;
    min-width: 0;
  }

  .responsive-table thead,
  .admin-table thead {
    display: none;
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr,
  .admin-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
  }

  .responsive-table td,
  .admin-table td {
    display: grid;
    grid-template-columns: minmax(88px, .38fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    overflow-wrap: anywhere;
  }

  .responsive-table td:last-child,
  .admin-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before,
  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
  }

  .responsive-table td:nth-child(1)::before,
  .admin-table td:nth-child(1)::before { content: "项目"; }
  .responsive-table td:nth-child(2)::before,
  .admin-table td:nth-child(2)::before { content: "编号"; }
  .responsive-table td:nth-child(3)::before,
  .admin-table td:nth-child(3)::before { content: "信息"; }
  .responsive-table td:nth-child(4)::before,
  .admin-table td:nth-child(4)::before { content: "状态"; }
  .responsive-table td:nth-child(5)::before,
  .admin-table td:nth-child(5)::before { content: "时间"; }
  .responsive-table td:nth-child(6)::before,
  .admin-table td:nth-child(6)::before { content: "备注"; }
  .responsive-table td:nth-child(7)::before,
  .admin-table td:nth-child(7)::before { content: "操作"; }

  .profile-cell {
    grid-template-columns: 40px minmax(0, 1fr);
    min-width: 0;
  }

  .profile-cell .table-avatar,
  .profile-cell .avatar-fallback {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .polished-hero {
    padding-top: 34px;
  }

  .product-shot {
    min-height: auto;
  }

  .shot-main {
    padding: 16px;
  }

  .shot-top,
  .shot-metrics {
    grid-template-columns: 1fr;
  }

  .shot-top {
    align-items: stretch;
    flex-direction: column;
  }

  .shot-metrics {
    display: grid;
  }

  .fleet-page {
    width: min(100% - 20px, 760px);
  }

  .fleet-actions,
  .fleet-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .fleet-card-actions .button,
  .fleet-card-actions button,
  .fleet-actions .button,
  .fleet-actions button {
    width: 100%;
  }

  .server-modal {
    width: min(100% - 20px, 520px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 18px;
  }

  .admin-header,
  .admin-detail-list p {
    align-items: stretch;
    flex-direction: column;
  }

  .account-detail-list p {
    align-items: stretch;
    flex-direction: column;
  }

  .account-detail-list strong {
    text-align: left;
  }

  .chat-window {
    grid-template-rows: minmax(320px, 64vh) auto;
  }

  .chat-stream {
    padding: 12px;
  }

  .chat-message {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .chat-message img,
  .chat-message .avatar-fallback {
    width: 38px;
    height: 38px;
  }

  .chat-bubble {
    padding: 10px 12px;
  }

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

  .admin-main {
    width: min(100% - 20px, 900px);
    gap: 14px;
  }

  .admin-sidebar {
    padding: 12px;
  }

  .admin-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-filter input,
  .admin-filter select,
  .admin-filter button {
    width: 100%;
  }

  .monitor-dashboard {
    gap: 12px;
  }

  .monitor-hero-card {
    border-radius: var(--radius);
  }

  .monitor-cover,
  .monitor-cover img {
    min-height: 150px;
  }

  .monitor-hero-content {
    gap: 10px;
    padding: 16px;
  }

  .monitor-hero-content h2 {
    font-size: 24px;
  }

  .monitor-live-metrics > div,
  .monitor-info-list p,
  .monitor-legend b {
    padding: 10px;
  }

  .console-window {
    height: 58dvh;
    min-height: 320px;
    padding: 12px;
    font-size: 13px;
  }

  .chat-panel {
    gap: 12px;
  }

  .chat-window {
    border-radius: var(--radius);
  }

  .chat-compose {
    padding-top: 10px;
  }

  .permission-table tr {
    display: grid;
    gap: 12px;
  }

  .permission-table td {
    grid-template-columns: 1fr;
  }

  .permission-table td::before {
    padding-bottom: 2px;
  }

  .permission-table .table-form {
    gap: 8px;
  }

  .profile-group {
    margin-top: 14px;
  }

  .profile-group + .profile-group {
    margin-top: 20px;
  }

  .profile-group-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-group-head span {
    width: fit-content;
  }

  .economy-mobile-table td[data-label="余额"] strong {
    font-size: 20px;
  }

  .dashboard-grid > .panel,
  .control-grid > .panel {
    min-width: 0;
  }

  .billing-pricing {
    padding: 18px;
  }

  .pricing-card {
    min-height: auto;
    padding: 18px;
  }

  .pricing-card ul {
    gap: 9px;
  }

  .account-hero,
  .current-plan,
  .admin-hero {
    padding: 18px;
  }

  .account-grid .panel,
  .billing-page .panel,
  .admin-page .panel {
    padding: 16px;
  }

  .admin-table-wrap {
    overflow-x: visible;
  }

  .admin-header-actions,
  .inline-admin-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .inline-admin-form button,
  .admin-header-actions .button,
  .admin-header-actions button {
    width: 100%;
  }
}

/* Final compact-list overrides: keep mobile cards small after legacy media rules. */
.compact-server-list .server-list-panel .compact-server-card {
  min-height: 112px;
  padding: 14px;
}

.compact-server-list .server-list-panel .compact-server-card .card-actions {
  display: flex;
}

@media (max-width: 720px) {
  .responsive-server-list .server-list-desktop {
    display: none;
  }

  .responsive-server-list .server-list-mobile {
    display: grid;
  }

  .responsive-server-list > .modal-backdrop.open {
    display: flex;
  }

  .compact-server-list .server-list-panel .compact-server-card {
    grid-template-columns: 10px minmax(0, 1fr) 58px;
    min-height: 86px;
    padding: 10px;
  }

  .compact-server-list .server-list-panel .compact-server-card .card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .compact-server-list .server-list-panel .compact-server-card .card-actions .button,
  .compact-server-list .server-list-panel .compact-server-card .card-actions button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* Web mobile ratio pass: make the PHP site behave like a phone-first app. */
@media (max-width: 768px) {
  .responsive-server-list .server-list-desktop {
    display: none;
  }

  .responsive-server-list .server-list-mobile {
    display: grid;
  }

  .responsive-server-list > .modal-backdrop.open {
    display: flex;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  body {
    background:
      linear-gradient(180deg, rgba(238, 244, 255, .9), rgba(245, 247, 251, 1) 260px),
      var(--bg);
  }

  .app-frame.single,
  .mobile-server-list-legacy,
  .mobile-fleet-page,
  .mobile-billing,
  .mobile-account,
  .workspace-main,
  .admin-page {
    width: 100%;
    max-width: none;
    padding: 10px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 36;
    display: grid;
    gap: 10px;
    margin: -2px -2px 8px;
    padding: 10px;
    border-radius: 0 0 16px 16px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
  }

  .topbar-brand {
    min-width: 0;
  }

  .topbar-brand .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .topbar strong {
    font-size: 17px;
  }

  .topbar span {
    max-width: 72vw;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar nav {
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topbar nav::-webkit-scrollbar {
    display: none;
  }

  .topbar nav a,
  .topbar a {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .panel,
  .current-plan,
  .account-hero,
  .pricing-card,
  .admin-card {
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
  }

  .panel-title-row,
  .server-head,
  .current-plan-status,
  .account-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .panel h2,
  .server-head h1,
  .account-hero h1,
  .current-plan h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .eyebrow {
    font-size: 12px;
  }

  .metric-strip,
  .dashboard-grid,
  .control-grid,
  .settings-grid,
  .account-grid,
  .pricing-grid,
  .admin-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip > div {
    min-height: 62px;
    padding: 11px;
    border-radius: 12px;
  }

  .metric-strip span {
    font-size: 12px;
  }

  .metric-strip strong {
    margin-top: 6px;
    font-size: 21px;
  }

  .workspace {
    display: block;
    width: 100%;
  }

  .mobile-workspace .sidebar,
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 52;
    width: min(82vw, 300px);
    height: 100dvh;
    padding: 14px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 20px 0 60px rgba(23, 32, 51, .18);
    overflow-y: auto;
    transform: translateX(-108%);
    transition: transform .22s ease;
  }

  .mobile-workspace .sidebar.open,
  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-workspace .sidebar a,
  .sidebar a {
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 14px;
  }

  .hamburger,
  .mobile-workspace-menu {
    position: sticky;
    top: 8px;
    z-index: 40;
    width: auto;
    min-height: 40px;
    margin-bottom: 10px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .server-head {
    padding: 14px;
    border-radius: 14px;
  }

  .server-head p {
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .console-window,
  .log-stream,
  .chat-log {
    max-height: 42dvh;
    font-size: 12px;
    overflow: auto;
  }

  .install-form,
  .inline-form,
  .mini-form,
  .table-form,
  .chat-compose,
  .settings-actions,
  .sort-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  input,
  select,
  button,
  .button {
    min-height: 42px;
    font-size: 14px;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button,
  .table-form input,
  .table-form select,
  .table-form button,
  .chat-compose input,
  .chat-compose button,
  .settings-actions button,
  .settings-actions .button,
  .sort-links a {
    width: 100%;
  }

  .responsive-table {
    overflow-x: visible;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .responsive-table table {
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    padding: 10px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(78px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    border: 0;
    font-size: 13px;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
  }

  .modal-backdrop.open {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .server-modal,
  .payment-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 14px);
    padding: 16px;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 420px) {
  .app-frame.single,
  .mobile-server-list-legacy,
  .mobile-fleet-page,
  .mobile-billing,
  .mobile-account,
  .workspace-main {
    padding: 8px;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
  }

  .panel,
  .server-head {
    padding: 12px;
  }

  .responsive-table td {
    grid-template-columns: minmax(70px, 38%) minmax(0, 1fr);
    font-size: 12px;
  }
}
