/* Scoped to the installation page. Account, key and download behavior stay in app.js. */
html:has(.setup-intro){scrollbar-gutter:stable}
.wx-relay #main:has(>.setup-intro){padding-top:52px;max-width:none}
.wx-relay #main:has(>.setup-intro)>*{max-width:1080px;margin-inline:auto}
.wx-relay #main:has(>.setup-intro) .page-head{min-height:0;margin-bottom:28px}
.wx-relay #main:has(>.setup-intro) h1{font-size:32px;line-height:1.25;letter-spacing:-.02em;margin-bottom:12px}
.wx-relay #main:has(>.setup-intro) .setup-tool-tabs{gap:0;margin:0;border-bottom:1px solid #62405230}
.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button{position:relative;justify-content:center;min-height:58px;padding:12px 10px;border:0;border-radius:0;background:transparent;color:#624b57;font-size:15px;gap:10px}
.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button:hover{background:#ffffff15}
.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button[aria-pressed="true"]{color:#432b39;background:#ffffff1c}
.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button[aria-pressed="true"]::after{content:"";position:absolute;bottom:-1px;left:18%;right:18%;height:2px;background:#624052}
.wx-relay #main:has(>.setup-intro) .setup-tool-tabs img{width:23px;height:23px}
.wx-relay #setup-flow .setup-downloads{padding:12px 0;margin:0 0 12px;background:none;border:0;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none;display:grid;grid-template-columns:1fr 1fr;gap:32px;overflow:visible}
.wx-relay #setup-flow[data-tool="workbuddy"] .setup-downloads{grid-template-columns:1fr}
.wx-relay #setup-flow .setup-downloads #switch-install{margin:0;padding:0;border:0}
.wx-relay #setup-flow .setup-downloads summary{font-size:13px;font-weight:500;min-height:44px;padding:12px 0}
.wx-relay #setup-flow .setup-downloads p{font-size:12px}
.wx-relay #setup-flow .download-device{margin:12px 0}
.wx-relay #setup-flow .download-device details{padding:0;border:0}
.wx-relay #setup-flow .download-device summary{font-size:12px;padding:4px 0;min-height:32px}
.wx-relay #setup-tools{padding:26px 28px 18px;border-radius:12px;background:#fffaf747;border:1px solid #ffffff88;margin-bottom:20px}
.wx-relay #setup-config-title{font-size:17px;margin:0 0 20px}
.wx-relay #setup-flow[data-tool="workbuddy"] #setup-config-title{font-size:13px;color:#705b63;font-weight:400;margin-bottom:18px}
.wx-relay #tool-doc:has(.wb-illustrated-guide){padding:0;margin:0;border:0}
.wx-relay .wb-illustrated-guide[data-enhanced]{max-width:none;margin:0}
.wx-relay .guide-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #62405225;margin-bottom:28px}
.wx-relay .guide-steps button{display:flex;justify-content:flex-start;gap:8px;min-height:48px;border:0;border-radius:0;background:none;padding:8px 0 16px;font-size:12px;position:relative;color:#745f68}
.wx-relay .guide-steps button:hover{background:none;color:#432b39}
.wx-relay .guide-step-number{font-size:11px;border:1px solid #62405233;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;flex-shrink:0}
.wx-relay .guide-steps [aria-selected="true"]{color:#432b39;font-weight:600}
.wx-relay .guide-steps [aria-selected="true"] .guide-step-number{background:#624052;border-color:#624052;color:#fff8f4}
.wx-relay .guide-steps [aria-selected="true"]::after{content:"";position:absolute;bottom:-1px;height:2px;left:0;right:24px;background:#624052}
.wx-relay .guide-panel{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.35fr);gap:32px;align-items:start;min-height:352px}
.wx-relay .guide-eyebrow{display:block;font-size:10px;letter-spacing:.11em;color:#705b63;margin:12px 0 18px}
.wx-relay #tool-doc .guide-panel h3{font-size:22px;line-height:1.45;margin:0 0 14px;font-weight:500;letter-spacing:-.02em}
.wx-relay .guide-description{font-size:13px;line-height:1.85;margin:0;max-width:32em;color:#624a55}
.wx-relay #tool-doc .wb-illustrated-guide .guide-panel .wb-guide{margin:0;max-width:none;min-width:0}
.wx-relay #tool-doc .guide-panel .wb-guide a{background:#ffffff45;border:1px solid #ffffff55;border-radius:7px;padding:10px}
.wx-relay #tool-doc .guide-panel .wb-guide img{width:100%;height:352px;object-fit:contain;object-position:center;border:0;border-radius:3px}
.wx-relay #tool-doc .guide-panel .wb-guide figcaption{font-size:11px;text-align:right;margin:8px 0 0}
.wx-relay .guide-panel .wb-copy-values{margin:24px 0 0;max-width:none}
.wx-relay .guide-panel .wb-copy-values .wb-config-row{grid-template-columns:1fr;gap:6px;margin:0 0 14px}
.wx-relay .guide-panel .wb-config-row>label{font-size:11px;font-weight:400}
.wx-relay .guide-panel .wb-config-row>label br{display:none}
.wx-relay .guide-panel .wb-copy-values .wb-config-value{grid-template-columns:minmax(0,1fr) auto;padding:8px 10px;background:#fff6;border:1px solid #fff9;gap:8px;border-radius:6px}
.wx-relay .guide-panel .wb-config-value code{font-size:11px}
.wx-relay .guide-panel .wb-copy-values button{width:auto;min-height:36px;padding:7px 9px;font-size:11px;background:transparent;border:1px solid #62405222;border-radius:6px}
.wx-relay .guide-panel .wb-key-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px}
.wx-relay .guide-panel .wb-key-controls select{font-size:12px;padding:8px;min-height:38px}
.wx-relay .guide-panel #wb-inline-login{width:100%;text-align:left}
.wx-relay .guide-footer{border-top:1px solid #62405222;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:16px}
.wx-relay .guide-count{font-size:11px;letter-spacing:.14em;color:#705b63}
.wx-relay .guide-footer>div{display:flex;gap:8px}
.wx-relay .guide-footer button{min-height:40px;font-size:12px;padding:10px 18px}
.wx-relay .guide-footer button:disabled{opacity:.32}
.wx-relay #setup-flow #node-card,.wx-relay #setup-flow #help{background:none;backdrop-filter:none;-webkit-backdrop-filter:none;border:0;border-top:1px solid #62405230;border-radius:0;padding:14px 0;margin:0}
.wx-relay #setup-flow #node-card details{border:0;padding:4px 0;font-size:12px}
.wx-relay #setup-flow #help h2{font-size:15px;margin:8px 0 10px}
.wx-relay #setup-flow #help details{font-size:12px;padding:14px 0}
.wx-relay #setup-flow .setup-inline-fields{align-items:end}
@media(min-width:1500px){.wx-relay #main:has(>.setup-intro){padding-top:66px}.wx-relay #tool-doc .guide-panel .wb-guide img{height:400px}.wx-relay .guide-panel{min-height:400px}}
@media(max-width:1150px){.wx-relay .guide-panel{grid-template-columns:1fr;gap:24px;min-height:0}.wx-relay .guide-instruction{max-width:none}.wx-relay .guide-eyebrow{margin:0 0 10px}.wx-relay #tool-doc .guide-panel h3{font-size:20px;margin-bottom:8px}.wx-relay #tool-doc .guide-panel .wb-guide img{height:320px}.wx-relay .guide-panel .wb-copy-values{margin-top:18px}.wx-relay #setup-tools{padding:22px}.wx-relay .guide-steps{margin-bottom:22px}}
@media(min-width:721px) and (max-width:900px){.wx-relay #main:has(>.setup-intro) .setup-tool-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button{font-size:12px;gap:6px;padding:10px 4px}.wx-relay #main:has(>.setup-intro) .setup-tool-tabs img{width:18px;height:18px}.wx-relay .guide-steps button{flex-direction:column;align-items:flex-start;gap:8px;font-size:11px}}
@media(max-width:720px){.wx-relay #main:has(>.setup-intro){padding:26px 20px 36px}.wx-relay #main:has(>.setup-intro) h1{font-size:27px}.wx-relay #main:has(>.setup-intro) .page-head{margin-bottom:22px}.wx-relay #main:has(>.setup-intro) .setup-tool-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button{justify-content:flex-start;padding:14px 12px;min-height:54px;font-size:13px}.wx-relay #main:has(>.setup-intro) .setup-tool-tabs button[aria-pressed="true"]::after{left:12px;right:12px}.wx-relay #setup-tools{padding:20px 16px 16px}.wx-relay #setup-flow .setup-downloads{grid-template-columns:1fr;gap:0;margin-bottom:8px}.wx-relay .guide-steps button{flex-direction:column;align-items:flex-start;gap:8px;font-size:11px}.wx-relay .guide-steps [aria-selected="true"]::after{right:16px}.wx-relay #tool-doc .guide-panel .wb-guide img{height:auto;max-height:360px}.wx-relay .guide-panel .wb-copy-values button{min-height:44px}.wx-relay .guide-panel .wb-key-controls select{min-height:44px}.wx-relay .guide-footer button{min-height:44px;padding:10px 13px}.wx-relay .guide-footer{gap:8px}.wx-relay .guide-footer>div{gap:4px}}
@media(prefers-reduced-motion:no-preference){.wx-relay .setup-tool-tabs button,.wx-relay .guide-steps button,.wx-relay .guide-step-number{transition:background-color .18s,color .18s,border-color .18s}}

/* Wide screens: follow the screenshot on the left, configure on the right. */
@media(min-width:1151px){
 .wx-relay .guide-panel{grid-template-columns:minmax(0,1.35fr) minmax(240px,.85fr);grid-template-areas:"image instruction"}
 .wx-relay .guide-panel>.wb-guide{grid-area:image}
 .wx-relay .guide-panel>.guide-instruction{grid-area:instruction;min-width:0}
}

/* Claude editions share the page's existing centered layout. */
.wx-relay #claude-choice{margin:22px 0 18px}
.wx-relay #claude-choice .claude-editions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 14px}
.wx-relay .claude-editions button{display:flex;align-items:flex-start;flex-direction:column;gap:7px;text-align:left;padding:18px 20px;border-radius:10px;background:#ffffff28;border:1px solid #ffffff75;min-width:0}
.wx-relay .claude-editions button[aria-pressed="true"]{background:#624052;color:#fff8f4;border-color:#624052}
.wx-relay .claude-editions small{color:inherit;font-size:12px;font-weight:400;line-height:1.6}
.wx-relay #claude-edition-note{font-size:13px;line-height:1.85;margin:0;color:#624a55}
.wx-relay #claude-system .download-device{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:12px 0 0}
.wx-relay #claude-system .download-device p{margin:0;font-size:12px}
.wx-relay #claude-system details{font-size:12px;border:0;padding:0}
.wx-relay #claude-system summary{padding:5px 0;min-height:30px}
.wx-relay .claude-install-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:4px 0 28px}
.wx-relay .claude-install-flow>div{position:relative;display:grid;justify-items:center;gap:9px;padding:18px 10px;background:#fff5;border:1px solid #fff8;border-radius:9px;text-align:center}
.wx-relay .claude-install-flow>div>span{position:absolute;top:10px;left:12px;font-size:11px;color:#705b63}
.wx-relay .claude-install-flow img{width:27px;height:27px;margin-bottom:3px}
.wx-relay .claude-install-flow strong{font-size:14px}
.wx-relay .claude-install-flow small{font-size:11px;line-height:1.6;color:#705b63}
.wx-relay #setup-inline-import:has(+.claude-install-tracker) .setup-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.wx-relay .claude-install-flow>#claude-download-slot{display:block;padding:0;border:0;background:none}
.wx-relay #claude-download-slot .claude-download-step{position:relative;display:grid;justify-items:center;gap:9px;width:100%;height:100%;padding:18px 10px;border-radius:9px;text-align:center;border:1px solid #624052;background:#624052;color:#fff8f4}
.wx-relay .claude-download-step>span{position:absolute;top:10px;left:12px;font-size:11px}
.wx-relay .claude-download-step small{color:inherit;font-weight:400}
.wx-relay .claude-download-step img{filter:brightness(0) invert(1)}
.wx-relay #claude-download-slot .claude-download-step:hover:not(:disabled){background:#4f3143;border-color:#4f3143}
.wx-relay .claude-download-step:focus-visible,.wx-relay .claude-diagram-zoom:focus-visible{outline:3px solid #624052;outline-offset:4px}
.wx-relay .claude-extra{margin-top:16px;border-top:1px solid #62405225;padding:14px 0;font-size:13px;line-height:1.9}
.wx-relay .claude-extra summary{min-height:32px;font-weight:500}
.wx-relay .claude-extra ol,.wx-relay .claude-desktop-steps{padding-left:24px;line-height:1.9}
.wx-relay .claude-desktop-steps{font-size:14px;margin-top:26px}
.wx-relay .claude-desktop-steps li{margin-bottom:18px;padding-left:5px}
.wx-relay .claude-desktop-steps p{margin:4px 0 0;color:#624a55;font-size:13px}
.wx-relay .claude-guide-image{margin:14px 0;max-width:640px}
.wx-relay .claude-guide-image img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover;object-position:top;border:1px solid #ffffff80;border-radius:8px}
.wx-relay .claude-guide-image figcaption{font-size:12px;color:#705b63;margin-top:6px}
.wx-relay .claude-route-image img{width:220px;max-width:100%}
.wx-relay .claude-diagram-zoom{display:block;width:100%;padding:0;border:1px solid #ffffff80;border-radius:8px;overflow:hidden;background:#fff;cursor:zoom-in}
.wx-relay .claude-import-diagram{position:relative;width:100%;aspect-ratio:1280/520;overflow:hidden;background:#fff}
.wx-relay .claude-import-diagram img{position:absolute;top:0;left:0;display:block;width:100%;height:auto;max-height:none;border:0;border-radius:0}
.wx-relay .claude-import-diagram svg{position:absolute;inset:0;width:100%;height:100%;font-family:inherit}
.wx-relay dialog.claude-guide-dialog{width:min(1100px,calc(100vw - 24px));max-width:none}
.wx-relay .claude-diagram-scroll{overflow:auto;border-radius:8px}
.wx-relay .claude-diagram-scroll .claude-import-diagram{min-width:720px}
.wx-relay .claude-code-path{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;font-size:12px}
.wx-relay .claude-code-path span{padding:6px 10px;background:#ffffff60;border:1px solid #ffffff80;border-radius:6px}
.wx-relay .claude-code-path b{color:#705b63;font-weight:400}
.wx-relay .claude-component-note{border-left:2px solid #62405255;padding-left:12px;line-height:1.8}
.wx-relay .claude-image-credit{font-size:11px}
.wx-relay .claude-command{display:block;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;padding:12px;background:#fff5;border-radius:6px;font-size:12px}
.wx-relay #tool-doc kbd{padding:2px 5px;border:1px solid #62405230;border-radius:4px;font-size:12px}
@media(max-width:720px){.wx-relay .claude-editions button{padding:14px 12px}.wx-relay .claude-editions strong{font-size:14px}.wx-relay .claude-install-flow{gap:6px}.wx-relay .claude-install-flow>div,.wx-relay #claude-download-slot .claude-download-step{padding:24px 6px 12px}.wx-relay .claude-install-flow strong{font-size:12px}.wx-relay .claude-install-flow small{font-size:10px}.wx-relay #claude-system .download-device{gap:8px}}

.wx-relay .claude-install-tracker{margin:18px 0 16px}
.wx-relay .claude-install-tracker progress{display:block;appearance:none;width:100%;height:7px;border:0;border-radius:99px;overflow:hidden;background:#6240521a;accent-color:#624052}
.wx-relay .claude-install-tracker progress::-webkit-progress-bar{background:#6240521a;border-radius:99px}
.wx-relay .claude-install-tracker progress::-webkit-progress-value{background:#624052;border-radius:99px}
.wx-relay .claude-install-tracker progress::-moz-progress-bar{background:#624052;border-radius:99px}
.wx-relay #claude-install-next{margin:10px 0 0;font-size:12px;line-height:1.8;color:#624a55}
