:root {
  --navy: #17323f;
  --ink: #203843;
  --muted: #62747b;
  --paper: #f6f5f1;
  --line: #dce3e1;
  --accent: #286a64;
  --warning: #865c23;
  --danger: #a73c36;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
header {
  background: var(--navy);
  color: white;
  padding: 23px max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header a {
  color: white;
  text-decoration: none;
}
header .brand {
  font:
    25px Georgia,
    serif;
  letter-spacing: 0.2px;
}
header small {
  display: block;
  font: 10px system-ui;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 2px;
}
main {
  max-width: 1208px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
}
h1 {
  font:
    38px/1.15 Georgia,
    serif;
  margin: 0 0 10px;
}
h2 {
  font:
    25px Georgia,
    serif;
  margin: 0 0 18px;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.topline,
.row,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.actions {
  justify-content: flex-start;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stats {
  display: flex;
  gap: 28px;
  margin: 24px 0;
}
.stat strong {
  display: block;
  font:
    32px Georgia,
    serif;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
  padding-bottom: 14px;
}
button,
.button {
  font: 600 14px system-ui;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 16px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
}
button.secondary,
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--navy);
}
button.quiet {
  background: transparent;
  color: var(--ink);
}
button.danger {
  background: var(--danger);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.tabs button {
  background: transparent;
  color: var(--muted);
}
.tabs button.active {
  background: var(--navy);
  color: white;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bccbc9;
  border-radius: 6px;
  background: #fff;
  font: 15px system-ui;
  color: var(--ink);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 9px;
}
input[type="file"] {
  padding: 10px;
  font-size: 13px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7fbdac;
  outline-offset: 3px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  background: #e7f0ed;
  color: var(--accent);
  display: inline-block;
}
.badge.warning {
  background: #fff0d6;
  color: var(--warning);
}
.badge.danger {
  background: #fae6e3;
  color: var(--danger);
}
.notice {
  padding: 14px 18px;
  background: #fff2da;
  border-left: 3px solid #b98434;
  border-radius: 5px;
  margin: 15px 0;
}
.demo {
  background: #e5ece9;
  color: var(--navy);
  padding: 8px 24px;
  text-align: center;
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 38px 15px;
  color: var(--muted);
}
.listitem {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.listitem:last-child {
  border-bottom: 0;
}
.listitem p {
  margin: 3px 0;
  font-size: 13px;
}
.listitem strong {
  font-weight: 650;
}
.listitem button {
  font-size: 12px;
}
.file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
a {
  color: var(--accent);
}
.price {
  font:
    32px Georgia,
    serif;
  margin: 12px 0;
}
.step {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.step span {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 12px;
}
.step h2 {
  margin: 0;
  font-size: 22px;
}
.portal {
  max-width: 940px;
}
.portal .lead {
  max-width: 620px;
}
.login {
  max-width: 440px;
  margin: 60px auto;
}
.portalnav {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  max-width: 900px;
  width: calc(100vw - 32px);
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #102b36aa;
}
.dialogclose {
  float: right;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.5 monospace;
  max-height: 300px;
  overflow: auto;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  max-width: 90vw;
  z-index: 100;
  box-shadow: 0 6px 25px #0003;
}
.toast.error {
  background: var(--danger);
}
.checklist {
  padding-left: 20px;
}
.checklist li {
  margin: 8px 0;
}
.small {
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.saved {
  font-size: 12px;
  color: var(--accent);
}
@media (max-width: 760px) {
  header {
    padding: 18px 20px;
  }
  .brand {
    font-size: 22px !important;
  }
  main {
    padding: 25px 17px 60px;
  }
  h1 {
    font-size: 31px;
  }
  .grid,
  .two {
    grid-template-columns: 1fr;
  }
  .listitem {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .listitem > div:nth-child(3) {
    grid-column: 1;
  }
  .card {
    padding: 18px;
  }
  .stats {
    gap: 22px;
  }
  .tabs {
    gap: 2px;
  }
  .tabs button {
    padding: 9px 11px;
  }
  .topline {
    align-items: flex-start;
  }
  dialog {
    padding: 18px;
  }
  .portal .button {
    max-width: 100%;
  }
  .actions {
    gap: 8px;
  }
}
