:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --line: #d7e0ef;
  --text: #17141d;
  --muted: #5f6675;
  --brand: #1267ff;
  --brand-2: #0b48c7;
  --brand-dark: #17141d;
  --brand-soft: #eaf1ff;
  --danger: #b42318;
  --ok: #027a48;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--brand);
}

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

button,
.button-link {
  min-height: 38px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
}

button:hover,
.button-link:hover {
  background: var(--brand-2);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-weight: 700;
  padding: 9px 14px;
  text-decoration: none;
}

.button-link.secondary {
  background: #fff;
  color: var(--brand);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 24px;
  background: linear-gradient(90deg, #ffffff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.topbar h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.session {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.session a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.content {
  padding: 24px;
}

.panel {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(23, 20, 29, 0.04);
  padding: 18px;
}

.panel h2,
.panel h3 {
  margin: 0;
  color: var(--brand-dark);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.form.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.form h3 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.checkline input {
  width: 18px;
  min-height: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

.alert {
  margin-bottom: 14px;
  border-radius: 6px;
  padding: 12px 14px;
}

.alert.ok {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: var(--ok);
}

.alert.error {
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: var(--danger);
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .two-col,
  .form.compact {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
