:root {
  --bg: #f7f8fa;
  --bg-soft: #f0f2f5;
  --surface: #fcfcfd;
  --ink: #17191d;
  --ink-2: #555b66;
  --ink-3: #68707c;
  --blue:var(--qz-accent,#2563eb);
  --blue-strong:var(--qz-accent-hover,#1d4ed8);
  --blue-soft:var(--qz-accent-soft,rgba(37,99,235,.08));
  --hair: rgba(0, 0, 0, .09);
  --nav-bg: rgba(247, 248, 250, .78);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px rgba(0, 0, 0, .07);
}

html.dark {
  --bg: #111318;
  --bg-soft: #20242c;
  --surface: #171a20;
  --ink: #f1f3f6;
  --ink-2: #b8bec8;
  --ink-3: #929aa7;
  --blue:var(--qz-accent,#58a8f7);
  --blue-strong:var(--qz-accent-hover,#78b9f9);
  --blue-soft: #102a43;
  --hair: rgba(255, 255, 255, .12);
  --nav-bg: rgba(18, 18, 20, .76);
  --shadow: 0 2px 3px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family:var(--qz-font-sans);
  font-size:var(--qz-font-size-14);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--blue) 52%, transparent); outline-offset: 2px; border-radius: var(--qz-radius-control,10px); }
::selection { background: rgba(0, 113, 227, .22); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.skip-link {
  position: fixed;
  z-index: 500;
  top: 8px;
  left: 12px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: var(--qz-radius-control,10px);
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

#workflowMain { min-height: calc(100vh - 180px); }
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58vh;
  gap: 12px;
  color: var(--ink-3);
}
.loading-state span { width: 18px; height: 18px; border: 2px solid var(--hair); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-state[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.list-shell, .detail-shell, .error-shell { max-width: var(--qz-container); margin: 0 auto; padding-right: 22px; padding-left: 22px; }
.list-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  min-height: 350px;
  padding: 82px 0 54px;
  gap: 72px;
}
.list-hero h1, .detail-hero h1 { max-width: 800px; font-size: clamp(42px, 5.5vw, 76px); font-weight:600; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.list-hero h1 strong { color: var(--blue); font-weight: inherit; }
.list-hero-copy { max-width: 480px; padding-bottom: 5px; color: var(--ink-2); font-size:var(--qz-font-size-16); }
.list-hero-copy p + p { margin-top: 12px; }

.workflow-board { border-top: 1px solid var(--hair); }
.workflow-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(430px, 1.7fr) 154px;
  align-items: center;
  min-height: 170px;
  border-bottom: 1px solid var(--hair);
  gap: 34px;
  transition: background-color var(--qz-duration-fast,.14s) ease, transform var(--qz-duration-fast,.14s) cubic-bezier(.2, .8, .2, 1);
}
.workflow-row:hover { background: var(--bg-soft); }
.workflow-row::before { position: absolute; top: -1px; bottom: -1px; left: -24px; width: 24px; background: inherit; content: ""; }
.workflow-identity { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 17px; }
.workflow-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--qz-radius-surface,14px); background: var(--blue-soft); color: var(--blue); }
.workflow-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.workflow-identity h2 { font-size:var(--qz-font-size-20); line-height: 1.24; letter-spacing: -.02em; }
.workflow-identity p { margin-top: 6px; color: var(--ink-3); font-size:var(--qz-font-size-14); line-height: 1.42; }
.workflow-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 20px; }
.track-step { position: relative; min-width: 0; padding-top: 20px; }
.track-step::before { position: absolute; top: 0; left: 0; width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; background: var(--bg); content: ""; }
.workflow-row:hover .track-step::before { background: var(--bg-soft); }
.track-step:not(:last-child)::after { position: absolute; top: 5px; left: 6px; width: calc(100% + 20px); height: 1px; background: var(--hair); content: ""; }
.track-step b { display: block; overflow: hidden; font-size:var(--qz-font-size-14); font-weight:600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.track-step span { display: block; margin-top: 6px; color: var(--ink-3); font-size:var(--qz-font-size-14); }
.qz-shell .open-workflow { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 16px; border-radius: var(--qz-radius-surface,14px); background: #0068c9; color: #fff; font-size:var(--qz-font-size-14); font-weight:600; box-shadow:var(--qz-shadow-float, 0 7px 18px rgba(0, 104, 201, .2)); transition: transform var(--qz-duration-fast,.14s) cubic-bezier(.2, .8, .2, 1), background-color var(--qz-duration-fast,.14s) ease, box-shadow var(--qz-duration-fast,.14s) ease; }
.qz-shell .open-workflow:hover { background: #005eb8; color: #fff; transform: translateX(2px); }
.open-workflow:active { box-shadow:var(--qz-shadow-float, 0 3px 10px rgba(0, 113, 227, .12)); transform: scale(.985); }

.list-close { display: flex; align-items: center; justify-content: space-between; padding: 46px 0 74px; gap: 30px; color: var(--ink-2); }
.list-close p { max-width: 680px; }
.list-close a, .back-link, .error-shell a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid var(--hair); border-radius: var(--qz-radius-surface,14px); background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.list-close a:hover, .back-link:hover, .error-shell a:hover { color: var(--blue); }

.detail-shell { padding-top: 42px; padding-bottom: 90px; }
.back-link { box-shadow: none; font-size:var(--qz-font-size-14); }
.detail-hero { padding: 54px 0 58px; border-bottom: 1px solid var(--hair); }
.detail-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); align-items: end; gap: 72px; }
.detail-title { display: flex; align-items: flex-start; gap: 22px; }
.detail-title .workflow-icon { width: 68px; height: 68px; margin-top: 2px; flex: 0 0 auto; }
.detail-title .workflow-icon svg { width: 34px; height: 34px; }
.detail-title h1 { font-size: clamp(38px, 5vw, 66px); }
.detail-description { max-width: 470px; padding-bottom: 5px; color: var(--ink-2); font-size:var(--qz-font-size-16); }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.detail-fact { padding: 20px 24px 20px 0; }
.detail-fact + .detail-fact { padding-left: 24px; border-left: 1px solid var(--hair); }
.detail-fact dt { color: var(--ink-3); font-size:var(--qz-font-size-14); }
.detail-fact dd { margin-top: 4px; font-size:var(--qz-font-size-14); font-weight: 600; }
.principles { margin-top: 32px; }
.principles h2 { font-size:var(--qz-font-size-14); }
.principles ul { display: flex; flex-wrap: wrap; margin-top: 12px; gap: 8px; list-style: none; }
.principles li { min-height: 36px; padding: 7px 12px; border-radius: var(--qz-radius-control,10px); background: var(--bg-soft); color: var(--ink-2); font-size:var(--qz-font-size-14); }

.detail-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; padding-top: 42px; gap: 64px; }
.journey-nav { position: sticky; top: calc(var(--qz-header-height) + 24px); }
.journey-nav h2 { margin-bottom: 14px; font-size:var(--qz-font-size-14); }
.journey-nav ol { border-top: 1px solid var(--hair); list-style: none; }
.journey-nav a { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; min-height: 52px; border-bottom: 1px solid var(--hair); gap: 8px; color: var(--ink-2); font-size:var(--qz-font-size-14); }
.journey-nav a:hover { color: var(--blue); }
.journey-nav b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size:var(--qz-font-size-14); }
.journey-note { margin-top: 18px; color: var(--ink-3); font-size:var(--qz-font-size-14); }

