:root {
  color-scheme: dark;
  --bg:#11212e; --panel:#1c303f; --ink:#edf4f7; --muted:#b4c6cf;
  --line:#506979; --accent:#9ae1e3; --danger:#ffb7a8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:radial-gradient(ellipse at 22% 0%,#233e50,transparent 60rem),var(--bg);
  color: var(--ink);
  font: 16px/1.7 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background:#101a23;
}
.site-header strong { font:750 23px/1.2 Inter,"Segoe UI",sans-serif; letter-spacing:-1px; }
a { color:var(--accent); }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
#survey-subject { margin-top:12px; border-left:3px solid var(--accent); padding-left:12px; color:var(--ink); }

.site-header span { color: var(--muted); font-size: .9rem; }

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 { margin: 0 0 .5rem; font-size: 1.75rem; }
h2 { margin: 0 0 .75rem; font-size: 1.25rem; }

.intro { margin-bottom: 1.5rem; }
.intro p { color: var(--muted); margin: 0; }

.field { margin-bottom: 1.25rem; }

label, legend { font-weight: 600; }

label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  font-size: .85rem;
}

input[type="text"], select, textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: inherit;
  font: inherit;
}

textarea { resize: vertical; }

small { color: var(--muted); }

fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  background: var(--panel);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .75rem;
}

.grid label { font-weight: 400; }

.consent {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
  font-weight: 400;
}

.consent input { margin-top: .35rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

button, .button {
  display: inline-block;
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #102b38;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button:disabled { opacity: .55; cursor: progress; }

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--muted); }
.status.error { color: var(--danger); }

.notice {
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 1rem;
}

.panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.panel code {
  padding: .15rem .4rem;
  border-radius: 4px;
  background:#11212e; overflow-wrap:anywhere;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  color: var(--muted);
  font-size: .9rem;
}

[hidden] {display:none !important;}
