body {
  color: #263238;
}

.login-page {
  align-items: center;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 46%, #e8fff9 100%);
  display: flex;
  min-height: 100vh;
}

.login-card {
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  box-shadow: 0 14px 45px rgba(31, 45, 61, .1);
  margin: 0 auto;
  max-width: 420px;
  padding: 34px;
  width: 100%;
}

.login-logo {
  display: block;
  height: 48px;
  margin: 0 auto 24px;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.metric-card {
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 45, 61, .04);
  padding: 18px;
}

.metric-label {
  color: #8b95a5;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric-value {
  color: #263238;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.metric-meta {
  color: #a3acba;
  font-size: 12px;
  margin-top: 8px;
}

.page-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-dot {
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  margin-right: 6px;
  width: 8px;
}

.status-dot.success {
  background: #33cabb;
}

.status-dot.warning {
  background: #faa64b;
}

.status-dot.danger {
  background: #f96868;
}

.table td {
  vertical-align: middle !important;
}

.table-actions {
  min-width: 190px;
  text-align: right;
  white-space: nowrap;
}

.inline-form {
  display: inline-block;
}

.fund-admin-table .form-control {
  min-width: 150px;
}

.fund-table-actions {
  text-align: right;
}

.fund-row-save-form {
  display: none;
}

.fund-table-actions .btn,
.fund-table-actions .inline-form {
  margin-left: 4px;
}

.cache-pagination {
  align-items: center;
  border: 1px solid #edf1f7;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 12px 0 16px;
  padding: 10px 12px;
}

.cache-page-info {
  color: #607d8b;
  font-size: 13px;
}

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

.system-media-preview {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.system-media-preview img {
  border: 1px solid #edf1f7;
  border-radius: 4px;
  max-height: 120px;
  max-width: 180px;
  object-fit: contain;
}

.share-image-preview img {
  aspect-ratio: 5 / 4;
  max-height: 160px;
  max-width: 200px;
  object-fit: cover;
}

.json-box {
  background: #172033;
  border: 0;
  border-radius: 4px;
  color: #d7e2ff;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  min-height: 360px;
  resize: vertical;
}

.domain-list code {
  background: #f6f8fb;
  border: 1px solid #e9edf3;
  color: #455a64;
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 8px;
}

.help-muted {
  color: #8b95a5;
  font-size: 12px;
  line-height: 1.7;
}

.nav-footer {
  color: #8b95a5;
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 18px;
}

.ai-answer {
  background: #f6f8fb;
  border: 1px solid #e9edf3;
  border-radius: 4px;
  min-height: 160px;
  padding: 14px;
  white-space: pre-wrap;
}

@media (max-width: 991px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
