:root {
  font-family: Inter, system-ui, sans-serif;
  color: #172c25;
  background: #f5f6f0;
  line-height: 1.65;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1120px;
  margin: auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
a {
  color: #086341;
}
main {
  max-width: 720px;
  margin: 28px auto;
  padding: 36px;
  background: white;
  border: 1px solid #d8dfd5;
  border-radius: 16px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
}
h2 {
  line-height: 1.3;
}
label {
  display: block;
  font-weight: 600;
  margin: 18px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #9ea9a1;
  border-radius: 7px;
  font: inherit;
  background: white;
  color: inherit;
}
textarea {
  min-height: 120px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
}
.check input {
  width: 20px;
  min-width: 20px;
  margin-top: 6px;
}
button,
.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #086341;
  border-radius: 999px;
  background: #086341;
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button.secondary {
  background: white;
  color: #086341;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b16e16;
  outline-offset: 3px;
}
summary:focus-visible,
.policy-scroll:focus-visible {
  outline: 3px solid #b16e16;
  outline-offset: 3px;
}
#message {
  color: #8c3517;
  white-space: pre-wrap;
}
#environment {
  color: #795200;
  font-size: 0.85rem;
}
.policy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.consent-summary {
  padding-left: 22px;
}
.consent-summary li + li {
  margin-top: 10px;
}
details.consent-details {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #d8dfd5;
  border-radius: 10px;
  background: #f5f6f0;
}
.consent-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #086341;
}
.policy-scroll {
  max-height: min(55vh, 420px);
  overflow-y: auto;
  padding: 0 16px 16px;
  border: 1px solid #d8dfd5;
  border-radius: 6px;
  background: white;
}
.consent-decline {
  margin-top: 12px;
}
details {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
footer {
  max-width: 1000px;
  padding: 24px;
  margin: auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.save-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fffdf5;
  border-bottom: 1px solid #d6dacd;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font: 14px system-ui;
}
.ricco-retention-reminder {
  font-size: 0.95rem;
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px solid currentColor;
}
.save-bar button {
  padding: 5px 14px;
  font-size: 14px;
}
.save-bar [role='status'] {
  /* Reserve the same space for pending, saving and saved messages. */
  flex: 1 0 18rem;
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
  margin-right: auto;
}
#app input[type='text'],
#app textarea {
  font-size: 1rem;
}
@media (max-width: 720px) {
  .save-bar [role='status'] {
    flex-basis: 100%;
  }
}
.recovery {
  position: fixed;
  inset: 0;
  background: #152b2580;
  z-index: 300;
  display: grid;
  place-items: center;
}
.recovery > div {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  margin: 20px;
  padding: 32px;
}
.recovery button {
  margin: 8px;
}
.admin {
  max-width: 1200px;
}
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
td,
th {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow: auto;
}
.metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.metric {
  padding: 18px;
  background: #edf4ed;
  border-radius: 10px;
}
.metric strong {
  display: block;
  font-size: 2rem;
}
.muted {
  color: #596c60;
  font-size: 0.9rem;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  main {
    margin: 10px;
    padding: 24px;
  }
  h1 {
    font-size: 2rem;
  }
  header {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.loading #app,
.loading .nav-bar {
  visibility: hidden;
}

[hidden] {
  display: none !important;
}
