:root {
  color-scheme: dark;
  background: #171017;
  color: #f5e7d3;
  font: 16px/1.55 Arial, sans-serif;
  --muted: #d5bdb2;
  --accent: #f0b78e;
  --edge: #785649;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.support-page { width: min(100% - 32px, 700px); margin: 0 auto; padding: 24px 0 48px; }
.support-page nav { margin-bottom: 14px; }
.support-panel { border: 1px solid var(--edge); border-radius: 16px; background: #261920; padding: clamp(18px, 5vw, 36px); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 6vw, 2.45rem); margin: 0 0 14px; }
h2 { font-size: 1.25rem; margin: 0 0 10px; }
.support-panel p { margin: 0 0 14px; }
.support-form { display: grid; gap: 16px; margin-top: 20px; }
label { display: block; margin-bottom: 6px; }
small, .support-hint { color: var(--muted); font-size: .9rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%; max-width: 100%; min-height: 44px;
  border: 1px solid var(--edge); border-radius: 8px;
  background: #171017; color: #f5e7d3; padding: 9px 11px;
}
textarea { resize: vertical; }
button {
  justify-self: start; border: 0; border-radius: 9px; min-height: 44px;
  padding: 10px 18px; font-weight: bold; color: #21151a; background: var(--accent); cursor: pointer;
}
button:hover { background: #f5c8a9; }
.support-form .support-hint { margin: 0; }
.support-error, .support-notice { color: #ffc0b8; }
.support-error { display: block; margin-top: 5px; }
[aria-invalid="true"] { border-color: #ffc0b8; }
.support-request { border-top: 1px solid var(--edge); padding: 18px 0; }
.support-request p { overflow-wrap: anywhere; }
.support-message { white-space: pre-wrap; }

@media (max-width: 400px) {
  .support-page { width: calc(100% - 24px); padding-top: 16px; }
  .support-form button { width: 100%; }
}
