:root {
  --surface-page: #f8f5eb;
  --surface-card: #fff;
  --color-text: #292b28;
  --color-muted: #62665e;
  --color-action: #a44f27;
  color-scheme: light;
  font:
    100% / 1.5 system-ui,
    sans-serif;
  color: var(--color-text);
  background: var(--surface-page);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 520px;
  margin: auto;
  padding: 20px 24px;
}
header a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
}
main {
  max-width: 520px;
  margin: auto;
  padding: 0 20px 28px;
}
.card {
  background: var(--surface-card);
  border: 1px solid #ddd8ca;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
}
h1 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 20px;
}
h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
p {
  overflow-wrap: anywhere;
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0;
}
input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border: 1px solid #b8b7af;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  background: var(--surface-card);
  color: inherit;
}
input[readonly] {
  font-family: ui-monospace, monospace;
  font-size: 14px;
}
button,
.button {
  display: inline-block;
  cursor: pointer;
  min-height: 48px;
  border: 1px solid #d2cabc;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  background: var(--surface-card);
  color: inherit;
  text-align: center;
  text-decoration: none;
}
form button {
  width: 100%;
}
.primary {
  color: var(--surface-card);
  background: var(--color-action);
  border-color: var(--color-action);
}
.link {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #336d83;
  outline-offset: 3px;
}
small,
.muted {
  font-weight: 400;
  color: var(--color-muted);
}
.permissions {
  padding-left: 20px;
}
.permissions li {
  padding: 6px 0;
}
.actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  background: var(--surface-page);
}
.actions button {
  flex: 1;
}
#message {
  margin: 12px 4px;
}
#consents {
  list-style: none;
  padding: 0;
}
#consents li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e7e3da;
}
[hidden] {
  display: none;
}
@media (max-height: 450px) {
  header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .card {
    padding: 18px;
  }
}

#message:not(:empty) {
  background: var(--surface-card);
  border: 1px solid #ddd8ca;
  border-radius: 10px;
  padding: 12px;
}
