.tl-guide-dialog {
  --tl-navy: #12385f;
  --tl-teal: #0e7490;
  --tl-gold: #c9a227;
  --tl-ink: #172b3d;
  --tl-muted: #607181;
  --tl-line: #d9e3e8;
  width: min(100% - 2rem, 38rem);
  max-width: 38rem;
  max-height: min(90dvh, 48rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(18, 56, 95, .16);
  border-radius: 1.25rem;
  background: #fbfcfa;
  color: var(--tl-ink);
  box-shadow: 0 25px 80px rgba(15, 37, 56, .25), 0 2px 8px rgba(15, 37, 56, .08);
  font-family: "TeamLaw Outfit", "Outfit", sans-serif;
}

.tl-guide-dialog::backdrop {
  background: rgba(16, 34, 49, .5);
  backdrop-filter: blur(3px);
}

.tl-guide-shell {
  position: relative;
  padding: clamp(1.25rem, 5vw, 2.25rem);
}

.tl-guide-topline {
  display: flex;
  min-height: 2rem;
  align-items: center;
  gap: .65rem;
  padding-right: 2.5rem;
  color: var(--tl-navy);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.tl-guide-mark {
  width: .65rem;
  height: .65rem;
  border: 2px solid var(--tl-teal);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .1);
}

.tl-guide-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--tl-line);
  border-radius: 50%;
  background: transparent;
  color: var(--tl-muted);
  font-family: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.tl-guide-close:hover {
  border-color: #9bb6c1;
  background: #f1f7f7;
  color: var(--tl-navy);
}

.tl-guide-progress {
  height: 3px;
  margin: 1.15rem 0 1.8rem;
  overflow: hidden;
  border-radius: 9px;
  background: #e6ecec;
}

.tl-guide-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--tl-teal);
  transition: width .22s ease;
}

.tl-guide-content {
  animation: tl-guide-in .2s ease both;
}

