:root {
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #161616;
  background: #faf9f7;
  font-synthesis: none;
  --brand: #792c2c;
  --orange: #ff7f28;
  --line: #e5e5e5;
  --muted: #626262;
}
.staff-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 18px;
}
.login-view > header,
.login-view > footer {
  display: none;
}
.login-view main {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 408px;
  margin: 0 auto;
  padding: 48px 24px;
}
.login-content {
  width: 100%;
}
.login-logo {
  display: block;
  object-fit: contain;
  margin: 0 auto 40px;
}
#login-form .password-label {
  margin-top: 20px;
}
#login-form .button {
  width: 100%;
  margin: 20px 0 0;
}
#login-form .button:disabled,
#login-form input:disabled {
  cursor: not-allowed;
}
#login-message {
  text-align: center;
  margin: 12px 0 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
header {
  max-width: 1000px;
  margin: auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
header img {
  display: block;
  object-fit: contain;
}
header span {
  border-left: 1px solid #d5c9c5;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
main {
  max-width: 720px;
  margin: 44px auto 90px;
  padding: 0 24px;
  min-height: 60vh;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(32px, 6vw, 46px);
  font-weight: 600;
  margin: 12px 0 20px;
}
h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 12px 0 20px;
}
h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0 12px;
}
p {
  margin: 0 0 20px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}
.lead {
  font-size: 18px;
  max-width: 510px;
  color: var(--muted);
}
.form-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 6px 24px #2a0b0710;
}
.form-card:hover {
  border-color: #b59387;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff1e8;
  color: var(--brand);
}
.icon svg {
  width: 24px;
  height: 24px;
}
.badge,
.small {
  font-size: 13px;
  color: var(--muted);
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  color: var(--brand);
  font-weight: 600;
}
.arrow {
  font-size: 24px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}
.steps {
  display: flex;
  gap: 6px;
  margin: 18px 0 24px;
}
.steps span {
  flex: 1;
  height: 4px;
  background: #e9e4e1;
  border-radius: 9px;
}
.steps .done {
  background: var(--brand);
}
.step-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.field {
  margin: 26px 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 26px 0;
  min-width: 0;
}
legend,
.label {
  display: block;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  width: 100%;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.choices {
  display: grid;
  gap: 9px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  line-height: 1.4;
}
.choice:has(input:checked) {
  border-color: var(--brand);
  background: #fcf5f2;
}
.choice input {
  accent-color: var(--brand);
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 0;
}
.choice:has(input:disabled) {
  opacity: 0.55;
}
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #bcb9b6;
  border-radius: 10px;
  min-height: 50px;
  padding: 12px;
  background: white;
  color: #161616;
}
textarea {
  resize: vertical;
  min-height: 94px;
}
select {
  padding-right: 30px;
}
input::placeholder,
textarea::placeholder {
  color: #777;
}
.other {
  margin-top: 12px;
}
.frequency {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.frequency label {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 13px 20px;
  min-height: 50px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.button.primary {
  flex: 1;
}
.button.secondary {
  background: #fff;
  border-color: #d4cdca;
  color: var(--brand);
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.text-button {
  background: none;
  border: 0;
  color: var(--brand);
  text-decoration: underline;
  padding: 12px 0;
  cursor: pointer;
  font-size: 14px;
}
.notice {
  padding: 14px 16px;
  background: #f4f4f4;
  border-radius: 10px;
  font-size: 14px;
  margin: 16px 0;
}
.notice p:last-child {
  margin: 0;
}
.error {
  color: #792c2c;
  background: #fff1ed;
  border-left: 3px solid #792c2c;
}
.success-icon {
  height: 60px;
  width: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7e8df;
  color: var(--brand);
  font-size: 28px;
  margin-bottom: 26px;
}
.receipt {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.draft-note {
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0;
}
.summary {
  display: grid;
  gap: 12px;
}
.summary p {
  margin: 0;
}
.optional {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.required {
  font-size: 12px;
  color: var(--brand);
}
footer {
  max-width: 1000px;
  margin: auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--brand);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
footer span {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #d77947;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 600px) {
  .choices.compact {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  header {
    padding: 20px 22px;
  }
  main {
    margin-top: 22px;
    padding: 0 18px;
    margin-bottom: 48px;
  }
  .panel {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .form-card {
    padding: 22px;
  }
  footer {
    padding: 22px;
    font-size: 12px;
  }
  .lead {
    font-size: 16px;
  }
  h2 {
    font-size: 26px;
  }
  .actions {
    gap: 9px;
  }
  .button {
    padding-inline: 16px;
  }
}
