.agcrm-site-shell,
.agcrm-login-wrap {
  --agcrm-bg: #0f172a;
  --agcrm-card: #ffffff;
  --agcrm-text: #0f172a;
  --agcrm-muted: #64748b;
  --agcrm-border: #e2e8f0;
  --agcrm-accent: #2563eb;
  --agcrm-accent-soft: #dbeafe;
  --agcrm-success: #16a34a;
  --agcrm-warning: #d97706;
  --agcrm-danger: #dc2626;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.agcrm-login-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agcrm-login-card,
.agcrm-card {
  background: #fff;
  border: 1px solid var(--agcrm-border);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.agcrm-login-card {
  width: 100%;
  max-width: 480px;
  padding: 32px;
}

.agcrm-brand h2,
.agcrm-topbar h1,
.agcrm-section-head h3 {
  margin: 0;
  color: var(--agcrm-text);
}

.agcrm-brand p,
.agcrm-topbar p,
.agcrm-section-head span,
.agcrm-tip,
.agcrm-empty,
.agcrm-list-item p,
.agcrm-stat span {
  color: var(--agcrm-muted);
}

.agcrm-pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--agcrm-accent-soft);
  color: var(--agcrm-accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.agcrm-login-card form,
.agcrm-form-grid {
  display: grid;
  gap: 14px;
}

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

.agcrm-col-span-2 {
  grid-column: span 2;
}

.agcrm-login-card label,
.agcrm-form-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--agcrm-text);
}

.agcrm-login-card input,
.agcrm-form-grid input,
.agcrm-form-grid select,
.agcrm-form-grid textarea,
.agcrm-inline-form input,
.agcrm-inline-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--agcrm-border);
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}

.agcrm-login-card input:focus,
.agcrm-form-grid input:focus,
.agcrm-form-grid select:focus,
.agcrm-form-grid textarea:focus,
.agcrm-inline-form input:focus,
.agcrm-inline-form select:focus {
  outline: none;
  border-color: var(--agcrm-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.agcrm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--agcrm-muted);
}

.agcrm-check input {
  width: auto;
}

.agcrm-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agcrm-btn:hover {
  transform: translateY(-1px);
}

.agcrm-btn-primary {
  background: var(--agcrm-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.agcrm-btn-light {
  background: #fff;
  border: 1px solid var(--agcrm-border);
  color: var(--agcrm-text);
}

.agcrm-full {
  width: 100%;
}

.agcrm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.agcrm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.agcrm-nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--agcrm-text);
  background: #fff;
  border: 1px solid var(--agcrm-border);
}

.agcrm-nav-link.is-active {
  background: var(--agcrm-accent);
  color: #fff;
  border-color: var(--agcrm-accent);
}

.agcrm-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.agcrm-grid-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.agcrm-card {
  padding: 22px;
}

.agcrm-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.agcrm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.agcrm-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--agcrm-border);
  border-radius: 16px;
}

.agcrm-list-item strong {
  display: block;
  margin-bottom: 4px;
}

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

.agcrm-table {
  width: 100%;
  border-collapse: collapse;
}

.agcrm-table th,
.agcrm-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--agcrm-border);
  text-align: left;
  white-space: nowrap;
}

.agcrm-table th {
  font-size: 13px;
  color: var(--agcrm-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agcrm-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
}

.agcrm-badge.is-danger {
  background: #fee2e2;
  color: var(--agcrm-danger);
}

.agcrm-badge.is-warning {
  background: #ffedd5;
  color: var(--agcrm-warning);
}

.agcrm-badge.is-success {
  background: #dcfce7;
  color: var(--agcrm-success);
}

.agcrm-inline-form {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
}

.agcrm-notice {
  padding: 12px 16px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  margin-bottom: 16px;
}

.agcrm-notice.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.agcrm-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--agcrm-muted);
}

.agcrm-bullets li + li {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .agcrm-grid-2,
  .agcrm-grid-stats,
  .agcrm-form-grid,
  .agcrm-inline-form {
    grid-template-columns: 1fr;
  }

  .agcrm-col-span-2 {
    grid-column: span 1;
  }

  .agcrm-topbar,
  .agcrm-section-head,
  .agcrm-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