.tl-guide-eyebrow {
  margin: 0 0 .55rem;
  color: var(--tl-teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tl-guide-heading {
  max-width: 31rem;
  margin: 0;
  color: var(--tl-navy);
  font-size: clamp(1.65rem, 5.4vw, 2.25rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.tl-guide-lead {
  margin: .9rem 0 0;
  color: var(--tl-ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.tl-guide-copy {
  max-width: 30rem;
  margin: .75rem 0 0;
  color: var(--tl-muted);
  font-size: .97rem;
  line-height: 1.65;
}

.tl-guide-reassurance {
  margin: 1.2rem 0 0;
  color: #59706e;
  font-size: .8rem;
  font-weight: 700;
}

.tl-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 1.6rem;
}

.tl-guide-actions-between {
  justify-content: space-between;
}

.tl-guide-primary,
.tl-guide-choice,
.tl-guide-text-button,
.tl-guide-result-reopen,
.tl-guide-result-full {
  font-family: inherit;
  cursor: pointer;
}

.tl-guide-primary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.15rem;
  border: 1px solid var(--tl-teal);
  border-radius: .7rem;
  background: var(--tl-teal);
  color: #fff;
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}

.tl-guide-primary:hover {
  transform: translateY(-1px);
  border-color: var(--tl-navy);
  background: var(--tl-navy);
}

.tl-guide-primary:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.tl-guide-text-button {
  min-height: 2.75rem;
  padding: .55rem .2rem;
  border: 0;
  background: transparent;
  color: var(--tl-navy);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(18, 56, 95, .35);
  text-underline-offset: 3px;
}

.tl-guide-text-button:hover {
  color: var(--tl-teal);
  text-decoration-color: currentColor;
}

.tl-guide-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: 1.35rem;
}

.tl-guide-choice {
  display: flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: flex-start;
  padding: .7rem .85rem;
  border: 1px solid var(--tl-line);
  border-radius: .75rem;
  background: #fff;
  color: var(--tl-ink);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.tl-guide-choice:hover {
  transform: translateY(-1px);
  border-color: #7eafb8;
  background: #f3f9f7;
}

.tl-guide-choice.is-selected {
  border-color: var(--tl-teal);
  background: #eaf5f3;
  color: var(--tl-navy);
  box-shadow: inset 0 0 0 1px var(--tl-teal);
}

.tl-guide-field {
  margin-top: 1.25rem;
}

.tl-guide-label {
  display: block;
  margin-bottom: .45rem;
  color: var(--tl-navy);
  font-size: .85rem;
  font-weight: 750;
}

.tl-guide-textarea {
  display: block;
  width: 100%;
  min-height: 6.5rem;
  resize: vertical;
  padding: .8rem .9rem;
  border: 1px solid #c7d5da;
  border-radius: .7rem;
  background: #fff;
  color: var(--tl-ink);
  font: inherit;
  font-size: .92rem;
  line-height: 1.5;
}

.tl-guide-textarea::placeholder {
  color: #87969d;
}

.tl-guide-count {
  margin: .35rem 0 0;
  color: var(--tl-muted);
  font-size: .72rem;
  text-align: right;
}

.tl-guide-privacy {
  max-width: 32rem;
  margin: .9rem 0 0;
  padding-left: .8rem;
  border-left: 2px solid var(--tl-gold);
  color: #52666f;
  font-size: .76rem;
  line-height: 1.55;
}

.tl-guide-submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem 1rem;
}

.tl-guide-error {
  margin: 1rem 0 0;
  padding: .75rem .85rem;
  border-left: 3px solid #ae4b3f;
  border-radius: 0 .45rem .45rem 0;
  background: #fbefec;
  color: #7b3029;
  font-size: .86rem;
  line-height: 1.5;
}

.tl-guide-analyzing {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: .85rem;
  margin-top: 1.4rem;
  color: var(--tl-navy);
  font-size: .9rem;
  font-weight: 700;
}

.tl-guide-analysis-mark {
  position: relative;
  display: inline-block;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  border: 1px solid #b8d1d2;
  border-radius: 50%;
  background: #eff7f4;
}

.tl-guide-analysis-mark::before,
.tl-guide-analysis-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--tl-teal);
  content: "";
  transform: translate(-50%, -50%);
  animation: tl-guide-pulse 1.2s ease-in-out infinite alternate;
}

.tl-guide-analysis-mark::after {
  margin-left: .5rem;
  animation-delay: .25s;
}

.tl-guide-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.5rem auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  border-block: 1px solid #d8e4e3;
  background: #f1f7f4;
}

.tl-guide-result-banner[hidden],
.tl-guide-launcher[hidden] {
  display: none;
}

#docvault[hidden] {
  display: none !important;
}

.tl-guide-supplemental {
  padding: clamp(2rem, 5vw, 4rem) max(1.25rem, calc((100% - 72rem) / 2));
  border-top: 1px solid #dbe5e9;
  background: #f4f8f8;
  color: #172b3d;
}

.tl-guide-supplemental-inner {
  max-width: 72rem;
  margin-inline: auto;
}

.tl-guide-supplemental-title {
  margin: 0;
  color: #12385f;
  font-family: "TeamLaw Outfit", "Outfit", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.tl-guide-supplemental-summary {
  max-width: 54rem;
  margin: .65rem 0 1.25rem;
  color: #52666f;
  font-size: 1rem;
  line-height: 1.65;
}

.tl-guide-supplemental-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .75rem;
}

.tl-guide-supplemental-item {
  padding: 1rem 1.1rem;
  border: 1px solid #d8e4e7;
  border-radius: .85rem;
  background: #fff;
}

