body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1e293b;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  margin-top: 0;
}

form {
  display: grid;
  gap: 12px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

button, .button {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary {
  background: #0f172a;
}

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

.table th, .table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.module-card {
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: white;
  text-decoration: none;
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
  margin-bottom: 16px;
}

.error {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  margin-bottom: 16px;
}

.widget-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.widget-card.horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.widget-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

.widget-content {
  padding: 20px;
}
