* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f0f5fa;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: #045cb4;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #d1d5db;
  padding: 16px 0;
}

.topbar-inner,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
}

.main {
  padding: 28px 0 48px;
}

.panel {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  margin-bottom: 20px;
  padding: 20px;
}

.panel h1,
.panel h2 {
  margin: 0 0 16px;
}

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

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

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

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 9px 11px;
  color: #334155;
  font: inherit;
}

input[type="checkbox"] {
  width: auto;
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.btn-green {
  background: #16a34a;
}

.btn-muted {
  background: #64748b;
}

.btn-danger {
  background: #dc2626;
}

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

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

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #475569;
  font-size: 13px;
  text-transform: uppercase;
}

.logo {
  width: 82px;
  max-height: 40px;
  object-fit: contain;
}

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

.notice {
  border-left: 4px solid #16a34a;
  background: #ecfdf5;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.error {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.muted {
  color: #64748b;
}

.offer-form-collapsed {
  display: none;
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