.step-section { scroll-margin-top: calc(var(--qz-header-height) + 24px); padding: 4px 0 58px; }
.step-section + .step-section { padding-top: 54px; border-top: 1px solid var(--hair); }
.step-heading { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-size:var(--qz-font-size-14); font-weight: 700; }
.step-heading h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.16; letter-spacing: -.03em; }
.step-heading p { max-width: 720px; margin-top: 8px; color: var(--ink-2); font-size:var(--qz-font-size-16); }
.step-spec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin: 30px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.spec-block { padding: 20px 24px 22px 0; }
.spec-block + .spec-block { padding-left: 28px; border-left: 1px solid var(--hair); }
.spec-block h3 { margin-bottom: 8px; color: var(--ink-3); font-size:var(--qz-font-size-14); font-weight: 600; }
.spec-block p { font-weight: 600; }
.check-list { display: grid; gap: 7px; list-style: none; }
.check-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.check-list li::before { position: absolute; top: 2px; left: 0; color: var(--blue); content: "✓"; font-weight:700; }
.tool-choice-label { margin-bottom: 12px; font-size:var(--qz-font-size-14); font-weight:600; }
.tool-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-choice { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; min-height: 116px; padding: 18px; border-radius: var(--qz-radius-surface,14px); background: var(--surface); box-shadow: var(--shadow); gap: 14px; transition: transform var(--qz-duration-fast,.14s) cubic-bezier(.2, .8, .2, 1), box-shadow var(--qz-duration-fast,.14s) ease; }
.tool-choice:hover { transform: translateY(-2px); box-shadow:var(--qz-shadow-menu, 0 2px 5px rgba(0, 0, 0, .06), 0 18px 38px rgba(0, 0, 0, .11)); }
.tool-choice:active { transform: scale(.992); }
.tool-logo { position: relative; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: var(--qz-radius-surface,14px); background: var(--bg-soft); color: var(--blue); font-size:var(--qz-font-size-16); font-weight: 700; transition: transform var(--qz-duration-fast,.14s) cubic-bezier(.2, .8, .2, 1); }
.tool-logo img { position: absolute; inset: 4px; width: 40px; height: 40px; object-fit: contain; border-radius: var(--qz-radius-control,10px); }
.tool-logo img.failed { display: none; }
.tool-copy { min-width: 0; }
.tool-copy h3 { overflow: hidden; font-size:var(--qz-font-size-16); line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.tool-copy p { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--ink-3); font-size:var(--qz-font-size-14); line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tool-domain { display: block; overflow: hidden; max-width: 130px; margin-top: 7px; color: var(--ink-3); font-size:var(--qz-font-size-14); text-overflow: ellipsis; white-space: nowrap; }
.tool-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); color: var(--blue); font-size:var(--qz-font-size-16); transition: color var(--qz-duration-fast,.14s) ease, background-color var(--qz-duration-fast,.14s) ease, transform var(--qz-duration-fast,.14s) cubic-bezier(.2, .8, .2, 1); }
.tool-choice:hover .tool-logo { transform: scale(1.035); }
.tool-choice:hover .tool-go { background: var(--blue); color: #fff; transform: translate(2px, -1px); }

.workflow-disclaimer { margin-top: 18px; padding: 16px 18px; border-radius: var(--qz-radius-surface,14px); background: var(--bg-soft); color: var(--ink-3); font-size:var(--qz-font-size-14); }
.error-shell { display: grid; place-items: start; min-height: 62vh; padding-top: 110px; padding-bottom: 90px; }
.error-shell h1 { max-width: 720px; font-size: clamp(38px, 6vw, 70px); line-height: 1.05; letter-spacing: -.04em; }
.error-shell p { max-width: 580px; margin: 20px 0 28px; color: var(--ink-2); font-size:var(--qz-font-size-16); }

.site-footer { display: flex; align-items: center; justify-content: space-between; max-width: var(--qz-container); margin: 0 auto; padding: 28px 22px 40px; border-top: 1px solid var(--hair); gap: 28px; color: var(--ink-3); font-size:var(--qz-font-size-14); }
.site-footer b { color: var(--ink); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-weight: 600; }
.site-footer a:hover { color: var(--blue); }

.reveal-ready { opacity: 1; transform: none; transition: opacity .48s cubic-bezier(.16, 1, .3, 1), transform .48s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal-delay-1 { --reveal-delay: 28ms; }
.reveal-delay-2 { --reveal-delay: 56ms; }
.reveal-delay-3 { --reveal-delay: 84ms; }
.reveal-delay-4 { --reveal-delay: 112ms; }
.reveal-ready.is-revealed { opacity: 1; transform: none; }
.list-close a, .back-link, .error-shell a, .journey-nav a { transition: color var(--qz-duration-fast,.14s) ease, border-color var(--qz-duration-fast,.14s) ease, background-color var(--qz-duration-fast,.14s) ease, box-shadow var(--qz-duration-fast,.14s) ease, transform var(--qz-duration-fast,.14s) cubic-bezier(.2, .8, .2, 1); }
.list-close a:active, .back-link:active, .error-shell a:active, .journey-nav a:active { transform: scale(.985); }

@media (max-width: 900px) {
  .list-shell, .detail-shell, .error-shell { padding-right: 18px; padding-left: 18px; }
  .list-hero, .detail-heading { grid-template-columns: 1fr; gap: 26px; }
  .list-hero { min-height: 0; padding: 66px 0 42px; }
  .workflow-row { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); min-height: 188px; gap: 26px; }
  .open-workflow { grid-column: 1 / -1; position: absolute; right: 0; bottom: 18px; width: 150px; }
  .detail-heading { align-items: start; }
  .detail-layout { grid-template-columns: 1fr; padding-top: 28px; gap: 38px; }
  .journey-nav { position: static; }
  .journey-nav ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-nav a { border-right: 1px solid var(--hair); padding: 0 10px; }
  .journey-nav li:last-child a { border-right: 0; }
}

@media (max-width: 720px) {
  .list-hero h1, .detail-hero h1 { font-size: clamp(38px, 12vw, 54px); }
  .list-hero-copy, .detail-description { font-size:var(--qz-font-size-14); }
  .workflow-row { display: block; min-height: 0; padding: 26px 0 82px; }
  .workflow-row::before { display: none; }
  .workflow-identity { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .workflow-icon { width: 48px; height: 48px; }
  .workflow-icon svg { width: 25px; height: 25px; }
  .workflow-track { margin-top: 22px; gap: 8px; }
  .track-step { padding-left: 16px; }
  .track-step::before { width: 7px; height: 7px; }
  .track-step:not(:last-child)::after { transform: translateX(11px); }
  .track-step b { font-size:var(--qz-font-size-14); }
  .track-step span { font-size:var(--qz-font-size-14); }
  .open-workflow { right: 0; bottom: 22px; width: 100%; }
  .list-close { align-items: flex-start; flex-direction: column; padding: 38px 0 58px; }
  .detail-shell { padding-top: 24px; padding-bottom: 64px; }
  .detail-hero { padding: 38px 0 42px; }
  .detail-title { display: block; }
  .detail-title .workflow-icon { margin-bottom: 20px; }
  .detail-facts { grid-template-columns: 1fr; margin-top: 32px; }
  .detail-fact { padding: 16px 0; }
  .detail-fact + .detail-fact { padding-left: 0; border-top: 1px solid var(--hair); border-left: 0; }
  .principles ul { display: grid; }
  .principles li { min-height: 44px; padding: 11px 13px; }
  .journey-nav ol { grid-template-columns: 1fr; }
  .journey-nav a { border-right: 0; padding: 0; }
  .step-section { padding-bottom: 44px; }
  .step-section + .step-section { padding-top: 42px; }
  .step-heading { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .step-heading h2 { font-size:var(--qz-font-size-28); }
  .step-heading p { font-size:var(--qz-font-size-14); }
  .step-spec { grid-template-columns: 1fr; margin: 24px 0; }
  .spec-block { padding: 17px 0; }
  .spec-block + .spec-block { padding-left: 0; border-top: 1px solid var(--hair); border-left: 0; }
  .tool-choices { grid-template-columns: 1fr; }
  .tool-choice { min-height: 112px; padding: 16px; }
  .tool-domain { max-width: 150px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 480px) {
  .list-shell, .detail-shell, .error-shell { padding-right: 14px; padding-left: 14px; }
  .workflow-track { grid-template-columns: 1fr; gap: 7px; }
  .track-step { min-height: 28px; }
  .track-step:not(:last-child)::after { top: 12px; left: 4px; width: 1px; height: 32px; transform: none; }
  .track-step b { white-space: normal; }
  .track-step span { display: inline; margin-left: 5px; }
  .tool-choice { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
  .tool-logo { width: 44px; height: 44px; }
  .tool-logo img { inset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-state span { animation: none; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
  .reveal-ready.is-revealed { opacity: 1; }
  .workflow-row, .open-workflow, .tool-choice, .tool-logo, .tool-go, .list-close a, .back-link, .error-shell a, .journey-nav a { transition-duration: var(--qz-duration-fast,.14s); }
  .workflow-row:hover, .open-workflow:hover, .open-workflow:active, .tool-choice:hover, .tool-choice:active, .tool-choice:hover .tool-logo, .tool-choice:hover .tool-go, .list-close a:active, .back-link:active, .error-shell a:active, .journey-nav a:active { transform: none; }
}

/* Preserve all legacy guides, with the shared page and reading hierarchy. */
html:root { --bg:var(--qz-canvas); --surface:var(--qz-surface); --ink:var(--qz-ink); --ink-2:var(--qz-ink-secondary); --ink-3:var(--qz-ink-tertiary); --blue:var(--qz-accent); --hair:var(--qz-line); }
.list-hero { min-height:0; padding-block:48px 36px; gap:48px; }
.list-hero h1,.detail-title h1,.detail-hero h1,.error-shell h1 { font-size:var(--qz-page-title); line-height:1.35; letter-spacing:-.025em; }
.detail-hero { padding-block:var(--qz-space-8); }
.step-heading h2 { font-size:var(--qz-font-size-28); line-height:1.45; }
.workflow-row,.tool-choice { border-radius:var(--qz-radius-surface); }
.tool-go,.open-workflow { min-height:var(--qz-control); border-radius:var(--qz-radius-control); }
.qz-shell .open-workflow { border-radius:var(--qz-radius-control); background:var(--qz-accent); color:var(--qz-on-accent); box-shadow:none; font-size:var(--qz-font-size-14); }
.qz-shell .open-workflow:hover { background:var(--qz-accent-hover); color:var(--qz-on-accent); box-shadow:none; transform:none; }
@media(max-width:720px) { .list-hero { padding-block:32px 28px; gap:20px; } .list-hero h1,.detail-hero h1 { font-size:var(--qz-font-size-28); } }
