:root {
  --help-page-accent: #2f6f9f;
  --help-page-background: #eaf4ff;
  --help-elements-accent: #00a596;
  --help-elements-background: #e3f5ef;
  --help-guided-accent: #c55a11;
  --help-guided-background: #ffe7b3;
  --help-disabled: #dfe4e9;
  --help-column-width: 30%;
  --help-column-gap: 1.25rem;
}

.header-help {
  position: relative;
}

.header-help[data-help-menu-root] {
  width: max-content;
  min-width: calc(var(--header-control-width, 60px) + var(--header-aux-control-width, 1.35rem));
}

.help-menu-trigger {
  display: grid;
  grid-template-columns: auto var(--header-control-width, 60px) var(--header-aux-control-width, 1.35rem);
  align-items: center;
  gap: 0;
}

.interactive-guide-return.nav-button {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-right: 0.3rem;
  padding-inline: 0.45rem;
  border-color: var(--help-guided-accent);
  background: var(--help-guided-background);
  color: #6d3500;
}

.interactive-guide-return.nav-button:hover,
.interactive-guide-return.nav-button:focus-visible {
  border-color: #7b4210;
  background: #ffd990;
  color: #492300;
}

.help-menu-button.nav-button {
  grid-column: 2;
  width: 100%;
  padding-inline: 0.3rem;
  border-color: var(--help-elements-accent);
  background: #ffffff;
  color: var(--help-elements-accent);
}

html[data-help-page="true"] .help-menu-button.nav-button:not(:disabled) {
  border-color: var(--help-page-accent);
  box-shadow: 0 0 0 2px var(--help-page-accent);
}

html[data-help-elements="true"] .help-menu-button.nav-button:not(:disabled) {
  background: var(--help-elements-accent);
  color: #ffffff;
}

html[data-help-guided="true"] .help-menu-button.nav-button:not(:disabled) {
  color: var(--help-guided-accent);
}

html[data-interactive-guide-active="true"] .help-menu-button.nav-button:not(:disabled) {
  color: var(--help-guided-accent);
}

html[data-help-elements="true"][data-help-guided="true"] .help-menu-button.nav-button:not(:disabled) {
  color: var(--help-guided-background);
}

.help-menu-button.nav-button:disabled {
  border-color: var(--help-disabled);
  background: #ffffff;
  color: var(--help-disabled);
  cursor: not-allowed;
}

.help-menu-button.nav-button:disabled[data-help-active="true"] {
  background: var(--help-disabled);
  color: #ffffff;
}

.help-reminder-restore {
  grid-column: 3;
  display: inline-grid;
  width: var(--header-aux-control-width, 1.35rem);
  min-width: 0;
  min-height: 26px;
  place-items: center;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: #ad6900;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.help-reminder-restore:hover,
.help-reminder-restore:focus-visible {
  color: #7a4700;
  outline: 2px solid var(--help-guided-accent);
  outline-offset: 1px;
}

.help-menu-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 0.45rem);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 240px;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid #27313f;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(20, 32, 51, 0.2);
}

.help-menu-panel[hidden],
[data-help-content][hidden],
.help-reminder-tooltip[hidden],
.help-reminder-restore[hidden],
.interactive-guide-return[hidden] {
  display: none !important;
}

.help-menu-option {
  justify-content: flex-start;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #27313f;
  border-radius: 6px;
  background: #ffffff;
  color: #142033;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.help-menu-option[data-help-mode-option="page"] {
  border-color: var(--help-page-accent);
  background: var(--help-page-background);
}

.help-menu-option[data-help-mode-option="elements"] {
  border-color: var(--help-elements-accent);
  background: var(--help-elements-background);
}

.help-menu-option[data-help-mode-option="guided"] {
  border-color: var(--help-guided-accent);
  background: var(--help-guided-background);
}

.help-menu-guide-action {
  border-color: var(--help-guided-accent);
  background: var(--help-guided-background);
}

.help-menu-option[data-help-mode-option="page"]:hover,
.help-menu-option[data-help-mode-option="page"]:focus-visible,
.help-menu-option[data-help-mode-option="page"][aria-pressed="true"] {
  border-color: var(--help-page-accent);
  background: var(--help-page-background);
}

