.pap .poulpe-dialogue{display:flex;flex-direction:column;overflow:hidden;max-height:min(84dvh,800px);width:min(430px,calc(100vw - 40px));padding:12px}
.pap .poulpe-scroll{overflow:auto;min-height:70px;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 2px 7px}
.pap .poulpe-dialogue-header{grid-template-columns:48px minmax(0,1fr) 44px;flex-shrink:0}
.pap .poulpe-dialogue-header h2{font-size:24px}.pap .poulpe-close{width:44px;height:44px}
.pap .poulpe-modes{display:flex;gap:5px;padding:2px 0 10px}.pap .poulpe-modes[hidden]{display:none}
.pap .poulpe-modes button{flex:1;min-height:40px;border:1px solid #b9d4cc;background:#fff;border-radius:10px;color:#164e56;font-weight:700}
.pap .poulpe-modes button[aria-pressed=true]{background:#164e56;color:white;border-color:#164e56}
.pap .poulpe-memory-actions,.pap .poulpe-choices{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.pap .poulpe-memory-actions button,.pap .poulpe-choices button{min-height:40px;padding:7px 10px;border:1px solid #b9d4cc;background:#fff;border-radius:8px;color:#164e56;font-size:12px}
.pap .poulpe-save-note{font-size:11px;line-height:1.4;color:#58706b;margin:10px 0 0}.pap .poulpe-debrief textarea{min-height:90px}
.pap .poulpe-question-form,.pap .poulpe-questions,.pap .poulpe-tour,.pap .poulpe-modes{flex-shrink:0}
.pap.poulpe-talking .poulpe-trigger{display:none}.pap .poulpe-question-form button{min-height:44px}
.pap.poulpe-service-mode .poulpe-voyage{display:none}.pap.poulpe-service-mode [data-pap-mascot]{animation:none!important}
.release-hero{background:#e3eee8;border:1px solid #bdd3c5;border-radius:22px;padding:28px;display:grid;grid-template-columns:1fr 180px;gap:24px;margin:20px 0 28px;align-items:center}
.release-hero h2{font-family:Georgia,serif;font-size:36px;line-height:1.1;margin:8px 0 14px;letter-spacing:-.03em}.release-hero p{max-width:62ch}
.release-hero img{width:180px;height:auto}.release-tag{display:inline-block;padding:6px 10px;background:#fff9eb;border-radius:8px;font-size:12px;font-weight:700;color:#355a50}
.release-path{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.release-path a{padding:9px 12px;background:white;border:1px solid #c9dace;border-radius:9px;font-size:13px;font-weight:600}
.notification-samples{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:20px 0}.notification-sample{background:#f2f5f1;border:1px solid #d8e2d8;border-radius:16px;padding:15px;display:flex;align-items:center;gap:12px}.notification-sample img{width:56px;height:56px;object-fit:contain}.notification-sample b{font-size:13px;display:block}.notification-sample p{font-size:12px;line-height:1.4;margin:5px 0}
.draft-status{font-size:11px;color:#466658;margin:7px 0}.draft-status.warning{color:#a14324}.release-note{border-left:3px solid #8ba795;padding:4px 15px;font-size:13px}
.mission-thread{margin-top:14px;padding-top:12px;border-top:1px solid #dae3da}.mission-thread p{font-size:13px}.mission-thread textarea{min-height:70px}.day-task{flex-wrap:wrap}.day-task .mission-thread{flex-basis:100%}
.pap .poulpe-section-rail{position:fixed;right:10px;top:180px;z-index:35;display:grid;gap:4px;max-width:150px;background:#fffaf0ef;border:1px solid #c9dace;border-radius:12px;padding:7px;max-height:55vh;overflow:auto}
.pap .poulpe-section-rail button{text-align:left;font-size:11px;line-height:1.2;min-height:34px;border:0;border-radius:6px;padding:6px;background:transparent;color:#355a50}.pap .poulpe-section-rail button[aria-current=true]{background:#deebe4;font-weight:700}
@media(min-width:1400px){.pap:has(.poulpe-section-rail) #main{padding-right:175px}}
@media(max-width:1399px){.pap .poulpe-section-rail{display:none}}
@media(max-width:800px){.release-hero{grid-template-columns:1fr;padding:20px}.release-hero img{display:none}.release-hero h2{font-size:29px}.pap #poulpe-dock{right:12px;left:12px;max-width:none;bottom:calc(12px + env(safe-area-inset-bottom))}.pap .poulpe-dialogue{width:100%;max-height:calc(100dvh - 110px - env(safe-area-inset-bottom));border-radius:18px}.pap:has(.pap-bottom-nav) #poulpe-dock{bottom:calc(67px + env(safe-area-inset-bottom))}.pap .poulpe-questions button{min-height:38px}.pap .poulpe-dialogue-header{margin-bottom:5px}.pap .poulpe-dialogue-header p{font-size:9px}.pap .poulpe-tour{font-size:11px;min-height:34px}.pap .poulpe-question-form input{font-size:16px}.pap .poulpe-questions{margin:7px 0}.notification-samples{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.pap .poulpe-voyage{display:none!important}.pap *{scroll-behavior:auto!important}}
@media print{.release-hero,.poulpe-section-rail,.draft-status{display:none!important}}
#modal:has(.client-preview-dialog){width:min(940px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:auto;padding:clamp(16px,3vw,32px)}
.client-preview-dialog .preview-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.client-preview-dialog .preview-dialog-head button{min-width:44px;min-height:44px;font-size:22px;line-height:1;padding:4px 12px;flex:none}
.client-preview-dialog .preview-paper{background:#fff;padding:clamp(16px,3vw,36px);border:1px solid var(--line);border-radius:12px;margin-top:18px;overflow-wrap:anywhere}
.client-preview-dialog .preview-paper h3{font-size:18px;margin:26px 0 12px}
.client-preview-dialog .preview-paper .table-wrap{max-width:100%;overflow-x:auto}
.client-preview-dialog .actions{position:sticky;bottom:0;background:var(--white);padding-top:12px}
