:root {
  --sea: #007e78;
  --deep: #073f49;
  --sun: #ffd16a;
  --paper: #f6faf9;
  --line: #dce7e4;
  --muted: #526d69;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font:
    1rem/1.55 "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: var(--sea);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.7rem;
  max-width: 100%;
  min-width: 0;
}
input,
select,
textarea {
  width: 100%;
  background: white;
  color: var(--deep);
}
textarea {
  resize: vertical;
}
button {
  background: var(--sea);
  color: white;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--deep);
}
:focus-visible {
  outline: 3px solid #b77900;
  outline-offset: 3px;
}
.top {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 1.2rem max(1rem, 5vw);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand {
  font-size: 1.65rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--deep);
}
.brand small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18rem;
}
.top > span {
  font-size: 0.85rem;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 1.5rem 1rem 3rem;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  margin: 0.3rem 0 1rem;
}
p {
  margin: 0.6rem 0;
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 0.35rem;
}
code {
  overflow-wrap: anywhere;
}
.panel,
.record {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1.2rem;
}
.panel {
  margin-bottom: 1.2rem;
}
#login {
  max-width: 620px;
  margin: 2rem auto;
}
#login-form {
  display: grid;
  gap: 0.8rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  color: var(--sea);
}
.toolbar,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.toolbar {
  justify-content: space-between;
}
nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
nav a {
  padding: 0.6rem 1rem;
  background: var(--sun);
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 650;
}
.block {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.records {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.record {
  min-width: 0;
  overflow-wrap: anywhere;
}
.record dl {
  margin: 0.7rem 0;
}
.record dt {
  font-weight: 650;
  font-size: 0.8rem;
  color: var(--muted);
}
.record dd {
  margin: 0 0 0.55rem;
  white-space: pre-wrap;
}
.record ul {
  padding-left: 1.2rem;
}
.badge {
  display: inline-block;
  background: #e2f2ef;
  border-radius: 1rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 650;
}
.record form {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}
.fields {
  display: grid;
  gap: 0.8rem;
}
.checks {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checks input {
  width: auto;
  margin: 0;
}
#feedback {
  padding: 0.6rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#feedback:empty {
  display: none;
}
#feedback[data-error="true"] {
  background: #fff0ec;
  color: #952d16;
  border: 1px solid #e3b5a6;
}
footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (min-width: 760px) {
  .records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wide {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.account-entry {
  display: inline-block;
  padding: 0.65rem 0.9rem;
  border-radius: 0.4rem;
  background: #e4f2ed;
  color: #007e78;
  font-weight: 650;
}