.help-menu-option[data-help-mode-option="elements"]:hover,
.help-menu-option[data-help-mode-option="elements"]:focus-visible,
.help-menu-option[data-help-mode-option="elements"][aria-pressed="true"] {
  border-color: var(--help-elements-accent);
  background: var(--help-elements-background);
}

.help-menu-option[data-help-mode-option="guided"]:hover,
.help-menu-option[data-help-mode-option="guided"]:focus-visible,
.help-menu-option[data-help-mode-option="guided"][aria-pressed="true"] {
  border-color: var(--help-guided-accent);
  background: var(--help-guided-background);
}

.help-menu-guide-action:hover,
.help-menu-guide-action:focus-visible {
  border-color: var(--help-guided-accent);
  background: #ffd990;
}

.interactive-guide-return::before,
.help-menu-guide-action::before,
.interactive-guide-heading h2::before,
.interactive-guide-step > p::before {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.42em;
  border-radius: 50%;
  background: var(--help-guided-accent);
  box-shadow: 0 0 0 0 rgba(197, 90, 17, 0.48);
  vertical-align: 0.08em;
  animation: interactive-guide-beacon-pulse 1.45s ease-in-out infinite;
}

@keyframes interactive-guide-beacon-pulse {
  0%, 100% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(197, 90, 17, 0.48);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 0.38em rgba(197, 90, 17, 0);
  }
}

.interactive-guide-dialog {
  width: min(780px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 2px solid var(--help-guided-accent);
  border-radius: 12px;
  background: var(--help-guided-background);
  color: #111111;
  box-shadow: 0 24px 70px rgba(20, 32, 51, 0.34);
}

.interactive-guide-dialog::backdrop {
  background: rgba(20, 32, 51, 0.48);
}

.interactive-guide-dialog-inner {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
}

.interactive-guide-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--help-guided-accent);
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  font-size: 1.45rem;
  line-height: 1;
}

.interactive-guide-heading,
.interactive-guide-catalogue-heading {
  padding-right: 2.5rem;
}

.interactive-guide-heading h2,
.interactive-guide-heading p,
.interactive-guide-audiences h3,
.interactive-guide-catalogue-heading h3,
.interactive-guide-catalogue-heading p {
  margin: 0;
}

.interactive-guide-heading,
.interactive-guide-audiences,
.interactive-guide-catalogue,
.interactive-guide-catalogue-heading {
  display: grid;
  gap: 0.55rem;
}

.interactive-guide-audience-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.interactive-guide-audience-buttons button,
.interactive-guide-subchoices button,
.interactive-guide-task-list > li > button {
  border: 1px solid #7b4210;
  background: #ffffff;
  color: #111111;
}

.interactive-guide-audience-buttons button[aria-pressed="true"] {
  border-width: 3px;
  border-color: var(--help-guided-accent);
}

.interactive-guide-audience-buttons button[data-guide-unavailable="true"],
.interactive-guide-task-list > li > button[data-guide-unavailable="true"],
.interactive-guide-subchoices button[data-guide-unavailable="true"] {
  opacity: 0.48;
  cursor: help;
}

.interactive-guide-message {
  min-height: 1.25em;
  margin: 0;
  color: #6d3500;
  font-weight: 700;
}

.interactive-guide-task-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.interactive-guide-task-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.interactive-guide-task-list > li > button {
  display: grid;
  justify-items: start;
  min-height: 52px;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
  text-align: left;
}

.interactive-guide-task-list > li > button span {
  font-size: 0.9em;
  font-weight: 400;
}

.interactive-guide-task-status {
  min-width: 92px;
  color: #5a6573;
  font-size: 0.86em;
  font-weight: 700;
  text-align: right;
}

.interactive-guide-task-status[data-complete="true"] {
  color: #176b3a;
}

.interactive-guide-subchoices {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.2rem 0 0.35rem 1rem;
}

.interactive-guide-subchoices[hidden] {
  display: none;
}

.interactive-guide-step {
  display: grid;
  width: 100%;
  gap: 0.45rem;
  box-sizing: border-box;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--help-guided-accent);
  border-left-width: 6px;
  border-radius: 7px;
  background: var(--help-guided-background);
  color: #111111;
}

.interactive-guide-step p {
  margin: 0;
}

.interactive-guide-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.interactive-guide-step-actions button {
  min-height: 34px;
  padding: 0.25rem 0.65rem;
  border-color: #7b4210;
  background: #ffffff;
  color: #111111;
}

