:root {
  --app-bg: #f6f7f9;
  --app-border: #d7dce2;
  --app-sidebar: #ffffff;
  --app-text-muted: #667085;
}

body {
  background: var(--app-bg);
  color: #1f2937;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--app-sidebar);
  padding: 18px 14px;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 22px;
}

.brand-mark {
  align-items: center;
  background: #1f2937;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nav-link {
  border-radius: 6px;
  color: #374151;
  font-size: 0.94rem;
  padding: 8px 10px;
}

.nav-link:hover {
  background: #eef2f6;
  color: #111827;
}

.main-panel {
  min-width: 0;
}

.topbar {
  align-items: center;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 24px;
}

.content {
  padding: 24px;
}

.eyebrow,
.metric-label {
  color: var(--app-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-card,
.section-panel {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.metric-value {
  font-size: 1.7rem;
  line-height: 1;
}

.section-panel {
  padding: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vless-install-row td {
  background: #f8fafc;
  padding-bottom: 14px;
  padding-top: 14px;
}

.vless-install-grid {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns:
    minmax(220px, 1.2fr)
    minmax(150px, 0.8fr)
    minmax(140px, 0.8fr)
    minmax(180px, 1fr)
    auto;
}

.vless-install-action {
  display: flex;
}

.vless-domain-preview {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 24px;
}

.secret-placeholder {
  color: #6b7280;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

code {
  color: #374151;
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--app-border);
  }

  .topbar,
  .content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vless-install-grid {
    grid-template-columns: 1fr;
  }
}