.tl-guide-supplemental-item-heading {
  margin: 0;
  color: #0f3d75;
  font-family: "TeamLaw Outfit", "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

.tl-guide-supplemental-item-body {
  margin: .45rem 0 0;
  color: #52666f;
  font-size: .9rem;
  line-height: 1.6;
}

.tl-guide-supplemental-image {
  display: block;
  width: min(100%, 36rem);
  height: auto;
  margin: 1.25rem 0;
  border: 1px solid #d8e4e7;
  border-radius: .85rem;
  background: #fff;
}

.tl-guide-supplemental-source {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  margin-top: 1rem;
  color: #0e7490;
  font-size: .9rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tl-guide-supplemental-source:focus-visible {
  outline: 3px solid #c9a227;
  outline-offset: 3px;
}

.tl-guide-result-copy {
  max-width: 46rem;
}

.tl-guide-result-eyebrow {
  margin: 0 0 .35rem;
  color: var(--tl-teal);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.tl-guide-result-heading {
  margin: 0;
  color: var(--tl-navy);
  font-family: "TeamLaw Outfit", "Outfit", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 750;
  line-height: 1.2;
}

.tl-guide-result-detail {
  margin: .45rem 0 0;
  color: #52666f;
  font-size: .92rem;
  line-height: 1.5;
}

.tl-guide-result-controls {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}

.tl-guide-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem;
  padding: .2rem;
  border: 1px solid #d4e1e1;
  border-radius: .7rem;
  background: #e8f1ef;
}

.tl-guide-view-option {
  min-height: 2rem;
  padding: .38rem .55rem;
  border: 1px solid transparent;
  border-radius: .48rem;
  background: transparent;
  color: #395767;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.tl-guide-view-option[aria-pressed="true"] {
  border-color: #b8d2d1;
  background: #fbfcfa;
  color: var(--tl-navy);
  box-shadow: 0 1px 2px rgba(18, 56, 95, .08);
}

.tl-guide-view-option:hover {
  color: var(--tl-teal);
}

.tl-guide-view-option:focus-visible,
.tl-guide-result-full:focus-visible,
.tl-guide-result-reopen:focus-visible {
  outline: 3px solid #c9a227;
  outline-offset: 2px;
}

.tl-guide-result-reopen,
.tl-guide-result-full {
  min-height: 2rem;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: var(--tl-navy);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tl-guide-result-full {
  color: var(--tl-teal);
}

.tl-guide-launcher {
  position: fixed;
  z-index: 45;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 2.8rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: var(--tl-navy, #12385f);
  color: #fff;
  box-shadow: 0 7px 20px rgba(16, 42, 63, .2);
  font-family: "TeamLaw Outfit", "Outfit", sans-serif;
  font-size: .83rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease;
}

.tl-guide-launcher:hover {
  transform: translateY(-2px);
  background: #0e7490;
}

.tl-guide-dialog :focus-visible,
.tl-guide-launcher:focus-visible,
.tl-guide-result-banner :focus-visible {
  outline: 3px solid #c9a227;
  outline-offset: 3px;
}

@keyframes tl-guide-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tl-guide-pulse {
  from { opacity: .5; transform: translate(-50%, -50%) scale(.78); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 560px) {
  .tl-guide-dialog {
    width: calc(100% - 1rem);
    max-height: min(92dvh, 46rem);
    border-radius: 1rem;
  }

  .tl-guide-shell {
    padding: 1.1rem 1rem 1.25rem;
  }

  .tl-guide-topline {
    font-size: .61rem;
  }

  .tl-guide-close {
    top: .8rem;
    right: .8rem;
  }

  .tl-guide-choices {
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    max-height: 42dvh;
    overflow-y: auto;
    padding: 2px;
  }

  .tl-guide-choice {
    min-height: 2.85rem;
  }

  .tl-guide-actions-between {
    align-items: flex-end;
  }

  .tl-guide-submit-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .tl-guide-result-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .tl-guide-result-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 1rem;
  }

  .tl-guide-view-switch {
    order: -1;
  }

  .tl-guide-launcher {
    right: .7rem;
    bottom: .7rem;
    min-height: 2.65rem;
    font-size: .78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-guide-progress-fill,
  .tl-guide-content,
  .tl-guide-primary,
  .tl-guide-choice,
  .tl-guide-analysis-mark::before,
  .tl-guide-analysis-mark::after,
  .tl-guide-launcher {
    animation: none;
    transition: none;
  }
}
