.l4d-screen-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto !important;
  min-height: 38px;
  padding: 0 12px !important;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.l4d-screen-help-button:hover {
  color: var(--l4d-primary, var(--brand, #b42318));
  border-color: currentColor;
}

.l4d-screen-help-button__label { font-size: 12px; font-weight: 700; }

.l4d-screen-assistant-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(16, 24, 40, .28);
  opacity: 0;
  transition: opacity .18s ease;
}

.l4d-screen-assistant-backdrop.is-open { opacity: 1; }

.l4d-screen-assistant {
  position: fixed;
  z-index: 10050;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #101828;
  background: #fff;
  box-shadow: -18px 0 50px rgba(16, 24, 40, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  transform: translateX(105%);
  transition: transform .22s ease;
}

.l4d-screen-assistant.is-open { transform: translateX(0); }

.l4d-screen-assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark, #7f1d1d), var(--brand, #b42318));
}

.l4d-screen-assistant__identity { display: flex; align-items: center; gap: 12px; }
.l4d-screen-assistant__identity > div { display: grid; gap: 2px; }
.l4d-screen-assistant__identity small { font-size: 9px; font-weight: 750; letter-spacing: .12em; opacity: .72; }
.l4d-screen-assistant__identity strong { font-size: 17px; line-height: 1.25; }

.l4d-screen-assistant__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 13px;
  background: rgba(255, 255, 255, .13);
  font-size: 20px;
  font-weight: 800;
}

.l4d-screen-assistant__header button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  font: 24px/1 inherit;
}

.l4d-screen-assistant__body { overflow-y: auto; padding: 24px 22px; }
.l4d-screen-assistant__description { margin: 0 0 26px; color: #475467; font-size: 14px; line-height: 1.6; }

.l4d-screen-assistant__body h3 {
  margin: 0 0 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.l4d-screen-assistant__body section + section { margin-top: 28px; }
.l4d-screen-assistant__actions { display: grid; gap: 9px; }

.l4d-screen-assistant__actions article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #fcfcfd;
}

.l4d-screen-assistant__actions article > span {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--brand, #9b1c1c);
  background: color-mix(in srgb, var(--brand, #b42318) 12%, white);
  font-size: 11px;
  font-weight: 750;
}

.l4d-screen-assistant__actions p { display: grid; gap: 3px; margin: 0; }
.l4d-screen-assistant__actions strong { color: #101828; font-size: 13px; }
.l4d-screen-assistant__actions small { color: #667085; font-size: 11px; line-height: 1.45; }

.l4d-screen-assistant__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 25px;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
}

.l4d-screen-assistant__steps li::marker { color: var(--brand, #b42318); font-weight: 750; }

.l4d-screen-assistant__tip {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding: 13px;
  border-radius: 12px;
  color: #7a2e0e;
  background: #fffaeb;
}

.l4d-screen-assistant__tip > span { margin-top: 1px; }
.l4d-screen-assistant__tip p { display: grid; gap: 2px; margin: 0; }
.l4d-screen-assistant__tip strong { font-size: 12px; }
.l4d-screen-assistant__tip p span { font-size: 11px; line-height: 1.45; }

.l4d-screen-assistant__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #eaecf0;
  background: #fff;
}

.l4d-screen-assistant__button,
.l4d-screen-tour__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  color: #344054;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.l4d-screen-assistant__button.is-primary,
.l4d-screen-tour__button.is-primary { border-color: var(--brand, #b42318); color: #fff; background: var(--brand, #b42318); }
.l4d-screen-tour__button.is-link { border-color: transparent; color: #667085; background: transparent; }
.l4d-screen-tour__button:disabled { opacity: .45; cursor: default; }

.l4d-screen-tour { position: fixed; inset: 0; z-index: 10100; pointer-events: auto; }
.l4d-screen-tour__spotlight {
  position: fixed;
  z-index: 1;
  border: 3px solid #fdb022;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(16, 24, 40, .58), 0 0 0 6px rgba(253, 176, 34, .2);
  transition: all .22s ease;
}

.l4d-screen-tour__card {
  position: fixed;
  z-index: 2;
  width: min(360px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 14px;
  color: #101828;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 24, 40, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: auto;
  transition: top .22s ease, left .22s ease;
}

.l4d-screen-tour__progress { margin-bottom: 7px; color: var(--brand, #b42318); font-size: 10px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.l4d-screen-tour__card > strong { font-size: 15px; }
.l4d-screen-tour__card > p { margin: 7px 0 18px; color: #667085; font-size: 12px; line-height: 1.5; }
.l4d-screen-tour__buttons, .l4d-screen-tour__buttons > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

@media (max-width: 767px) {
  .l4d-screen-help-button { width: 38px !important; padding: 0 !important; }
  .l4d-screen-help-button__label { display: none; }
  .l4d-screen-assistant { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .l4d-screen-assistant,
  .l4d-screen-assistant-backdrop,
  .l4d-screen-tour__spotlight,
  .l4d-screen-tour__card { transition: none; }
}
