:root {
  --ink: #182821;
  --muted: #5c6a62;
  --paper: #f3f3ed;
  --line: #d9dfd5;
  --green: #234b39;
  --lime: #dafa96;
  --white: #fff;
  --amber: #7b4b0a;
  --red: #a3302c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.5 "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #609330;
}
button {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
button.small {
  padding: 5px 10px;
  font-size: 12px;
}
a {
  color: inherit;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
#shell {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 228px;
  flex-shrink: 0;
  padding: 36px 24px;
  background: #15352a;
  color: #e8eee8;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 35px;
  font-weight: 900;
  letter-spacing: -2px;
  text-decoration: none;
  line-height: 1;
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 500;
  margin-top: 12px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9cbaa8;
  margin-top: 52px;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: left;
  background: transparent;
  border: 0;
  color: #c4d5ca;
  font-weight: 500;
  padding: 11px 12px;
}
nav button[aria-current="page"] {
  background: var(--lime);
  color: #15352a;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #b6c9bc;
}
.sidebar-bottom button {
  color: #e8eee8;
  border-color: #496454;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 5px;
}
.workspace {
  margin-left: 228px;
  flex: 1;
  min-width: 0;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  font-size: 12px;
  color: var(--muted);
}
.environment {
  font-size: 10px;
  letter-spacing: 1px;
}
main {
  padding: 38px 42px;
  max-width: 1800px;
  margin: auto;
  min-height: calc(100vh - 132px);
}
h1 {
  font:
    400 46px/1.08 Georgia,
    serif;
  letter-spacing: -1.3px;
  margin: 10px 0 16px;
}
h2 {
  font:
    400 27px/1.2 Georgia,
    serif;
  letter-spacing: -0.5px;
  margin: 0 0 15px;
}
h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.heading p {
  max-width: 720px;
  margin-bottom: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 25px 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 7px;
}
.metric strong {
  font:
    400 40px/1.2 Georgia,
    serif;
  display: block;
  margin: 12px 0;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 25px;
  margin-bottom: 24px;
}
.dark-panel {
  background: #214938;
  color: #f3f6ec;
  border: 0;
}
.dark-panel .muted {
  color: #ceddcc;
}
.dark-panel button {
  background: var(--lime);
  color: #17352b;
  border: 0;
}
.callout {
  padding: 15px 18px;
  border-left: 3px solid #b18b37;
  background: #f8f2e5;
  color: #654916;
  margin: 18px 0;
  font-size: 13px;
}
.callout.ok {
  border-color: #537b38;
  background: #eef5e9;
  color: #305227;
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.3px;
  background: #edf0e8;
  color: #4e5f52;
  white-space: nowrap;
}
.tag.good {
  background: #e4f0d8;
  color: #315321;
}
.tag.warn {
  background: #f5ead3;
  color: #785010;
}
.tag.bad {
  background: #f5e0df;
  color: #8b2f2b;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 20px 0;
}
.toolbar label {
  min-width: 180px;
  flex: 1;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  background: #edf0e9;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #526454;
  font-weight: 600;
  padding: 13px 16px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #e7ebe3;
  padding: 14px 16px;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
tr:hover td {
  background: #f8faf5;
}
td .small {
  display: block;
  color: var(--muted);
}
.empty {
  padding: 38px;
  text-align: center;
  color: var(--muted);
}
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border: 0;
}
.step .number {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  padding-top: 3px;
  flex-shrink: 0;
}
.step p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
input,
select,
textarea {
  background: white;
  color: var(--ink);
  border: 1px solid #aebbad;
  border-radius: 4px;
  padding: 10px 11px;
  width: 100%;
  min-width: 0;
  font-weight: 400;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.signin {
  max-width: 520px;
  margin: 12vh auto;
  padding: 32px;
}
.signin form {
  margin: 30px 0;
}
.signin h1 {
  font-size: 57px;
}
.signin button {
  margin-top: 8px;
}
/* The Google sign-in link looks like the primary button. */
a.button {
  display: inline-block;
  margin-top: 8px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
}
a.button:hover {
  filter: brightness(1.12);
}
#message {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 540px;
  padding: 18px 22px;
  background: #183b2c;
  color: white;
  box-shadow: 0 8px 35px #0002;
  border-radius: 7px;
  z-index: 20;
}
#message.error {
  background: #812d29;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0;
  max-width: 740px;
  width: calc(100% - 30px);
  max-height: 90vh;
  overflow: hidden;
  color: var(--ink);
}
dialog[open] {
  display: flex;
  flex-direction: column;
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.dialog-header h2 {
  margin: 0;
  min-width: 0;
}
.dialog-header button {
  flex: none;
  min-height: 44px;
}
#dialog-content {
  padding: 20px 28px 28px;
  overflow: auto;
  min-height: 0;
}
dialog::backdrop {
  background: #10281ecc;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f0f3ec;
  padding: 16px;
  border-radius: 4px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 17px 42px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.money {
  white-space: nowrap;
}
.result-number {
  font:
    400 55px Georgia,
    serif;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
@media (max-width: 1000px) {
  aside {
    width: 184px;
    padding: 28px 17px;
  }
  .workspace {
    margin-left: 184px;
  }
  main {
    padding: 30px 25px;
  }
  header {
    padding: 0 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  #shell {
    display: block;
  }
  aside {
    position: static;
    width: auto;
    padding: 18px;
  }
  .brand {
    font-size: 25px;
  }
  .brand span {
    display: inline;
    margin-left: 15px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 18px;
  }
  nav button {
    white-space: nowrap;
    font-size: 12px;
  }
  .workspace {
    margin: 0;
  }
  header {
    height: 46px;
    padding: 0 18px;
  }
  .environment {
    display: none;
  }
  main {
    padding: 25px 18px;
  }
  h1 {
    font-size: 36px;
  }
  .heading {
    display: block;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 32px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    gap: 0;
  }
  .toolbar {
    display: block;
  }
  .toolbar > * {
    margin-bottom: 10px;
  }
  footer {
    padding: 16px 18px;
  }
  footer span {
    display: none;
  }
  #message {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .signin h1 {
    font-size: 43px;
  }
  .signin {
    margin: 6vh auto;
  }
  .heading button {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  main {
    animation: arrive 0.22s ease-out;
  }
  @keyframes arrive {
    from {
      opacity: 0.4;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

aside {
  overflow-y: auto;
}

@media (max-width: 760px) {
  .source-advice-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .source-advice-table table,
  .source-advice-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .source-advice-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .source-advice-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }
  .source-advice-table td {
    display: block;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .source-advice-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
  }
  .source-advice-table td:first-child,
  .source-advice-table td:last-child {
    grid-column: 1 / -1;
  }
  .source-advice-table td:first-child::before,
  .source-advice-table td:last-child::before {
    display: none;
  }
}

.match-list {
  display: grid;
  gap: 12px;
}
.match-card h3 {
  margin: 0 0 4px;
}
.match-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  margin: 10px 0;
}
.match-choice {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