.interactive-guide-step-actions button:disabled {
  opacity: 0.45;
}

.interactive-guide-stop-compact {
  display: none;
}

.site-header .interactive-guide-step-navigation {
  position: absolute;
  z-index: 3;
  top: calc(100% - 1px);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 1rem);
  min-height: 30px;
  margin: 0;
  padding: 0.2rem 0.45rem 0.25rem;
  border: 1px solid var(--help-guided-accent);
  border-top-width: 2px;
  border-radius: 0 0 7px 7px;
  background: var(--help-guided-background);
  grid-template-columns: minmax(0, auto) auto;
  column-gap: 0.35rem;
  align-items: center;
  transform: translateX(-50%);
}

.site-header .interactive-guide-step-navigation .interactive-guide-step-actions {
  display: flex;
  align-items: center;
}

.site-header .interactive-guide-step-navigation .interactive-guide-step-actions button {
  display: none;
}

.site-header .interactive-guide-step-navigation .interactive-guide-step-actions [data-guide-step-stop] {
  display: inline-grid;
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  place-items: center;
  padding: 0;
  border-color: #7b4210;
  border-radius: 50%;
  background: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
}

.site-header .interactive-guide-step-navigation .interactive-guide-stop-label {
  display: none;
}

.site-header .interactive-guide-step-navigation .interactive-guide-stop-compact {
  display: inline;
}

.has-build-save-strip .site-header .interactive-guide-step-navigation {
  top: calc(100% + 29px);
}

.has-interactive-guide-navigation .main {
  padding-top: 46px;
}

.has-build-save-strip.has-interactive-guide-navigation .main {
  padding-top: 76px;
}

.is-interactive-guide-target {
  outline: 4px solid var(--help-guided-accent) !important;
  outline-offset: 3px;
}

.help-menu-option:disabled {
  color: #142033;
  opacity: 0.58;
  cursor: not-allowed;
}

.help-reminder-tooltip {
  position: absolute;
  z-index: 119;
  top: calc(100% + 0.45rem);
  right: 0;
  display: grid;
  width: min(340px, calc(100vw - 1rem));
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--help-guided-accent);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--help-guided-background);
  color: #111111;
  box-shadow: 0 12px 32px rgba(20, 32, 51, 0.2);
}

.help-reminder-tooltip button,
.help-text-action {
  justify-self: start;
  min-height: 32px;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: #5f3400;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.help-action-button {
  background: #ffffff;
  color: var(--help-elements-accent);
  font-weight: 700;
}

.help-action-button:hover,
.help-action-button:focus-visible {
  background: #ffffff;
  color: #006f65;
}

.help-reminder-tooltip button:focus-visible,
.help-text-action:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.profile-help-stack,
.help-element-side {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.help-card {
  min-width: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  color: #111111;
}

.help-card-page {
  border-left: 4px solid var(--help-page-accent);
  background: var(--help-page-background);
}

.help-card-elements {
  border-left: 4px solid var(--help-elements-accent);
  background: var(--help-elements-background);
}

.help-card-guided,
.help-reminder-card {
  border-left: 4px solid var(--help-guided-accent);
  background: var(--help-guided-background);
}

.help-card h2,
.help-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.help-card p {
  margin: 0;
  line-height: 1.35;
}

.help-card p + p {
  margin-top: 0.3rem;
}

.context-help-item {
  border-radius: 4px;
  cursor: pointer;
}

.context-help-item + .context-help-item {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(0, 165, 150, 0.45);
}

.context-help-item:hover,
.context-help-item:focus-visible {
  color: #111111;
}

[data-help-source].is-help-linked {
  outline: 3px solid var(--help-elements-accent);
  outline-offset: 4px;
}

[data-help-source][data-help-linked-mode="page"].is-help-linked {
  outline-color: var(--help-page-accent);
}

[data-help-source][data-help-linked-mode="guided"].is-help-linked {
  outline-color: var(--help-guided-accent);
}

.help-title-row,
.profile-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem var(--help-column-gap);
  align-items: start;
}

.profile-reminder-slot:empty {
  display: none;
}

.profile-page-explanation,
.profile-guide-completion {
  width: 100%;
}

.help-element-row,
.profile-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.profile-item-row {
  border-bottom: 1px solid #0094ff;
}

.help-element-row > .help-element-side,
.profile-item-row > .profile-help-stack {
  display: none;
}

