/* Shared layout for the four workflow tabs.
   Reference canvas: 1774 × 887. Colors inherit the LP palette. */
.workflow-tabs .wf-reference { container-type:inline-size; padding:20px 0 24px; border:0; min-height:0; }
.wf-reference { --wf-ink:var(--ink); --wf-accent:var(--accent); --wf-before:#f0efec; --wf-after:#edf1f4; --wf-blue-wash:#dde6ec; color:var(--wf-ink); }
.wf-reference *, .wf-reference *::before, .wf-reference *::after { box-sizing:border-box; }
.wf-reference h3,.wf-reference h4,.wf-reference h5 { margin:0; letter-spacing:0; font-weight:700; }
.wf-reference p,.wf-reference ol,.wf-reference ul { margin:0; }
.wf-reference svg { display:block; }
.wf-example-header { position:static; display:flex; align-items:center; justify-content:space-between; gap:2cqw; padding:0 0 .75cqw; margin:0 1.75cqw; min-height:3.7cqw; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); box-shadow:none; }
.wf-example-header h3 { display:flex; align-items:baseline; gap:1.8cqw; font-size:2.7cqw; line-height:1.2; white-space:nowrap; }
.wf-example-header h3 span { font-size:2.2cqw; color:var(--wf-accent); }
.wf-example-header p { font-size:1cqw; color:var(--muted); line-height:1.5; }
.wf-reference .wf-main-title { margin:20px 1.75cqw; font-size:28px; line-height:1.5; font-weight:700; white-space:normal; letter-spacing:0; }
.wf-main-title em { font-size:inherit; color:var(--wf-accent); font-style:normal; }
.wf-comparison { display:grid; grid-template-columns:45% 3.3% 51.7%; align-items:stretch; }
.wf-before,.wf-after { padding:1.2cqw .9cqw 1.3cqw; border-radius:.6cqw; min-width:0; }
.wf-before { background:var(--wf-before); }
.wf-after { background:var(--wf-after); }
.wf-panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:.8cqw; height:6.1cqw; padding:0 .75cqw; }
.wf-panel-header > div { min-width:0; }
.wf-panel-header small { display:block; font-size:1.05cqw; line-height:1.35; font-weight:600; color:var(--muted); margin-bottom:.35cqw; }
.wf-panel-header h4 { font-size:1.8cqw; line-height:1.45; white-space:nowrap; }
.wf-panel-header h4 span { font-size:1.45cqw; }
.wf-reference .wf-count { border-left:1px solid #adb4b7; padding-left:1.8cqw; min-width:7.8cqw; white-space:nowrap; font-size:1.45cqw; line-height:1; font-weight:700; }
.wf-count small { font-size:1.05cqw; color:inherit; margin:0; }
.wf-count strong { font-size:4.4cqw; font-weight:700; letter-spacing:-.045em; }
.wf-after .wf-count { min-width:11.65cqw; color:var(--wf-accent); border-color:#9eaeba; }
.wf-after .wf-panel-header h4,.wf-after .wf-panel-header small { color:var(--wf-accent); }
.wf-before-body { display:grid; grid-template-columns:5.5cqw minmax(0,1fr); gap:.4cqw; height:23.25cqw; }
.wf-role { display:flex; flex-direction:column; align-items:center; justify-content:center; border-radius:.45cqw; background:#e6e6e3; color:var(--wf-accent); text-align:center; gap:.25cqw; }
.wf-role svg { width:2.3cqw; height:2.3cqw; margin-bottom:.35cqw; }
.wf-role strong { font-size:1.35cqw; line-height:1.4; font-weight:700; }
.wf-role span { font-size:1.1cqw; line-height:1.4; font-weight:600; white-space:nowrap; }
.wf-step-rows { position:relative; display:grid; grid-template-rows:1fr 1fr; gap:.65cqw; min-width:0; }
.wf-step-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; background:#ffffffb5; border-radius:.55cqw; padding:.85cqw 1.4cqw .65cqw 1.2cqw; gap:2.3cqw; }
.wf-step { min-width:0; position:relative; }
.wf-step h5 { display:flex; align-items:center; gap:.6cqw; font-size:1.05cqw; white-space:nowrap; line-height:1.35; margin:0 0 .55cqw; }
.wf-number { flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; width:1.8cqw; height:1.8cqw; border-radius:50%; background:var(--wf-accent); color:#fff; font-size:1.05cqw; line-height:1; }
.wf-step img { display:block; width:100%; height:4.05cqw; object-fit:cover; border-radius:.4cqw; margin-bottom:.4cqw; }
.wf-step p { font-size:.87cqw; line-height:1.65; color:#454b4d; }
.wf-step:not(:last-child)::after { content:'→'; position:absolute; right:-2cqw; top:3cqw; color:#959da1; font-size:2cqw; line-height:1; }
.wf-row-return { position:absolute; right:.55cqw; top:5.2cqw; width:.75cqw; height:6.6cqw; border:1.5px solid #a0a7ab; border-left:0; border-radius:0 0 .6cqw 0; }
.wf-row-return::after { content:''; position:absolute; left:-.15cqw; bottom:-.3cqw; border-right:.4cqw solid #a0a7ab; border-top:.3cqw solid transparent; border-bottom:.3cqw solid transparent; }
.wf-transition { align-self:center; height:6.7cqw; margin:0 .3cqw; background:linear-gradient(90deg,#becbd4,var(--wf-accent)); clip-path:polygon(0 25%,45% 25%,45% 0,100% 50%,45% 100%,45% 75%,0 75%); }
.wf-after-body { display:grid; grid-template-columns:5.5cqw minmax(0,1fr) 12.2cqw; grid-template-rows:10.3cqw 11.4cqw; gap:1.55cqw .45cqw; height:23.25cqw; }
.wf-after .wf-role { background:#dfe8ee; }
.wf-after .wf-role-human { grid-column:1; grid-row:1; }
.wf-role-ai { grid-column:1; grid-row:2; }
.wf-role-ai strong { font-size:1.3cqw; }
.wf-request { position:relative; grid-column:2; grid-row:1; border-radius:.6cqw; background:#fff; padding:1cqw 1.75cqw; min-width:0; }
.wf-request > img { position:absolute; top:.9cqw; right:.9cqw; width:70%; height:7.8cqw; object-fit:cover; border-radius:.4cqw; }
.wf-request h5, .wf-confirm h5 { position:relative; z-index:1; display:flex; align-items:center; gap:.8cqw; font-size:1.5cqw; line-height:1.3; white-space:nowrap; }
.wf-request .wf-number,.wf-confirm .wf-number { width:2.55cqw; height:2.55cqw; font-size:1.6cqw; }
.wf-request p { position:relative; z-index:1; margin:.35cqw 0 0 2.8cqw; width:max-content; max-width:calc(100% - 1.5cqw); padding:.55cqw .85cqw; border:1px solid #d2dde5; border-radius:.55cqw; background:#fff; font-size:1.05cqw; line-height:1.7; font-weight:700; }
.wf-down-arrow { position:absolute; bottom:-1.55cqw; left:52%; color:var(--wf-accent); font-size:2.5cqw; line-height:1; z-index:2; }
.wf-ai { position:relative; grid-column:2; grid-row:2; background:var(--wf-blue-wash); border-radius:.55cqw; padding:.9cqw 1.25cqw 1cqw; }
.wf-ai h5 { font-size:1.3cqw; color:var(--wf-accent); line-height:1.4; margin-bottom:.7cqw; }
.wf-ai ol { display:flex; gap:1.45cqw; padding:0; list-style:none; }
.wf-ai li { position:relative; display:flex; flex:1 1 0; min-width:0; height:5.8cqw; flex-direction:column; align-items:center; justify-content:center; gap:.65cqw; background:#ffffffb5; border-radius:.55cqw; color:var(--wf-accent); }
.wf-ai li svg { width:2.3cqw; height:2.3cqw; }
.wf-ai li span { font-size:.8cqw; white-space:nowrap; font-weight:700; }
.wf-ai li:not(:last-child)::after { content:'→'; position:absolute; right:-1.25cqw; top:1.4cqw; color:var(--wf-accent); font-size:1.7cqw; }
.wf-output-arrow { position:absolute; right:-1.5cqw; bottom:4.9cqw; color:var(--wf-accent); font-size:2.4cqw; line-height:1; z-index:3; }
.wf-confirm { position:relative; grid-column:3; grid-row:1/3; padding:.9cqw .8cqw 0; border-radius:.65cqw; background:#ffffffa8; }
.wf-confirm h5 { font-size:1.4cqw; gap:.6cqw; }
.wf-up-arrow { display:block; height:3cqw; font-size:2.6cqw; line-height:1; text-align:center; color:var(--wf-accent); margin:.4cqw 0 0; }
.wf-paper { position:relative; width:11.6cqw; height:17.45cqw; padding:1cqw .75cqw; background:#fff; border-radius:.15cqw; box-shadow:0 .5cqw .7cqw #15232d22; font-size:.36cqw; line-height:1.7; color:#282b2c; }
.wf-paper-head { display:flex; align-items:flex-start; justify-content:space-between; margin:0 0 1cqw; }
.wf-paper-head strong { font-size:.75cqw; }
.wf-paper-head span { font-size:.28cqw; text-align:right; }
.wf-paper > b { font-size:.47cqw; }
.wf-paper > p { font-size:.37cqw; line-height:1.8; margin:.4cqw 0; }
.wf-paper-total { display:flex; justify-content:space-between; align-items:center; border-block:1px solid #999; padding:.4cqw 0; margin:.8cqw 0; font-size:.5cqw; }
.wf-paper-total strong { font-size:.72cqw; }
.wf-paper table { border-collapse:collapse; width:100%; font-size:.35cqw; }
.wf-paper th,.wf-paper td { border:1px solid #ccc; padding:.22cqw .15cqw; text-align:right; }
.wf-paper th { background:#f3f3f1; font-weight:600; }
.wf-paper td:nth-child(2) { text-align:left; }
.wf-paper .gantt-fill { background:#788d9d; }
.wf-paper-lines { height:2cqw; background:repeating-linear-gradient(to bottom,transparent 0,transparent .6cqw,#ddd .6cqw,#ddd calc(.6cqw + 1px)); }
.wf-paper footer { font-size:.3cqw; margin-top:.5cqw; padding:0; border:0; background:none; text-align:left; }
.wf-points { display:flex; gap:1.6cqw; align-items:center; margin:1.45cqw 1.75cqw 0; min-height:4.3cqw; }
.wf-point-label { flex:0 0 11cqw; display:flex; gap:.7cqw; align-items:center; justify-content:center; height:3.2cqw; border-radius:3cqw; background:var(--wf-accent); color:#fff; font-size:1.3cqw; font-weight:700; letter-spacing:.04em; }
.wf-point-label svg { width:2cqw; height:2cqw; }
.wf-points ul { list-style:none; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; flex:1; padding:.7cqw 0; border-radius:3cqw; background:#fff8; }
.wf-points li { display:flex; align-items:center; gap:.7cqw; padding:0 1.25cqw; border-left:1px solid var(--line); white-space:nowrap; }
.wf-points li:first-child { border-left:0; }
.wf-check { display:flex; justify-content:center; align-items:center; width:1.8cqw; height:1.8cqw; flex-shrink:0; border-radius:50%; background:var(--wf-accent); color:#fff; font-size:1.25cqw; }
.wf-points p { font-size:.9cqw; }
.wf-points strong { font-size:1.1cqw; color:var(--wf-accent); }
.wf-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
/* Keep the diagram intact on small screens, with an explicitly scrollable canvas. */
@media(max-width:720px) {
 .workflow-tabs { overflow-x:auto; }
 .workflow-tab-list { position:sticky; left:0; min-width:0; }
 .workflow-tabs .wf-reference { width:960px; max-width:none; }
}

/* Portrait documents stay inside the confirmation lane. */
.wf-paper { padding:.75cqw .65cqw; }
.wf-paper-head { margin-bottom:.65cqw; }
.wf-paper > p { margin:.3cqw 0; }
.wf-paper-total { padding:.22cqw 0; margin:.45cqw 0; }
.wf-paper th,.wf-paper td { padding:.1cqw .12cqw; }
.wf-paper-lines { height:1.2cqw; }
.wf-paper footer { margin-top:.3cqw; }
