:root {
  --background: #f7f8fa;
  --surface: #ffffff;
  --text: #20252d;
  --muted: #667085;
  --line: #d8dde6;
  --accent: #1f6f68;
  --accent-strong: #18544f;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 700; text-decoration: none; }
.topbar a { color: var(--accent); text-decoration: none; font-weight: 700; }
.page { width: min(1040px, calc(100% - 32px)); margin: 28px auto 56px; }
.intro { margin-bottom: 22px; }
.intro.narrow, .form.narrow { max-width: 520px; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
h2 { margin: 0 0 18px; font-size: 20px; }
p { margin: 0 0 16px; color: var(--muted); }
.form section, .downloads, .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
.grid.two, .fixed-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 16px; }
.fixed-fields { margin-bottom: 16px; }
.fixed-fields.single { grid-template-columns: 1fr; }
.fixed-fields div { border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; padding: 12px 14px; }
.fixed-fields span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.fixed-fields strong { display: block; font-size: 14px; line-height: 1.35; }
label, legend { display: block; color: #344054; font-size: 14px; font-weight: 700; }
input, textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #b9c2cf; border-radius: 6px; padding: 10px 11px; color: var(--text); background: #fff; font: inherit; }
textarea { resize: vertical; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.options { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.radio { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.radio input { width: auto; margin: 0; }
.actions, .inline-actions, .downloads { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
button, .button-link, .download { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 0; border-radius: 6px; padding: 10px 16px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button-link:hover, .download:hover { background: var(--accent-strong); }
.secondary { background: #475467; }
.danger { background: #b42318; }
.danger:hover { background: #8a1c14; }
.link-danger { display: inline; min-height: 0; border: 0; background: transparent; color: #b42318; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.link-danger:hover { background: transparent; color: #8a1c14; }
.message { border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid #fecdca; color: var(--danger); background: #fffbfa; }
.note { color: #7a4b00; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
th { background: #eef4f3; font-weight: 700; }
.links { white-space: nowrap; }
.links a { color: var(--accent); font-weight: 700; margin-right: 10px; }
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; }
  .page { width: min(100% - 20px, 1040px); margin-top: 18px; }
  .grid.two, .fixed-fields { grid-template-columns: 1fr; }
  .form section, .downloads, .table-wrap { padding: 16px; }
  h1 { font-size: 24px; }
}