html[data-help-guided="true"] .help-guided-title-row,
html[data-help-guided="true"] .profile-title-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

html[data-help-elements="true"] .help-element-row,
html[data-help-elements="true"] .profile-item-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--help-column-width, 30%));
}

html[data-help-elements="true"] .help-element-row > .help-element-side,
html[data-help-elements="true"] .profile-item-row > .profile-help-stack {
  display: grid;
  height: 100%;
  gap: 0;
}

.help-element-row .help-card-elements,
.profile-item-row .help-card-elements {
  display: flex;
  height: 100%;
  align-items: center;
}

.profile-item-row .help-card-elements,
.access-result-card .help-card-elements {
  border-radius: 0;
}

.help-element-row .help-card-elements p,
.profile-item-row .help-card-elements p {
  margin: 0;
}

/* Structure commune des pages fonctionnelles.
   Les aides restent dans le même fragment DOM que le contenu qu'elles expliquent. */
.functional-help-page {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  align-content: start;
}

.functional-help-page > [data-help-reminder-slot]:empty,
.functional-help-box > [data-help-reminder-slot]:empty {
  display: none;
}

.functional-help-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px;
  overflow: hidden;
}

.functional-help-box > .section-title,
.functional-help-box > .settings-panel-head,
.functional-help-box > .help-title-row > [data-help-source] > :first-child {
  margin-top: 0;
}

.functional-help-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.functional-help-group + .functional-help-group {
  padding-top: 6px;
  border-top: 1px solid #0094ff;
}

.functional-help-group > h2,
.functional-help-group > h3 {
  margin: 0;
}

.functional-help-box > .help-element-row > [data-help-source],
.functional-help-group > .help-element-row > [data-help-source] {
  min-width: 0;
  padding: 7px 12px;
}

.functional-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.functional-action-row {
  display: inline-flex;
  min-width: 0;
}

.functional-action-source {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0;
}

.functional-action-source > button {
  width: min(220px, 100%);
  height: 40px;
}

html[data-help-elements="true"] .functional-action-list {
  display: grid;
  gap: 0;
}

html[data-help-elements="true"] .functional-action-row {
  display: grid;
  grid-template-columns: minmax(0, calc(100% - var(--help-column-width, 30%))) minmax(0, var(--help-column-width, 30%));
  width: 100%;
  border-top: 1px solid #0094ff;
}

html[data-help-elements="true"] .functional-action-source > button {
  width: 100%;
}

html[data-help-elements="true"] .functional-action-row > .help-element-side {
  display: grid;
  height: 100%;
}

html[data-help-elements="true"] .admin-split,
html[data-help-elements="true"] .request-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.access-file-box,
.access-adaptations-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px;
}

.access-file-box .section-title,
.access-adaptations-box .section-title {
  margin: 0;
  line-height: 1.15;
}

.access-file-box .file-management-row {
  gap: 6px;
}

.access-file-address-source {
  min-width: 0;
}

.access-file-address-source input {
  width: 100%;
}

.access-file-button-row {
  display: inline-flex;
  min-width: 0;
}

html[data-help-elements="true"] .access-file-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  row-gap: 4px;
  align-items: stretch;
}

html[data-help-elements="true"] .access-file-button-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  align-items: stretch;
}

html[data-help-elements="true"] .access-file-button-row > button {
  width: 100%;
}

