/* The public Editor walkthrough stays with its four-step workflow. */
.editor-home .editor-walkthrough-intro{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:center;margin-bottom:36px}
.editor-home .editor-walkthrough-intro .section-heading{min-width:0;max-width:none;margin:0}
.editor-home .editor-walkthrough-intro .section-heading h2{font-size:clamp(2.2rem,3.1vw,3rem)}
.editor-home .editor-walkthrough-intro .section-heading>p:last-child{margin-top:20px;color:var(--muted);font-size:1rem;line-height:1.65}
.editor-walkthrough-thumbnail{display:block;min-width:0;width:100%;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;border-radius:14px}
.editor-walkthrough-poster{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#0b2034;box-shadow:0 10px 28px rgb(16 45 68 / 10%)}
.editor-walkthrough-poster>img{display:block;width:100%;height:100%;object-fit:cover}
.editor-walkthrough-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#245fc4;color:#fff;box-shadow:0 6px 20px rgb(0 0 0 / 24%)}
.editor-walkthrough-play svg{width:26px;height:26px}
.editor-walkthrough-duration{position:absolute;right:12px;bottom:12px;padding:4px 7px;border-radius:4px;background:rgb(6 23 40 / 92%);color:#fff;font-size:.78rem;line-height:1.4}
.editor-walkthrough-caption{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:16px 4px 4px;color:var(--ink);font-size:.95rem;font-weight:750;line-height:1.5}
.editor-walkthrough-caption>svg{flex:none}
.editor-walkthrough-thumbnail:hover .editor-walkthrough-poster{border-color:var(--blue)}
.editor-walkthrough-thumbnail:hover .editor-walkthrough-caption{color:var(--blue)}
.editor-walkthrough-dialog{width:min(1080px,calc(100% - 48px));max-height:calc(100dvh - 48px);padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);overflow:auto;box-shadow:0 24px 80px rgb(0 0 0 / 30%)}
.editor-walkthrough-dialog::backdrop{background:rgb(5 15 29 / 78%)}
.editor-walkthrough-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}
.editor-walkthrough-header h2{margin:0;font-size:24px;line-height:1.3;letter-spacing:-.02em}
.editor-walkthrough-header p{margin:6px 0 0;font-size:14px;line-height:1.5;color:var(--muted)}
.editor-walkthrough-close{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:8px;background:#f4f8fc;color:var(--ink)}
.editor-walkthrough-close:hover{background:#e5edf9}
.editor-walkthrough-dialog video{display:block;width:100%;aspect-ratio:16/9;border-radius:10px;background:#0b2034}
.editor-walkthrough-resources{margin-top:14px}
.editor-home .editor-walkthrough-resources summary{min-height:44px;padding:12px 0;color:var(--blue);font-size:15px;font-weight:750}
.editor-walkthrough-resources a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--blue);font-size:14px;text-underline-offset:3px}
.editor-walkthrough-transcript p{max-width:850px;margin:0 0 16px;font-size:15px;line-height:1.65;color:var(--ink)}
.editor-walkthrough-error{font-size:15px;line-height:1.6}
[data-theme="dark"] .editor-walkthrough-play{background:#a5c7ff;color:#132b4a}
[data-theme="dark"] .editor-home .editor-walkthrough-intro .eyebrow{color:#8de7e1}
[data-theme="dark"] .editor-walkthrough-thumbnail:hover .editor-walkthrough-poster{border-color:#a5c7ff}
[data-theme="dark"] .editor-walkthrough-thumbnail:hover .editor-walkthrough-caption,[data-theme="dark"] .editor-walkthrough-resources summary,[data-theme="dark"] .editor-walkthrough-resources a{color:#a5c7ff}
[data-theme="dark"] .editor-walkthrough-dialog{background:#111e30;color:#f2f6ff;border-color:#45617e}
[data-theme="dark"] .editor-walkthrough-transcript p{color:#f2f6ff}
[data-theme="dark"] .editor-walkthrough-close{background:#15283e;color:#f2f6ff;border-color:#45617e}
[data-theme="dark"] .editor-walkthrough-close:hover{background:#203c58}
@media(max-width:800px){.editor-home .editor-walkthrough-intro{grid-template-columns:minmax(0,1fr);gap:24px}.editor-walkthrough-thumbnail{max-width:none}}
@media(max-width:560px){.editor-walkthrough-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:16px}.editor-walkthrough-header h2{font-size:20px}.editor-walkthrough-header{gap:12px}.editor-walkthrough-caption{font-size:.9rem}}

/* Shared walkthrough surface, deliberately consistent in both page themes. */
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) {
  width:min(1080px,calc(100% - 48px));
  max-width:none;
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:24px;
  overflow:auto;
  border:1px solid #526e84;
  border-radius:18px;
  background-color:#162d43;
  background-image:
    repeating-linear-gradient(135deg,transparent 0 7px,rgb(255 255 255 / 2%) 7px 8px),
    radial-gradient(ellipse at top right,rgb(37 112 119 / 32%),transparent 65%),
    linear-gradient(145deg,#233d56,#162d43 65%,#15383e);
  color:#f2f6ff;
  font-family:Arial,sans-serif;
  box-shadow:0 24px 80px rgb(0 0 0 / 35%);
  color-scheme:dark;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog)::backdrop {
  background:rgb(5 15 29 / 78%);
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) h2 {
  margin:0;
  color:#f2f6ff;
  font-size:24px;
  font-weight:500;
  line-height:1.3;
  letter-spacing:-.02em;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) header p {
  margin:6px 0 0;
  color:#c4d3e3;
  font-size:14px;
  line-height:1.5;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) header button {
  display:grid;
  place-items:center;
  flex:none;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  padding:0;
  border:1px solid #7293aa;
  border-radius:8px;
  background:#203c50;
  color:#f2f6ff;
  cursor:pointer;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) header button:hover {
  background:#31576c;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) :is(summary,a) {
  color:#9ae5df;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) summary {
  min-height:44px;
  padding:12px 0;
  font-size:15px;
  font-weight:750;
  cursor:pointer;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:3px;
}
:root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) :is(button,summary,a):focus-visible {
  outline:3px solid #9ac7ff;
  outline-offset:3px;
  border-radius:8px;
}
@media(max-width:560px) {
  :root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) {
    width:calc(100% - 20px);
    max-height:calc(100dvh - 20px);
    padding:16px;
  }
  :root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) header {gap:12px;}
  :root dialog:is(.tool-walkthrough-dialog,.auditor-walkthrough-dialog,.editor-walkthrough-dialog) h2 {font-size:20px;}
}
.walkthrough-disclosure{font-size:14px;line-height:1.6;margin:12px 0;color:inherit;}
