.contact-directory {
  --ink: #1e302b;
  --muted: #596b64;
  --line: #dce5df;
  --accent: #176e57;
  --gutter: clamp(14px, 4vw, 24px);
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(490px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f4f7f5;
  color: var(--ink);
  box-shadow: 0 18px 70px rgb(9 38 31 / 24%);
  overflow: hidden;
}
.contact-directory[open] { display: flex; flex-direction: column; }
.contact-directory::backdrop { background: rgb(16 32 28 / 52%); }
.contact-directory-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 17px var(--gutter) 14px;
  background: #fff;
}
.contact-directory-heading { display: grid; gap: 4px; }
.contact-directory-brand { display: block; width: 78px; height: auto; }
.contact-directory-head h2 {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.contact-directory-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -3px -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #46594f;
  cursor: pointer;
}
.contact-directory-close span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: inherit;
  background: #f0f4f1;
  font: 400 22px/1 Arial,sans-serif;
}
.contact-directory-tabs {
  flex: none;
  display: flex;
  gap: 7px;
  padding: 0 var(--gutter) 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.contact-directory-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 7px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbf9;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.contact-directory-tabs button[aria-selected="true"] {
  border-color: #48967c;
  background: #edf7f0;
  color: #14543f;
  box-shadow: inset 0 0 0 1px #48967c;
}
.contact-directory-tabs span { display: grid; place-items: center; }
.contact-directory-tabs :is(img, svg), .contact-directory-avatar :is(img, svg) {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.contact-directory-list { display: grid; min-height: 0; overflow: hidden; }
.contact-directory-list section {
  grid-area: 1 / 1;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-height: 460px;
  padding: 0 var(--gutter) 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b7c8bd transparent;
}
.contact-directory-list section[aria-hidden="true"] { visibility: hidden; }
.contact-directory-list header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 19px 1px 10px;
}
.contact-directory-list h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.3; }
.contact-directory-list header small { color: var(--muted); font-size: 12px; }
.contact-directory-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #dbe4dd;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: start;
  text-decoration: none;
}
.contact-directory-row + .contact-directory-row { margin-top: 6px; }
.contact-directory-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 11px;
  background: #f2f6f3;
}
.contact-directory-row strong, .contact-directory-row small { display: block; overflow-wrap: anywhere; }
.contact-directory-row strong { color: var(--ink); font-size: 16px; line-height: 1.4; }
.contact-directory-row small { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.contact-directory-row em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e6f4eb;
  color: #206444;
  font: 600 12px/1.4 sans-serif;
  white-space: nowrap;
}
.contact-directory-row em::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.contact-directory-row.is-busy em { background: #fff1d9; color: #84571b; }
.contact-directory-row[aria-disabled="true"] { background: #fafbf9; }
.contact-directory-row[aria-disabled="true"] strong { color: #58655e; }
.contact-directory-row[aria-disabled="true"] .contact-directory-avatar { filter: saturate(.45); }
.contact-directory-row.is-resting em { background: #eef0ed; color: #556158; }
.contact-directory-row.is-disabled em { background: #f6ece8; color: #8b5144; }
.contact-directory-row:is(a, button) { cursor: pointer; }
.contact-directory-empty { margin: 0; padding: 24px var(--gutter); color: var(--muted); }
.contact-directory :focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
@media (hover: hover) {
  .contact-directory-row:is(a, button):hover { border-color: #8ab8a1; background: #f9fdf9; }
  .contact-directory-tabs button:not([aria-selected="true"]):hover, .contact-directory-close:hover span { background: #e9f1eb; }
}
@media (max-width: 600px) {
  .contact-directory {
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
    padding-bottom: env(safe-area-inset-bottom);
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
  }
}
@media (max-width: 350px) {
  .contact-directory-tabs { gap: 5px; }
  .contact-directory-tabs button { font-size: 12px; }
  .contact-directory-row { gap: 8px; padding-inline: 10px; }
}
@media (max-height: 400px) {
  .contact-directory-head { align-items: center; padding-block: 3px; }
  .contact-directory-heading { display: flex; align-items: center; gap: 12px; }
  .contact-directory-head h2 { font-size: 19px; }
  .contact-directory-tabs { padding-bottom: 6px; }
  .contact-directory-tabs button { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .contact-directory-tabs :is(img, svg) { width: 23px; height: 23px; }
}

.contact-directory [hidden] { display: none; }
.support-faq-launch {
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 var(--gutter) 12px;
  padding: 10px 13px;
  border: 1px solid #cee1d7;
  border-radius: 13px;
  background: #f0f7f3;
  color: var(--ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.support-faq-launch strong, .support-faq-launch small { display: block; }
.support-faq-icon { border-radius: 11px; color: #e6f7ed; background: #195b49; }
.support-faq-launch strong { font-size: 16px; }
.support-faq-launch small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.support-faq-launch b { color: var(--accent); font: 24px/1 sans-serif; }
.contact-directory.is-showing-faq { height: 640px; }
.is-showing-faq .contact-directory-head { align-items: center; border-bottom: 1px solid var(--line); }
.support-faq-view {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  color: var(--ink);
}
.support-faq-back {
  flex: none;
  min-height: 44px;
  margin-left: auto;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.support-faq-back span { margin-right: 3px; font-size: 20px; vertical-align: -1px; }
.support-faq-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px var(--gutter) 22px;
}
.support-faq-group-title {
  margin: 0 2px 8px;
  color: #456155;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}
.support-faq-questions + .support-faq-group-title { margin-top: 17px; }
.support-faq-questions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.support-faq-item + .support-faq-item { border-top: 1px solid var(--line); }
.support-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: start;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}
.support-faq-question::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.support-faq-question[aria-expanded="true"] { background: #edf6f0; box-shadow: inset 3px 0 #408264; color: #155b46; }
.support-faq-question[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
@media (hover: hover) {
  .support-faq-question:hover { background: #f2f7f4; }
}
.support-faq-answer {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  justify-items: start;
  padding: 0 15px 14px;
  background: #edf6f0;
  box-shadow: inset 3px 0 #408264;
  color: #32473d;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.support-faq-answer p { grid-area: 1 / 1; margin: 0; }
.support-faq-reader { opacity: 0; pointer-events: none; user-select: none; }
.support-faq-answer .is-typing::after {
  content: "";
  display: inline-block;
  height: 1em;
  margin-left: 1px;
  border-left: 2px solid var(--accent);
  vertical-align: -.12em;
}
.support-faq-answer :is(a,button) {
  margin-top: 6px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-height: 400px) {
  .support-faq-launch { padding-block: 4px; }
  .support-faq-launch small { display: none; }
  .support-faq-launch { margin-bottom: 6px; }
}
