@font-face {
  font-family: Figtree;
  src: url("/assets/figtree-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("/assets/figtree-semibold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  font:
    15px/1.5 Figtree,
    Arial,
    sans-serif;
  color: #13355a;
  background: white;
  --navy: #13355a;
  --cyan: #8be6f2;
  --muted: #596b80;
  --line: #dbe2e8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  border-top: 5px solid var(--navy);
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  min-height: 44px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #20bedc;
  outline-offset: 3px;
}
p {
  color: var(--muted);
  margin: 0;
}
h1,
h2 {
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 26px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  padding: 12px;
  z-index: 100;
  background: white;
}
.skip:focus {
  top: 10px;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  background: var(--navy);
  padding: 7px 11px;
  border-radius: 2px;
  flex: none;
}
.logo img {
  width: 116px;
  height: auto;
}
.wordmark {
  font-size: 11px;
  letter-spacing: 0.14em;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 20px;
  font-size: 13px;
}
nav a {
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding: 11px 0;
}
.guide-button {
  font-size: 13px;
}
#account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
#logout {
  font-size: 12px;
  white-space: nowrap;
}
main {
  width: 100%;
  min-height: 60vh;
}
.context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 32px;
  background: #eef9fb;
  border-bottom: 1px solid #cee9ed;
  min-height: 76px;
}
.context-bar > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.context-bar label,
.context-bar span {
  font-size: 10px;
  letter-spacing: 0.1em;
}
select {
  background: white;
  border: 1px solid #bccbd8;
  border-radius: 50px;
  min-width: 150px;
  max-width: 65vw;
  padding: 10px 32px 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
select:disabled {
  color: var(--navy);
  opacity: 1;
  cursor: default;
}
.context-bar .guide-button {
  font-size: 20px;
  min-width: 44px;
}

#embed {
  width: calc(100% - 32px);
  margin: 0 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  min-height: 250px;
}
metabase-dashboard {
  display: block;
  width: 100%;
  height: max(1800px, 100vh);
}
.report-footnote {
  margin: 17px 32px 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}
footer span {
  letter-spacing: 0.08em;
}
#loading {
  margin: 40px 32px;
}
#error {
  margin: 24px 32px;
  padding: 20px;
  border: 1px solid #dfb9a0;
  background: #fff5ed;
  color: #7d3610;
}
.auth-panel {
  max-width: 440px;
  margin: 64px auto 80px;
  padding: 0 24px;
}
.auth-panel > p {
  margin: 15px 0 25px;
  font-size: 14px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
form label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}
input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #b3c3d2;
  border-radius: 4px;
}
form .pill {
  margin-top: 18px;
}
.pill {
  background: var(--navy);
  color: white;
  border-radius: 60px;
  padding: 13px 23px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 46px;
}
.pill:hover {
  background: #215183;
}
.text-button {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hint {
  font-size: 12px;
}
#auth-message {
  background: #eef9fb;
  padding: 16px;
  border-radius: 4px;
  font-size: 13px;
}
#denied {
  padding: 50px 32px;
  max-width: 720px;
}
#denied p {
  margin: 18px 0 25px;
}
dialog {
  color: var(--navy);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 100px #082b5240;
  width: min(610px, calc(100% - 32px));
  padding: 32px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #08244080;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
#close-guide {
  font-size: 28px;
  min-width: 44px;
}
dialog h2 {
  margin-bottom: 18px;
}
dialog p,
dialog dd {
  font-size: 14px;
  color: var(--muted);
}
dialog dl {
  margin: 25px 0;
}
dialog dt {
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
}
dialog dd {
  margin: 5px 0 0;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .wordmark {
    display: none;
  }
  nav {
    margin-left: 0;
  }
  #account-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 650px) {
  header {
    padding: 13px 18px;
    gap: 14px;
    min-height: 78px;
  }
  .logo img {
    width: 106px;
  }
  nav,
  #account-name {
    display: none;
  }
  #account {
    margin-left: auto;
    gap: 0;
  }
  main {
    min-height: 65vh;
  }
  .context-bar {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .context-bar > div {
    gap: 12px;
  }
  .context-bar label,
  .context-bar span {
    font-size: 9px;
  }
  .context-bar > div:last-child {
    margin-left: auto;
  }
  .context-bar .guide-button {
    margin-right: -10px;
  }
  select {
    min-width: 130px;
    max-width: 70vw;
  }

  #embed {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .report-footnote {
    margin: 15px 20px 28px;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }
  footer {
    padding: 22px 20px;
    flex-wrap: wrap;
    font-size: 10px;
    gap: 12px;
  }
  .auth-panel {
    margin: 40px auto 60px;
  }
  dialog {
    padding: 24px;
  }
  #denied {
    padding: 35px 20px;
  }
  #error {
    margin: 20px;
  }
}