.access-file-button-row .help-card-elements {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.access-file-button-row .help-card-elements p {
  margin: 0;
}

.access-result-card {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.access-result-card .help-card-elements p + p {
  margin-top: 0;
}

.access-result-source {
  min-width: 0;
  padding: 12px;
}

.access-guide-completion {
  width: 100%;
}

.access-control-box {
  --access-adaptation-control-width: 220px;
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid #aeb8c4;
  border-radius: 7px;
  background: #ffffff;
}

.access-control-box-title {
  margin: 0;
  padding: 1px 3px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.access-top-controls {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid #aeb8c4;
  border-radius: 7px;
  background: #ffffff;
}

.access-top-controls > .access-control-box {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.access-top-controls > .access-source-tools,
.access-top-controls > .access-transfer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.access-top-controls > .access-transfer-box {
  padding-top: 4px;
  border-top: 1px solid #cbd3dc;
}

.access-top-controls .access-transfer-actions {
  flex: 1 1 auto;
}

.access-top-controls .access-transfer-title-full {
  display: none;
}

.access-top-controls .access-transfer-title-compact {
  display: inline;
}

.access-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.access-adaptation-control-row {
  display: inline-flex;
  flex: 0 1 var(--access-adaptation-control-width);
  width: min(var(--access-adaptation-control-width), 100%);
  min-width: 0;
}

.access-adaptation-control-row[hidden] {
  display: none !important;
}

.access-adaptation-control-source {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.access-adaptation-control-source > button {
  width: 100%;
  height: 40px;
  min-height: 40px;
  align-self: flex-start;
}

.access-filter-help-row {
  width: auto;
}

.access-filter-source {
  width: auto;
  flex-wrap: wrap;
}

.access-filter-source > button {
  width: min(var(--access-adaptation-control-width), 100%);
}

.access-top-controls .access-filter-help-row {
  flex: 0 1 auto;
}

.access-top-controls .access-filter-source {
  flex-wrap: nowrap;
}

.access-filter-prefix {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.access-manage-file-row {
  padding-top: 4px;
  border-top: 1px solid #cbd3dc;
}

.access-top-controls .access-manage-file-row {
  padding-top: 0;
  border-top: 0;
}

html[data-help-elements="true"] .access-top-controls {
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-help-elements="true"] .access-top-controls > .access-control-box {
  display: grid;
  gap: 4px;
  padding: 4px;
  border: 1px solid #aeb8c4;
  border-radius: 7px;
  background: #ffffff;
}

html[data-help-elements="true"] .access-top-controls .access-transfer-title-full {
  display: inline;
}

html[data-help-elements="true"] .access-top-controls .access-transfer-title-compact {
  display: none;
}

html[data-help-elements="true"] .access-top-controls .access-manage-file-row {
  padding-top: 4px;
  border-top: 1px solid #cbd3dc;
}

html[data-help-elements="true"] .access-transfer-actions {
  display: grid;
  gap: 4px;
}

html[data-help-elements="true"] .access-adaptation-control-row {
  display: grid;
  grid-template-columns: minmax(0, var(--access-adaptation-control-width)) minmax(0, 1fr);
  width: 100%;
}

html[data-help-elements="true"] .access-adaptation-control-source {
  height: auto;
  align-self: start;
}

html[data-help-elements="true"] .access-filter-source {
  display: grid;
  width: 100%;
  align-content: center;
  gap: 4px;
}

html[data-help-elements="true"] .access-filter-source > button {
  width: 100%;
}

html[data-help-elements="true"] .access-adaptation-control-row > .help-element-side {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
}

@media (max-width: 850px) {
  html[data-help-guided="true"] .help-guided-title-row,
  html[data-help-guided="true"] .profile-title-row,
  html[data-help-elements="true"] .help-element-row,
  html[data-help-elements="true"] .profile-item-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-card {
    border-top-width: 4px;
    border-top-style: solid;
    border-left: 0;
  }

  .help-card-page {
    border-top-color: var(--help-page-accent);
  }

  .help-card-elements {
    border-top-color: var(--help-elements-accent);
  }

  .help-card-guided,
  .help-reminder-card {
    border-top-color: var(--help-guided-accent);
  }

  .profile-item-row .help-card-elements {
    border-top: 0;
  }

  html[data-help-elements="true"] .functional-action-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 650px) {
  .site-header .interactive-guide-step-navigation {
    width: calc(100vw - 1rem);
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .has-interactive-guide-navigation .main {
    padding-top: 54px;
  }

  .has-build-save-strip.has-interactive-guide-navigation .main {
    padding-top: 84px;
  }

  .help-menu-panel {
    position: fixed;
    top: var(--header-h, 64px);
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }

  .help-reminder-tooltip {
    position: fixed;
    top: var(--header-h, 64px);
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
  }

  .interactive-guide-dialog-inner {
    padding: 0.85rem;
  }

  .interactive-guide-audience-buttons,
  .interactive-guide-task-list > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .interactive-guide-task-status {
    text-align: left;
  }
}

@media (max-width: 520px) {
  html[data-help-elements="true"] .access-file-button-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .interactive-guide-return::before,
  .help-menu-guide-action::before,
  .interactive-guide-heading h2::before,
  .interactive-guide-step > p::before {
    animation: none;
    box-shadow: 0 0 0 0.18em rgba(197, 90, 17, 0.28);
  }
}
