:root {
  --bg: #fbfaf6;
  --ink: #1c1b18;
  --muted: #545148;
  --line: #cfcabd;
  --brand: #1d5a38;
  --panel: #f1eee4;
  --error: #8c1a14;
  --error-bg: #fdecea;
  --ok: #14452a;
  --ok-bg: #e6f2ea;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1.0625rem/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: 42rem;
  margin: auto;
  padding: 0 16px 48px;
}
.operator-wrap {
  max-width: 68rem;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.name {
  font-weight: 700;
}
.top-actions {
  display: flex;
  gap: 8px;
}
.top button {
  width: auto;
  margin: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--bg);
  z-index: 2;
  padding: 12px;
}
.skip:focus {
  top: 4px;
}
main {
  padding-top: 28px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
}
h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 12px;
}
section,
fieldset {
  margin: 0 0 28px;
}
fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  min-width: 0;
}
legend {
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0 12px 0 0;
}
label {
  display: block;
  font-weight: 650;
  margin: 16px 0 4px;
}
input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}
input:not([type='checkbox']),
textarea,
select {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #6b675b;
  background: #fff;
  border-radius: 8px;
}
textarea {
  min-height: 104px;
  resize: vertical;
}
button {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  margin: 12px 0;
  border: 2px solid var(--brand);
  border-radius: 8px;
  color: var(--brand);
  background: var(--bg);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover {
  background: var(--ok-bg);
}
button.primary {
  background: var(--brand);
  color: #fff;
}
button.primary:hover {
  background: #16472c;
}
button.danger {
  border-color: var(--error);
  color: var(--error);
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
input:disabled,
select:disabled {
  background: var(--panel);
}
:focus-visible {
  outline: 3px solid #0b57d0;
  outline-offset: 3px;
}
.muted,
.help {
  color: var(--muted);
  font-size: 1rem;
}
.help {
  margin-top: 4px;
}
.preview {
  background: var(--panel);
  padding: 16px;
  border-radius: 8px;
}
.preview h3 {
  margin-top: 8px;
}
.notice-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.alert,
.status {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.alert {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid var(--error);
}
.status {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok);
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  font-weight: 500;
}
.choice input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 3px 0;
  accent-color: var(--brand);
}
.choice span {
  flex: 1;
  min-width: 0;
}
.choice strong {
  display: block;
}
.facts {
  margin: 0;
}
.facts div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  font-size: 0.94rem;
  color: var(--muted);
}
dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.request-list {
  list-style: none;
  padding: 0;
}
.request-list button {
  text-align: left;
}
.request-list small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.private-link {
  font-size: 0.95rem !important;
}
.actions {
  margin-top: 20px;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 650;
}
.honeypot {
  display: none;
}
.operator-grid {
  display: grid;
  gap: 32px;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
.receipt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}
a {
  color: var(--brand);
  overflow-wrap: anywhere;
}
input[readonly] {
  background: var(--panel);
}
@media (min-width: 850px) {
  .operator-grid {
    grid-template-columns: 19rem minmax(0, 1fr);
  }
  .request-list {
    max-height: 70vh;
    overflow: auto;
  }
  .form-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background-color 0.15s ease-out;
  }
}
