/* Scoped to delivery progress/result and the reusable bug report dialog. */
.delivery-publish-progress{width:100%;height:28px;margin:20px 0 10px!important;border-radius:999px;background:#e8f1ec;box-shadow:inset 0 2px 5px #1f584010;overflow:hidden;border:1px solid #d8e8df}
.delivery-publish-progress .progress-bar{background-color:#328366;background-image:linear-gradient(45deg,#ffffff20 25%,transparent 25%,transparent 50%,#ffffff20 50%,#ffffff20 75%,transparent 75%,transparent);background-size:28px 28px;color:#fff;font:700 12px/28px 'Meiryo','メイリオ',sans-serif;min-width:42px;transition:width .2s ease}
.delivery-publish-action>button{width:100%!important;min-height:48px;height:auto!important;display:inline-flex;align-items:center;justify-content:center;padding:12px 20px!important;white-space:normal}
body #video-preview.delivery-result-modal .modal-dialog{max-width:650px;margin:24px auto}
body #video-preview.delivery-result-modal .modal-content{position:relative;padding:0!important;overflow:visible}
body #video-preview.delivery-result-modal .modal-body{padding:52px 0 0!important}
body #video-preview.delivery-result-modal .btn-close{top:0!important;right:0!important;left:auto!important;transform:none!important}
.delivery-result-modal .modal-video{display:flex;flex-direction:column;gap:16px}
.delivery-result-modal .plyr,.delivery-result-modal video{border-radius:20px;overflow:hidden;background:#10231b;width:100%;max-height:340px!important}
body #video-preview .delivery-result-card{padding:24px!important;border-radius:24px!important;background:linear-gradient(145deg,#fff,#f5faf7)!important;box-shadow:0 18px 60px #112b262e;border:1px solid #e1ece5!important;gap:18px;text-align:left;font-family:'Meiryo','メイリオ',sans-serif}
.delivery-result-heading{display:flex;align-items:center;gap:12px}
.delivery-result-check{display:grid;place-items:center;flex:0 0 44px;min-height:44px;border-radius:15px;background:#ddf2e7;color:#25765b;font-size:23px;font-weight:700}
.delivery-result-eyebrow{display:block;color:#769586;font-size:10px;letter-spacing:.16em;margin-bottom:5px}
.delivery-result-heading h2{margin:0!important;font-size:20px!important;line-height:1.55;color:#254d3d;font-weight:700;overflow-wrap:anywhere}
.delivery-project-field{min-width:0}
.delivery-field-label{display:flex;align-items:center;gap:6px;color:#4f7161;font-size:12px;font-weight:700;margin-bottom:7px}
.delivery-field-label i{font-size:20px}
.delivery-project-link-row{display:flex;align-items:stretch;gap:7px;background:white;border:1px solid #cfe2d6;border-radius:14px;padding:7px;min-width:0;box-shadow:0 3px 12px #264f3805}
.delivery-project-link{flex:1;min-width:0;display:flex;align-items:center;color:#257359!important;line-height:1.6;font-size:12px;padding:4px 7px;text-decoration:none;overflow-wrap:anywhere;word-break:break-all}
.delivery-copy-button{flex:0 0 82px;border:0;border-radius:10px;background:#2a7d60;color:white;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px;font-weight:700;white-space:normal;font-size:12px;cursor:pointer}
.delivery-copy-button:disabled{opacity:.65;cursor:wait}
.delivery-copy-button.is-copied{background:#e1f4e7;color:#257258}
.delivery-copy-status{font-size:11px;color:#9f4040;line-height:1.65;margin:5px 0 0}.delivery-project-field:has(.is-copied) .delivery-copy-status{color:#388365}
.delivery-metadata{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.delivery-meta-item{display:flex;align-items:center;gap:10px;min-width:0;padding:13px;background:#edf5f0;border:1px solid #e1ece5;border-radius:14px}
.delivery-meta-item>i{font-size:20px;color:#61907a}
.delivery-meta-item div{min-width:0}
.delivery-meta-item span{display:block;font-size:10px;color:#779181;margin-bottom:4px}
.delivery-meta-item strong{display:block;font-size:12px;line-height:1.6;color:#2d5340;overflow-wrap:anywhere}
body .delivery-report-link{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:1px dashed #c4d8cb;background:transparent;border-radius:12px;padding:10px;color:#6b8374;font-size:11px;line-height:1.7;white-space:normal;cursor:pointer}
.delivery-result-actions>button{display:inline-flex!important;align-items:center;justify-content:center;min-height:42px;height:auto!important;white-space:normal;line-height:1.6;border-radius:12px!important}
#contactReportModal .modal-dialog{max-width:560px;margin:24px auto}
#contactReportModal .modal-content{max-width:none!important;background:#f8fcfa!important;border-radius:24px!important;box-shadow:0 28px 90px #102c3030;border:1px solid #deebe2;overflow:hidden}
#contactReportModal .modal-header{padding:23px 60px 20px 23px!important;display:block!important;border-bottom:1px solid #e2ece6;background:linear-gradient(135deg,#ecf7f0,#fff);position:relative}
#contactReportModal .modal-header h2{font-size:21px!important;font-weight:700;line-height:1.6;margin:0;color:#28533f;overflow-wrap:anywhere}
/* Keep shared modal-header close-button spacing out of the decorative badge. */
#contactReportModal .report-heading-icon{box-sizing:border-box;display:inline-grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;margin-bottom:9px;color:#2c7a5b;background:#dceddf;border-radius:12px;font-size:18px;line-height:1;text-align:center}
#contactReportModal .report-intro{font-size:12px;color:#718877;line-height:1.9;margin:6px 0 0}
#contactReportModal .modal-body{padding:0!important;display:block!important}
#contactReportModal .report-frame{display:block;width:100%;height:min(630px,calc(100dvh - 190px));min-height:260px;border:0;background:#f8fcfa}
.report-form-page{margin:0;background:#f8fcfa;color:#28513d;font:13px/1.75 'Meiryo','メイリオ',sans-serif}
.report-form-shell{padding:20px 23px 24px}
.report-form-shell label{display:block;font-weight:700;font-size:12px;margin:0 0 6px;color:#547461}
.report-form-shell .report-field{margin-bottom:16px}
.report-form-shell input,.report-form-shell textarea{box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid #d0e2d7;border-radius:12px;background:#fff;padding:12px 13px;font:inherit;color:#234b38;min-height:44px}
.report-form-shell input:focus,.report-form-shell textarea:focus{outline:3px solid #cbe5d4;border-color:#70a589}
.report-form-shell textarea{min-height:130px;resize:vertical;line-height:1.9}
.report-form-shell input[type=file]{border:1px dashed #b9d3c4;background:#eff7f2;padding:13px 10px;white-space:normal}
.report-form-shell input[type=file]::file-selector-button{border:0;border-radius:8px;background:#deeee4;color:#386650;padding:9px 10px;white-space:normal;margin-right:7px;font:inherit;cursor:pointer}
.report-hint{font-size:11px;color:#809487;line-height:1.8;margin:6px 0 0}
.report-submit{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;min-height:48px;border:0;border-radius:13px;color:#fff;background:linear-gradient(110deg,#236e53,#479777);font:700 14px/1.7 'Meiryo','メイリオ',sans-serif;padding:12px 16px;white-space:normal;cursor:pointer;box-shadow:0 7px 18px #28765624;animation:report-button-glow 3s ease-in-out infinite}
.report-submit::after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 45%,#ffffff25 50%,transparent 55%);background-size:240% 100%;background-position:180% 0;animation:report-button-shine 5s ease-in-out infinite;pointer-events:none}
.report-error,.report-success{padding:18px;border-radius:15px;border:1px solid #d1e5d7;background:#eaf5ee;line-height:1.9;margin:0 0 17px}
.report-error{background:#fff1f0;border-color:#edceca;color:#a0544e}
.report-success h1{font-size:21px;line-height:1.6;margin:0 0 7px;color:#2f7658}
.report-success p{margin:0}
.report-form-shell a{color:#347f60}
.delivery-dialog-confetti{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:1000002;contain:strict}
.delivery-dialog-confetti i{position:absolute;top:64%;width:9px;height:14px;background:var(--delivery-color);opacity:0;animation:delivery-confetti var(--delivery-duration) var(--delivery-delay) cubic-bezier(.22,.61,.36,1) both}
.delivery-dialog-confetti .from-left{left:-12px}.delivery-dialog-confetti .from-right{right:-12px}
@keyframes delivery-confetti{0%{opacity:0;transform:translate(0,0) rotate(0)}7%{opacity:1}48%{opacity:1;transform:translate(var(--delivery-apex-x),var(--delivery-rise)) rotate(230deg)}100%{opacity:0;transform:translate(var(--delivery-x),65vh) rotate(var(--delivery-spin))}}
@keyframes report-button-glow{0%,100%{box-shadow:0 7px 18px #28765624}50%{box-shadow:0 8px 24px #28765645}}
@keyframes report-button-shine{0%,60%{background-position:180% 0}95%,100%{background-position:-100% 0}}
@media(max-width:600px){body #video-preview.delivery-result-modal .modal-dialog,#contactReportModal .modal-dialog{margin:12px;max-width:calc(100% - 24px)}body #video-preview .delivery-result-card{padding:18px!important;gap:14px}.delivery-result-heading h2{font-size:17px!important}.delivery-metadata{gap:7px}.delivery-meta-item{padding:10px;gap:7px}.delivery-meta-item strong{font-size:11px}.delivery-copy-button{flex-basis:72px;font-size:11px}.delivery-project-link{font-size:11px}#contactReportModal .modal-header{padding:18px 60px 16px 18px!important}.report-form-shell{padding:18px}.delivery-result-modal .plyr,.delivery-result-modal video{max-height:270px!important}.report-form-shell input[type=file]{font-size:11px}}
@media(prefers-reduced-motion:reduce){.report-submit,.report-submit::after,.delivery-dialog-confetti i{animation:none}.delivery-dialog-confetti{display:none}.delivery-publish-progress .progress-bar{transition:none}}

/* Project history sits beside upload; keep both labels contained on phones. */
.delivery-upload-actions{display:flex;align-items:stretch;gap:10px;min-width:0}
body.index-page #tab4 #react-root .delivery-upload-actions .delivery-history-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;min-width:0;min-height:44px;height:auto!important;margin:0!important;padding:10px 15px!important;border:1px solid #d99a55!important;border-radius:13px!important;background:linear-gradient(120deg,#f2a34f,#df853b)!important;color:#fff!important;font:700 12px/1.7 Meiryo,'メイリオ',sans-serif;text-align:center;white-space:normal;box-shadow:0 5px 16px #bd713528;animation:delivery-history-pulse 2.6s ease-in-out infinite}
.delivery-upload-actions>button{align-self:stretch;min-width:0;height:auto!important;white-space:normal!important;text-align:center}
@keyframes delivery-history-pulse{0%,100%{filter:brightness(1);box-shadow:0 5px 16px #bd713528}50%{filter:brightness(1.1);box-shadow:0 0 0 4px #efac6b25,0 7px 22px #bd713545}}
@media(max-width:500px){.delivery-upload-actions{gap:7px}.delivery-upload-actions>button{flex:1;padding-left:8px!important;padding-right:8px!important;font-size:11px!important}body.index-page #tab4 #react-root .delivery-upload-actions .delivery-history-button{font-size:10px;gap:5px;padding:9px 7px!important}}
@media(prefers-reduced-motion:reduce){body.index-page #tab4 #react-root .delivery-upload-actions .delivery-history-button{animation:none}}

body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions .delivery-history-button::before{content:none!important}
body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions>.btn{flex-wrap:nowrap!important;gap:7px!important}
body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions>.btn>i,body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions>.btn::before{flex-shrink:0}
body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions .delivery-history-button>span{min-width:0;overflow-wrap:anywhere}
body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions .delivery-history-button{font-size:12px!important}
@media(max-width:500px){body.index-page.home-top-page #tab4 #react-root .delivery-upload-actions .delivery-history-button{font-size:10px!important;gap:5px!important}}
