/* Match customer/community typography; keep changes inside the manual. */
.user-manual {
  --um-accent: #ff3900;
  --um-text: #333;
  --um-muted: #666;
  --um-line: #e4e7eb;
  width: 100%;
  min-width: 0;
  color: var(--um-text);
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.user-manual *,
.user-manual *::before,
.user-manual *::after { box-sizing: border-box; }

.user-manual h1,
.user-manual h2,
.user-manual h3,
.user-manual h4,
.user-manual p,
.user-manual figure { margin: 0; float: none; }

.user-manual a { color: inherit; text-decoration: none; }
.user-manual a:focus-visible,
.user-manual summary:focus-visible,
.user-manual button:focus-visible,
.user-manual .um-role-input:focus-visible + .um-role-choice {
  outline: 2px solid var(--um-accent);
  outline-offset: 3px;
}

.user-manual .um-intro { padding-bottom: 18px; }
.user-manual .um-title {
  padding-left: 11px;
  border-left: 3px solid var(--um-accent);
  color: #252525;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.6px;
}
.user-manual .um-lead { margin-top: 12px; color: var(--um-muted); font-size: 14px; }

/* Start with two compact member choices. No guide is open initially. */
.user-manual .um-choice {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.user-manual .um-choice > legend {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--um-text);
  font-size: 14px;
}
.user-manual .um-role-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.user-manual .um-role-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--um-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.user-manual .um-role-choice strong { color: #333; font-size: 15px; font-weight: 700; }
.user-manual .um-role-choice span { color: var(--um-muted); font-size: 13px; }
.user-manual .um-role-choice:hover,
.user-manual .um-role-input:checked + .um-role-choice {
  border-color: var(--um-accent);
  background: #fff1eb;
}
.user-manual .um-role-input:checked + .um-role-choice strong { color: var(--um-accent); }
.user-manual .um-role-panels { grid-column: 1 / -1; min-width: 0; }
.user-manual .um-role-panel { display: none; padding-top: 12px; }
.user-manual #um-personal:checked ~ .um-role-panels #um-personal-panel,
.user-manual #um-company:checked ~ .um-role-panels #um-company-panel { display: block; }
.user-manual .um-panel-title,
.user-manual .um-panel-title h2 { color: #333; font-size: 16px; font-weight: 700; line-height: 1.6; }
.user-manual .um-panel-note { margin: 4px 0 14px; color: var(--um-muted); font-size: 13px; }

/* Native details retain keyboard and touch support without extra scripts. */
.user-manual .um-topic {
  min-width: 0;
  margin: 0 0 8px;
  border: 1px solid var(--um-line);
  border-radius: 6px;
  background: #fff;
}
.user-manual summary { list-style: none; cursor: pointer; }
.user-manual summary::-webkit-details-marker { display: none; }
.user-manual .um-topic > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.user-manual .um-topic-number {
  flex: 0 0 19px;
  color: var(--um-accent);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.user-manual .um-topic > summary h3 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.user-manual .um-toggle { flex: 0 0 auto; color: #666; font-size: 12px; font-weight: 400; }
.user-manual .um-topic > summary .um-when-open { display: none; }
.user-manual .um-topic[open] > summary {
  border-bottom: 1px solid var(--um-line);
  border-radius: 6px 6px 0 0;
  background: #fff6f1;
}
.user-manual .um-topic[open] > summary .um-when-closed { display: none; }
.user-manual .um-topic[open] > summary .um-when-open { display: inline; }
.user-manual .um-topic-body { min-width: 0; padding: 16px; font-size: 14px; }

/* One selected screen and a numbered list share the same guide frame. */
.user-manual.um-enhanced .um-topic > .um-topic-body { display: none; }
.user-manual .um-walkthrough { min-width: 0; }
.user-manual .um-step-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.user-manual .um-topic > .um-topic-body .um-step-viewer { height: 560px; }
.user-manual .um-viewer-screen { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; padding: 14px; overflow: hidden; border: 1px solid #f0d9cf; border-radius: 7px; background: #fff8f4; }
.user-manual .um-viewer-heading { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.user-manual .um-current-number { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; height: 36px; border-radius: 6px; background: var(--um-accent); color: #fff; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.user-manual .um-current-title { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #333; font-size: 16px; font-weight: 600; line-height: 1.6; }
.user-manual .um-screen-panels { flex: 1 1 auto; min-width: 0; min-height: 0; }
.user-manual .um-screen-panel { display: flex; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.user-manual .um-screen-panel[hidden],
.user-manual .um-guide-step[hidden],
.user-manual .um-step-detail[hidden] { display: none !important; }
.user-manual .um-viewer-actions { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; gap: 7px; min-width: 0; }
.user-manual .um-step-progress { margin-right: auto; color: #785e52; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.user-manual .um-viewer-actions button { min-width: 62px; min-height: 38px; padding: 7px 11px; border: 1px solid #e4cfc3; border-radius: 5px; background: #fff; color: #555; font: inherit; font-size: 13px; cursor: pointer; }
.user-manual .um-viewer-actions button:hover:not(:disabled) { border-color: var(--um-accent); color: var(--um-accent); }
.user-manual .um-viewer-actions button:disabled { border-color: #e8e2df; color: #aaa; background: #faf8f7; cursor: default; }
.user-manual .um-guide-steps { display: block; min-width: 0; min-height: 0; margin: 0; padding: 0 3px 0 0; overflow: auto; overscroll-behavior: contain; list-style: none; }
.user-manual .um-guide-step { display: block; float: none; width: auto; min-width: 0; margin: 0 0 7px; padding: 0; overflow: hidden; border: 1px solid #e6d6ce; border-radius: 6px; background: #fff; list-style: none; }
.user-manual .um-guide-step:last-child { margin-bottom: 0; }
.user-manual .um-guide-step.is-active { border-color: var(--um-accent); }
.user-manual .um-step-trigger { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 47px; padding: 9px 10px; border: 0; background: #fff; color: #333; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: left; cursor: pointer; }
.user-manual .um-step-trigger:hover { background: #fff6f1; }
.user-manual .um-step-trigger:focus-visible { outline-offset: -3px; }
.user-manual .um-step-trigger::after { content: '+'; margin-left: auto; color: #a47d68; font-size: 16px; font-weight: 400; }
.user-manual .um-guide-step.is-active .um-step-trigger { background: #fff0e6; color: #a8320c; }
.user-manual .um-guide-step.is-active .um-step-trigger::after { content: '−'; }
.user-manual .um-step-label { min-width: 0; }
.user-manual .um-step-detail { margin: 0; padding: 10px 12px 12px; color: #555; font-size: 14px; line-height: 1.8; }
.user-manual .um-step-number {
  display: inline-flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-top: 1px;
  border-radius: 5px;
  background: #fff1eb;
  color: var(--um-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.user-manual .um-guide-step.is-active .um-step-number { background: #c34506; color: #fff; }
.user-manual .um-step-screen { width: 100%; max-width: 760px; min-width: 0; }
.user-manual .um-screen-stage { width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--um-line); border-radius: 6px; background: #f7f8fa; }
.user-manual .um-image-link { position: relative; display: block; overflow: hidden; border: 1px solid var(--um-line); border-radius: 6px; background: #f7f8fa; line-height: 0; cursor: zoom-in; }
.user-manual .um-screen-stage > .um-image-link { border: 0; border-radius: 0; }

/* The selected step points to screenshot content, including enlarged images. */
.user-manual .um-focus-layer { position: absolute; display: block; pointer-events: none; z-index: 1; }
.user-manual .um-focus-layer[hidden] { display: none; }
.user-manual .um-focus-box { position: absolute; display: block; border: 2px solid #e53935; border-radius: 3px; box-shadow: 0 0 0 1px #fff; }
.user-manual .um-focus-label { position: absolute; top: 0; left: 0; min-width: 19px; padding: 1px 4px; border-radius: 0 0 3px 0; background: #e53935; color: #fff; font: 700 12px/17px Arial, sans-serif; text-align: center; }
.user-manual .um-step-screen picture { display: block; }
.user-manual .um-step-screen img { display: block; width: 100%; max-width: 760px; height: auto; margin: 0; border: 0; }
.user-manual .um-step-screen figcaption { margin-top: 7px; color: #777; font-size: 12px; line-height: 1.7; }
.user-manual .um-enlarge { display: inline-flex; align-items: center; min-height: 32px; margin-left: 6px; color: #555; text-decoration: underline; text-underline-offset: 3px; }
.user-manual .um-common-topic { margin-top: 18px; }

/* The guide opens above the page, keeping the member and topic lists compact. */
.user-manual .um-guide-dialog {
  width: min(1240px, calc(var(--um-viewport-width, 100vw) - 32px));
  max-width: none;
  height: min(760px, calc(var(--um-viewport-height, 100dvh) - 32px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--um-line);
  border-radius: 9px;
  background: #fff;
  color: var(--um-text);
  font: inherit;
  text-align: left;
  box-shadow: 0 12px 48px #0003;
}
.user-manual .um-guide-dialog[open] { display: flex; flex-direction: column; }
.user-manual .um-guide-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.user-manual .um-guide-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; min-width: 0; min-height: 58px; padding: 9px 16px; border-bottom: 1px solid var(--um-line); }
.user-manual .um-guide-dialog-title { flex: 1 1 auto; min-width: 0; color: #333; font-size: 17px; font-weight: 700; line-height: 1.6; }
.user-manual .um-device-choice { display: flex; flex: 0 0 auto; gap: 4px; padding: 3px; border: 1px solid var(--um-line); border-radius: 6px; background: #f7f8fa; }
.user-manual .um-device-choice button { min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #666; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; cursor: pointer; }
.user-manual .um-device-choice button[aria-pressed="true"] { border-color: #f0c5b7; background: #fff1eb; color: #c1370e; }
.user-manual .um-device-choice button:hover { color: var(--um-accent); }
.user-manual .um-guide-close { flex: 0 0 auto; min-width: 70px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--um-line); border-radius: 6px; background: #f7f7f7; color: #333; font: inherit; font-size: 13px; cursor: pointer; }
.user-manual .um-guide-close:hover { border-color: var(--um-accent); color: var(--um-accent); }
.user-manual .um-guide-dialog-body { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
.user-manual .um-guide-dialog .um-topic-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 12px; min-width: 0; min-height: 0; padding: 14px; }
.user-manual .um-screen-panel .um-step-screen { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; width: 100%; max-width: none; min-height: 0; }
.user-manual .um-screen-panel .um-screen-stage { display: flex; flex: 1 1 auto; min-height: 0; background: #fff; }
.user-manual .um-screen-panel .um-image-link { display: flex; align-items: center; justify-content: center; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 0; background: #fff; }
.user-manual .um-screen-panel picture { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.user-manual .um-screen-panel img { width: 100%; max-width: none; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.user-manual .um-screen-panel figcaption { flex: 0 0 auto; margin-top: 0; font-size: 12px; line-height: 1.5; }
.user-manual .um-screen-panel .um-enlarge { min-height: 30px; }
.user-manual .um-guide-dialog .um-links { flex: 0 0 auto; gap: 8px; margin-top: 0; }
.user-manual .um-guide-dialog .um-links a { min-height: 44px; padding: 8px 13px; }

/* One image viewer stays on the guide, with the original screen available to scroll. */
.user-manual .um-image-dialog {
  width: min(1120px, calc(var(--um-viewport-width, 100vw) - 40px));
  max-width: none;
  max-height: calc(var(--um-viewport-height, 100dvh) - 40px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--um-line);
  border-radius: 8px;
  background: #fff;
  color: var(--um-text);
  font: inherit;
  text-align: left;
  box-shadow: 0 12px 48px #0003;
}
.user-manual .um-image-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.user-manual .um-image-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.user-manual .um-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--um-line); }
.user-manual .um-dialog-title { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.7; }
.user-manual .um-dialog-close { flex: 0 0 auto; min-width: 64px; min-height: 40px; padding: 7px 12px; border: 1px solid var(--um-line); border-radius: 5px; background: #fff; color: #333; font: inherit; cursor: pointer; }
.user-manual .um-dialog-close:hover { border-color: var(--um-accent); color: var(--um-accent); }
.user-manual .um-dialog-body { min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; background: #f7f8fa; }
.user-manual .um-image-dialog[data-capture-device="mobile"] { width: min(520px, calc(var(--um-viewport-width, 100vw) - 40px)); }
.user-manual .um-dialog-canvas { position: relative; width: 100%; }
.user-manual .um-dialog-image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; border: 0; }
.user-manual .um-dialog-status { padding: 28px 12px; color: #666; font-size: 14px; text-align: center; }
.user-manual .um-image-dialog [hidden] { display: none !important; }

/* Supporting notes and links use the same restrained board treatment. */
.user-manual .um-tip,
.user-manual .um-notice,
.user-manual .um-login-note { margin-top: 16px; padding: 11px 13px; border-left: 3px solid #ffb49d; background: #fff7f2; color: #666; font-size: 13px; line-height: 1.8; }
.user-manual .um-tip strong,
.user-manual .um-notice strong,
.user-manual .um-login-note strong { color: #333; }
.user-manual .um-links { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.user-manual .um-links a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 14px; border: 1px solid #e0e4e8; border-radius: 6px; background: #fff; color: #555; font-size: 13px; font-weight: 600; line-height: 1.7; text-align: center; }
.user-manual .um-links .um-primary-link { border-color: var(--um-accent); background: var(--um-accent); color: #fff; }
.user-manual .um-links a:hover { border-color: var(--um-accent); background: #fff6f1; color: var(--um-accent); }

@media (max-width: 767px) {
  .user-manual { font-size: 13px; }
  .user-manual .um-title { padding-left: 9px; font-size: 20px; }
  .user-manual .um-intro { padding-bottom: 16px; }
  .user-manual .um-lead,
  .user-manual .um-choice > legend { font-size: 13px; }
  .user-manual .um-choice { gap: 8px; }
  .user-manual .um-role-choice { min-height: 72px; padding: 10px 12px; }
  .user-manual .um-role-choice strong { font-size: 14px; }
  .user-manual .um-role-choice span { font-size: 12px; }
  .user-manual .um-panel-title,
  .user-manual .um-panel-title h2 { font-size: 15px; }
  .user-manual .um-panel-note { font-size: 12px; }
  .user-manual .um-topic > summary { gap: 7px; min-height: 54px; padding: 12px 10px; font-size: 14px; }
  .user-manual .um-topic-number { flex-basis: 17px; font-size: 13px; }
  .user-manual .um-toggle { font-size: 11px; }
  .user-manual .um-topic-body { padding: 14px 11px; font-size: 13px; }
  .user-manual .um-step-viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.5fr) minmax(0, 1fr); gap: 9px; }
  .user-manual .um-viewer-screen { gap: 6px; padding: 9px; }
  .user-manual .um-viewer-heading { gap: 8px; }
  .user-manual .um-current-number { flex-basis: 28px; height: 28px; font-size: 16px; }
  .user-manual .um-current-title { font-size: 14px; line-height: 1.5; }
  .user-manual .um-viewer-actions { gap: 6px; }
  .user-manual .um-viewer-actions button { min-width: 62px; min-height: 44px; padding: 7px 10px; font-size: 12px; }
  .user-manual .um-step-progress { font-size: 11px; }
  .user-manual .um-guide-steps { padding-right: 3px; }
  .user-manual .um-guide-step { margin-bottom: 6px; }
  .user-manual .um-step-trigger { min-height: 44px; padding: 8px 9px; font-size: 13px; }
  .user-manual .um-step-detail { padding: 8px 10px 10px; font-size: 13px; line-height: 1.7; }
  .user-manual .um-step-screen figcaption { font-size: 11px; }
  .user-manual .um-guide-dialog { width: calc(var(--um-viewport-width, 100vw) - 16px); height: calc(var(--um-viewport-height, 100dvh) - 16px); border-radius: 7px; }
  .user-manual .um-guide-dialog-header { flex-wrap: wrap; gap: 6px 8px; min-height: 54px; padding: 7px 10px; }
  .user-manual .um-guide-dialog-title { font-size: 15px; }
  .user-manual .um-device-choice { order: 3; justify-content: center; width: 100%; padding: 2px; }
  .user-manual .um-device-choice button { flex: 1 1 0; min-height: 36px; padding: 6px 9px; font-size: 12px; }
  .user-manual .um-guide-close { min-width: 64px; min-height: 44px; padding: 7px 10px; font-size: 12px; }
  .user-manual .um-guide-dialog .um-topic-body { gap: 9px; padding: 10px; }
  .user-manual .um-screen-panel .um-step-screen { gap: 3px; }
  .user-manual .um-screen-panel .um-screen-stage { display: block; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .user-manual .um-screen-panel .um-image-link,
  .user-manual .um-screen-panel picture { display: block; width: 100%; height: auto; }
  .user-manual .um-screen-panel img { width: 100%; height: auto; }
  .user-manual .um-screen-panel figcaption { font-size: 11px; }
  .user-manual .um-screen-panel .um-enlarge { min-height: 26px; }
  .user-manual .um-guide-dialog .um-links { gap: 6px; flex-wrap: nowrap; }
  .user-manual .um-guide-dialog .um-links a { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 7px 8px; font-size: 12px; }
  .user-manual .um-image-dialog,
  .user-manual .um-image-dialog[data-capture-device="mobile"] { width: calc(var(--um-viewport-width, 100vw) - 20px); max-height: calc(var(--um-viewport-height, 100dvh) - 24px); border-radius: 6px; }
  .user-manual .um-dialog-header { gap: 10px; padding: 10px 12px; }
  .user-manual .um-dialog-title { font-size: 13px; }
  .user-manual .um-dialog-body { padding: 10px; }
  .user-manual .um-dialog-status { font-size: 13px; }
  .user-manual .um-tip,
  .user-manual .um-notice,
  .user-manual .um-login-note { padding: 10px 11px; font-size: 12px; }
  .user-manual .um-links a { flex: 1 1 120px; padding: 10px 12px; font-size: 12px; }
}

@media (max-width: 360px) {
  .user-manual .um-choice { grid-template-columns: minmax(0, 1fr); }
  .user-manual .um-role-choice { min-height: 66px; }
}
