/* Onboarding workspace: all rules stay within the guide and its two launch links. */
#pms-assistant-panel.guided-setup-panel{position:fixed;inset:16px 16px 16px auto;width:min(1100px,calc(100vw - 32px));max-width:none;height:auto;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;padding:24px;background:#fbfaf6;border:1px solid #d8d0c1;border-radius:18px;box-shadow:0 20px 70px #1b30252b;z-index:100;box-sizing:border-box;color:#263b34;font-family:'Yu Gothic UI',Meiryo,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.guided-setup-panel *{box-sizing:border-box}.guided-setup-panel[hidden]{display:none!important}.guided-setup-panel .pms-assistant-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 10px}.guided-setup-panel h2{font:700 23px/1.4 'Yu Gothic UI',Meiryo,sans-serif;margin:0}.guided-setup-panel h3{font:700 23px/1.45 'Yu Gothic UI',Meiryo,sans-serif;margin:5px 0 16px;letter-spacing:.01em}.guided-setup-panel h4{font:700 17px/1.5 "Yu Gothic UI",Meiryo,system-ui,sans-serif;margin:8px 0}.guided-setup-panel p,.guided-setup-panel li,.guided-setup-panel label,.guided-setup-panel dd{font-size:14px;line-height:1.75;overflow-wrap:anywhere}.guided-setup-panel p{margin:8px 0 14px}.guided-setup-panel button{font:600 14px/1.5 "Yu Gothic UI",Meiryo,system-ui,sans-serif;min-height:44px;white-space:normal;border-radius:9px;padding:10px 15px;cursor:pointer}.guided-setup-panel button:disabled{cursor:not-allowed;opacity:.55}.guided-setup-panel button.primary{background:#214e40;color:white;border:1px solid #214e40}.guided-setup-panel button.secondary{background:#fff;color:#344d42;border:1px solid #d5d8ce}.guided-setup-panel button:focus-visible,.guided-setup-panel a:focus-visible,.guided-setup-panel summary:focus-visible{outline:3px solid #bc7a45;outline-offset:3px}.guided-setup-panel #pms-assistant-close{flex-shrink:0;font-size:24px;width:44px;padding:0;background:#f3eee4;color:#4e5043;border:0}.guided-setup-panel #pms-assistant-property{padding:10px 14px;background:#f0eee5;border-radius:8px;margin:0 0 16px;font-size:13px;color:#5d675b}.guided-setup-panel .pms-assistant-thread{display:block;padding:0;border:0;background:none;max-height:none;overflow:visible}.guided-message{border:1px solid #a4c6ad;background:#edf6ef;padding:12px 15px;border-radius:9px;scroll-margin:20px}.guided-message.error{background:#fff4e3;border-color:#d6b985;color:#75502a}.guided-message[hidden]{display:none}.guided-progress{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 20px}.guided-progress>div{display:grid;gap:4px}.guided-progress b{font-size:15px}.guided-progress span{font-size:12px;color:#687667}.guided-progress progress{width:140px;height:8px;border:0;border-radius:8px;accent-color:#397456;flex-shrink:0}.guided-progress progress::-webkit-progress-bar{background:#e3e8df;border-radius:8px}.guided-progress progress::-webkit-progress-value{background:#397456;border-radius:8px}.guided-layout{display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start;gap:24px}.guided-steps{display:grid;gap:6px;position:sticky;top:0}.guided-setup-panel .guided-steps button{display:flex;align-items:center;gap:9px;text-align:left;background:transparent;color:#516458;border:1px solid transparent;padding:11px 8px}.guided-steps button>span:nth-child(2){display:grid;gap:4px;min-width:0}.guided-steps b{font-size:13px;line-height:1.5}.guided-steps small{font-size:11px;line-height:1.45;color:#718173}.guided-step-number{width:26px;height:26px;display:grid;place-items:center;flex-shrink:0;border:1px solid #c9d2c5;border-radius:50%;font-size:12px;background:#fff}.guided-steps em{font-style:normal;font-size:10px;margin-left:auto;writing-mode:horizontal-tb;white-space:nowrap;color:#76856f}.guided-setup-panel .guided-steps button[aria-current]{background:#eaf1e7;border-color:#c1d3bd;color:#244f3d}.guided-steps button[aria-current] .guided-step-number{background:#315c44;color:#fff;border-color:#315c44}.guided-main{min-width:0;background:#fff;padding:24px;border:1px solid #dfded4;border-radius:14px}.guided-label{font-size:11px;letter-spacing:.1em;color:#996947;font-weight:700}.guided-setup-panel #pms-assistant-actions{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0 0;padding:18px 0 0;border-top:1px solid #e6e5dc}.guided-setup-panel #pms-assistant-actions .primary{flex-basis:100%}.guided-setup-panel form{display:grid;gap:14px}.guided-setup-panel form label{display:grid;gap:6px;font-weight:600}.guided-setup-panel input,.guided-setup-panel select{width:100%;min-width:0;min-height:44px;border:1px solid #cdd3c7;border-radius:8px;padding:10px 12px;background:#fff;color:#263b34;font:400 16px/1.4 "Yu Gothic UI",Meiryo,system-ui,sans-serif}.guided-setup-panel input[hidden]{display:none}.guided-setup-panel form small{font-size:12px;color:#66775f}.guided-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guided-tip{padding:14px 16px;background:#f1f5ed;border-left:3px solid #9aaf88;border-radius:0 9px 9px 0;margin:16px 0}.guided-tip>b{font-size:14px}.guided-tip p{font-size:13px;margin:5px 0 0}.guided-fact{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:14px 16px;background:#edf3e9;border:1px solid #ccdac2;border-radius:9px;margin:16px 0}.guided-fact b{font-size:20px}.guided-fact span{font-size:13px;color:#5e715a}.guided-checklist{padding-left:23px;margin:20px 0}.guided-checklist li{padding-left:5px;margin-bottom:14px}.guided-checklist b,.guided-checklist span{display:block}.guided-checklist span{color:#66705f;font-size:13px;margin-top:3px}.guided-service{border:1px solid #dde1d6;border-radius:10px;padding:16px;margin:12px 0}.guided-service h4{color:#3c5845}.guided-service ol{padding-left:20px}.guided-setup-panel .guided-service p{font-size:13px;margin-bottom:0}.guided-review{list-style:none;padding:0;margin:18px 0}.guided-review li{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #e3e6dc}.guided-review li>div{display:grid;gap:4px;flex:1;min-width:0}.guided-review li strong{font-size:14px}.guided-review li div>span{font-size:12px;color:#6d7865}.guided-review button{flex-shrink:0;min-height:38px;padding:6px 10px!important;background:#f4f5ee;border:1px solid #d3d9ca}.guided-review-mark{font-size:18px;color:#607e50;width:20px;flex-shrink:0}.guided-final-checks{padding:12px 16px;border:1px solid #ddd8ca;border-radius:9px;background:#fcfbf5;margin:16px 0}.guided-final-checks summary,.guided-ai summary{cursor:pointer;font-size:14px;font-weight:600;line-height:1.65}.guided-final-checks ul{padding-left:20px}.guided-setup-panel .guided-small{font-size:12px;color:#6e7566}.guided-handbook{display:inline-block;color:#516f4e;font-size:13px;line-height:1.6;text-underline-offset:3px;margin-top:8px;overflow-wrap:anywhere}.guided-ai{margin-top:18px;padding:14px 18px;border:1px solid #e0dfd5;border-radius:10px}.guided-ai[hidden]{display:none}.guided-ai form{margin-top:14px}.guided-ai>div{white-space:pre-wrap;margin-top:12px;font-size:14px;line-height:1.7}.guided-setup-panel>.security-note{font-size:11px;color:#848578;line-height:1.6;margin:14px 0 0}.guided-welcome{max-width:800px;margin:14px auto 24px}.guided-welcome h3{font-size:30px}.guided-preparation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.guided-preparation>div{border:1px solid #dcded2;background:#fff;border-radius:12px;padding:20px}.guided-preparation li{margin:7px 0}.guided-preparation ul,.guided-preparation ol{padding-left:22px;margin-bottom:0}.guided-complete{text-align:center;padding:18px 10px}.guided-complete>span{width:50px;height:50px;display:grid;place-items:center;margin:0 auto 12px;background:#e9f2e4;color:#47703d;border-radius:50%;font-size:26px}.onboarding-public-guide{font-size:12px;color:#315b4d;margin-left:auto;text-underline-offset:3px}.guided-setup-panel #pms-assistant-first-message-form{max-width:800px;margin:0 auto}.guided-setup-panel[aria-busy=true]{cursor:progress}.guided-setup-panel[aria-busy=true] #pms-assistant-actions{opacity:.65}
@media(max-width:800px){#pms-assistant-panel.guided-setup-panel{inset:8px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px}.guided-layout{grid-template-columns:1fr;gap:18px}.guided-steps{position:static;display:flex;overflow-x:auto;gap:6px;padding-bottom:6px;scrollbar-width:thin}.guided-setup-panel .guided-steps button{min-width:144px;padding:10px;border-color:#e0e4d7}.guided-steps small,.guided-steps em{display:none}.guided-steps b{font-size:12px}.guided-main{padding:20px}.guided-preparation{gap:12px}.guided-setup-panel h3{font-size:21px}.onboarding-public-guide{max-width:155px;line-height:1.5}.guided-progress{margin-bottom:14px}.guided-setup-panel #pms-assistant-actions button{flex:1 1 180px}.guided-setup-panel #pms-assistant-actions .primary{flex-basis:100%}}
@media(max-width:480px){#pms-assistant-panel.guided-setup-panel{inset:0;width:100vw;max-height:100dvh;border-radius:0;padding:16px}.guided-setup-panel h2{font-size:20px}.guided-main{padding:16px}.guided-preparation,.guided-columns{grid-template-columns:1fr}.guided-preparation>div{padding:16px}.guided-welcome h3{font-size:25px}.guided-progress{gap:10px}.guided-progress progress{width:76px}.guided-progress span{font-size:11px}.guided-steps{margin-right:-8px}.guided-setup-panel .guided-steps button{min-width:132px}.guided-review li{flex-wrap:wrap}.guided-review button{margin-left:30px}.guided-review li>div{flex-basis:calc(100% - 40px)}.guided-fact{gap:6px 12px}.guided-setup-panel #pms-assistant-actions button{flex-basis:100%}}
.guided-setup-panel button.guided-handbook{border:0;background:transparent;padding:8px 0;text-align:left;color:#516f4e;font-size:13px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:980px){.pms-workspace.pms-header-compact #pms-assistant-launch .pms-header-label::after{content:"ガイド";font-size:11px}}
@media(max-width:980px){.pms-workspace.pms-header-compact #pms-assistant-launch[data-guide-resume=true] .pms-header-label::after{content:"導入に戻る"}}

/* Keep the way back visible while reading long setup steps. */
.guided-setup-panel .pms-assistant-heading{position:sticky;top:-24px;z-index:5;padding:12px 0;background:#fbfaf6;box-shadow:0 7px 12px #fbfaf6;gap:12px}
.guided-setup-panel .pms-assistant-heading>div{min-width:0;flex:1}
.guided-busy-notice{position:absolute;bottom:-5px;left:0;right:0;display:block;height:3px;background:#60866d;border-radius:4px;font-size:0;animation:guided-loading 1.4s ease-in-out infinite}
@keyframes guided-loading{50%{opacity:.35}}
.guided-setup-panel .guided-steps{top:96px}
.guided-setup-panel .guided-progress{flex-wrap:wrap;gap:10px 16px}
.guided-setup-panel .guided-progress>div{flex:1;min-width:180px}
.guided-setup-panel .guided-progress progress{width:100px}
.guided-setup-panel button.guided-recommended{min-height:40px;font-size:12px;padding:8px 12px}
.guided-setup-panel .guided-message{scroll-margin-top:120px}
.guided-setup-panel .guided-main :is(input,select,button){scroll-margin-top:120px}
.pms-workspace.pms-header-compact #pms-assistant-launch[data-guide-resume=true]{background:#f1ead9;border:1px solid #b99a63;color:#62522f}
@media(max-width:800px){.guided-setup-panel .pms-assistant-heading{top:-18px}.guided-setup-panel .guided-steps{position:static}.guided-setup-panel .guided-progress>div{min-width:140px}}
@media(max-width:480px){.guided-setup-panel .pms-assistant-heading{top:-16px}.guided-setup-panel .guided-progress progress{width:72px}.guided-setup-panel button.guided-recommended{flex-basis:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){.guided-busy-notice{animation:none}}
.guided-mail-flow{list-style:none;margin:18px 0;padding:0;display:grid;gap:14px}.guided-mail-flow>li{padding:18px;border:1px solid #dde1d6;border-radius:10px;background:#fff}.guided-mail-flow h4{margin-top:0}.guided-mail-flow li>div{display:flex;flex-wrap:wrap;gap:8px}.guided-mail-flow button{max-width:100%}.guided-mail-summary{padding:14px 16px;background:#f1f5ed;border-radius:10px;margin:14px 0}.guided-mail-summary p{font-size:12px}.guided-mail-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.guided-mail-counts>div{min-width:0}.guided-mail-counts dt{font-size:11px;color:#63765f}.guided-mail-counts dd{font-size:20px;font-weight:700;margin:2px 0}.guided-setup-panel .guided-mail-summary[role=status]{color:#263b34}@media(max-width:480px){.guided-mail-flow>li{padding:14px}.guided-mail-flow li>div>button{width:100%}.guided-mail-counts{grid-template-columns:1fr;gap:6px}.guided-mail-counts>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.guided-mail-counts dd{font-size:16px}}
