.ai-project-analysis-body .project-analysis-page{height:calc(100vh - 88px);margin-top:88px;padding:28px 20px;background:url('../images/pages/ai-guide/project-analysis/bg-project-analysis.webp') center/cover fixed no-repeat;overflow:hidden}.project-analysis-shell{background:rgba(222,236,246,.66)}.project-analysis-scroll{height:100%;overflow-y:auto;overflow-x:hidden;padding-right:8px;scrollbar-width:thin;scrollbar-color:#183d79 transparent}.project-analysis-scroll::-webkit-scrollbar{width:6px}.project-analysis-scroll::-webkit-scrollbar-thumb{background:#183d79;border-radius:999px}.project-view{display:none}.project-view.is-active{display:block}.project-header{margin:0 0 20px}.project-header h1{margin:0 0 18px;font-size:25px;line-height:1.2}.project-header p{margin:0;font-size:17px;line-height:1.55}.project-panel{margin:0 0 18px;padding:22px;border-radius:18px;background:rgba(245,247,248,.78);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}.project-panel h2,.project-panel h3{margin:0 0 12px}.project-panel h2{font-size:18px}.project-panel h3{font-size:18px}.project-upload-section>h2{text-align:center}.project-notice{margin:14px 0;padding:14px 16px;border-radius:14px;background:linear-gradient(90deg,rgba(255,255,255,.7),rgba(118,153,255,.55));font-size:17px;line-height:1.55}.project-dropzone{min-height:275px;border-radius:18px;background:rgba(255,255,255,.7);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer}.project-dropzone.is-dragover{outline:2px solid #183d79}.project-dropzone input{display:none}.project-upload-icon{font-size:52px;line-height:1;color:#183d79}.project-dropzone strong{margin:10px 0 12px;color:#183d79;font-size:17px}.project-dropzone span{font-size:17px;line-height:1.55}.project-dropzone small{margin-top:34px;color:#7b7f85;font-size:17px;line-height:1.6}.project-upload-extra{margin-top:18px}.project-field-label,.project-field>span{display:block;margin:14px 0 8px;font-size:17px}.project-file-list{display:grid;gap:8px}.project-file{display:grid;grid-template-columns:34px 1fr 30px;gap:12px;align-items:center;padding:14px;border-radius:14px;background:#fff}.project-file img{width:25px}.project-file b{font-size:17px;color:#183d79}.project-file small{display:block;color:#666}.project-file button{border:0;background:none;font-size:22px;cursor:pointer}.project-field textarea{width:100%;min-height:92px;padding:15px;border:0;border-radius:14px;resize:vertical;font:inherit}.project-check{display:grid;grid-template-columns:22px 1fr;gap:3px 10px;align-items:center;margin:14px 0;padding:14px;border-radius:14px;background:#fff;cursor:pointer}.project-check input{display:none}.project-check>span{grid-row:1/3;width:18px;height:18px;border:1px solid #9aa3ad;border-radius:4px}.project-check input:checked+span{background:#183d79;box-shadow:inset 0 0 0 4px #fff}.project-check b{font-size:17px;color:#183d79}.project-check small{font-size:17px}.project-primary,.project-secondary{border:0;border-radius:999px;cursor:pointer;font:inherit}.project-primary{display:flex;align-items:center;justify-content:center;gap:18px;min-width:280px;height:54px;margin:14px auto 0;background:#183d79;color:#fff;font-weight:700}.project-secondary{display:block;min-width:210px;height:44px;margin:18px auto 0;background:#fff}.matrix-table{display:grid;grid-template-columns:45px 1fr 90px 90px;font-size:17px}.matrix-table>*{padding:8px 6px;border-bottom:1px solid rgba(40,45,50,.22)}.project-philosophy p{font-size:17px}.grade-pill{padding:10px 16px;margin:8px 0;border-radius:999px;background:#fff;font-size:17px}.project-disclaimer{font-size:17px;line-height:1.55}.project-loading-card{min-height:600px;text-align:center}.project-loader{height:70px;display:flex;align-items:center;justify-content:center;gap:6px}.project-loader i{width:9px;border-radius:999px;background:#183d79;animation:projectWave 1s ease-in-out infinite}.project-loader i:nth-child(1){height:22px;animation-delay:-.3s}.project-loader i:nth-child(2){height:34px;animation-delay:-.15s}.project-loader i:nth-child(3){height:46px}.project-loader i:nth-child(4){height:26px;animation-delay:.15s}@keyframes projectWave{50%{transform:scaleY(1.35);opacity:.55}}.loading-major{width:min(420px,100%);margin:28px auto 0;display:grid;gap:10px}.loading-major span,.loading-live strong{padding:13px;border-radius:999px;background:rgba(255,255,255,.55);font-size:17px}.loading-major span.is-current{background:#fff}.loading-major span.is-done{opacity:.45;text-decoration:line-through}.loading-live{margin:10px auto 0;width:min(470px,100%)}.loading-live p{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:999px;background:#fff;font-size:17px}.loading-live img{width:18px}.loading-detail{text-align:left;margin:24px auto;width:min(520px,100%)}.loading-progress-head{display:flex;justify-content:space-between}.loading-progress{height:4px;background:#fff;margin:12px 0}.loading-progress i{display:block;width:36%;height:100%;background:#183d79}.loading-checklist{list-style:none;padding:0;display:grid;gap:7px;font-size:17px}.loading-checklist li:before{content:'○';margin-right:8px}.loading-checklist li.done:before{content:'✓';color:#183d79}.loading-checklist li.active{font-weight:700}.loading-results{text-align:left;margin-top:20px}.project-analysis-category{padding:16px;margin-top:10px;border-radius:16px;background:#fff}.project-analysis-category h3{display:flex;gap:10px;align-items:center}.project-analysis-category h3 span{font-size:20px}.project-analysis-category h3 em{margin-left:auto}.tone-blue,.tone-red{padding:13px 15px;margin-top:10px;border-radius:12px;font-size:17px;line-height:1.5}.tone-blue{background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(103,138,255,.55))}.tone-red{background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(255,133,174,.55))}.loading-cancel{margin-top:18px}.result-hero{text-align:left}.result-tags{display:flex;gap:8px;flex-wrap:wrap}.result-tags span,.badge{padding:4px 9px;border-radius:999px;background:#eee;font-size:17px;font-style:normal}.critical,.critical-label{background:#183d79!important;color:#fff}.result-grade{text-align:center;margin:16px 0}.result-grade strong{display:grid;place-items:center;width:94px;height:94px;margin:auto;border:3px solid #183d79;border-radius:50%;font-size:42px;color:#183d79}.result-grade span{display:block;margin-top:10px;font-weight:700}.result-category-list article,.metric-row{display:grid;grid-template-columns:28px 1fr minmax(150px,.8fr) auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid rgba(0,0,0,.08)}.result-category-list i,.metric-row span{height:4px;background:#fff}.result-category-list i:before,.metric-row span i{content:'';display:block;width:var(--score);height:100%;background:#183d79}.badge-good{background:#dff7e7;color:#2c8250}.badge-mid{background:#ffe3ec;color:#a04a68}.result-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.result-stat-grid article{padding:15px;border-radius:14px;background:#fff}.result-stat-grid small,.result-stat-grid span{display:block;font-size:17px}.result-stat-grid strong{display:block;margin:7px 0;font-size:17px}.risk-list{display:grid;gap:9px}.risk-list article{display:flex;justify-content:space-between;gap:12px;padding:14px;border-radius:14px;background:#fff}.risk-list em{font-size:17px;color:#a04a68}.risk-list .neutral{color:#54606c}.overall-risk{padding:18px;margin:0 0 18px;border-radius:16px;background:#183d79;color:#fff}.final-opinion{background:rgba(210,231,255,.9)}.final-opinion ol{margin:0;padding-left:22px;line-height:1.8;font-size:17px}.project-result-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.project-result-actions button,.project-result-actions a{min-height:60px;border:0;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;color:#222;font:inherit;font-weight:700;cursor:pointer}.project-result-actions .primary{background:#183d79;color:#fff}
.project-matrix-modal{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.42);display:none;align-items:flex-start;justify-content:center;padding:30px 18px;overflow:auto}.project-matrix-modal.is-open{display:flex}.project-modal-card{width:min(760px,100%);max-height:calc(100vh - 60px);overflow:auto;background:#fff;border-radius:18px;padding:22px;position:relative}.project-modal-close{position:sticky;float:right;top:0;width:34px;height:34px;border:0;font-size:28px;cursor:pointer}.project-modal-card h2{margin:0 0 20px}.modal-summary{display:grid;grid-template-columns:45px 1fr 70px;gap:0;font-size:17px}.modal-summary>*{padding:8px;border-bottom:1px solid #bbb}.modal-grade{display:grid;gap:8px;margin:16px 0}.modal-grade div{padding:10px 14px;border-radius:999px;background:#eaf1fb;font-size:17px}.matrix-accordion{margin-top:18px}.matrix-accordion h3{font-size:17px}.matrix-group{border-bottom:1px solid #ddd}.matrix-group>button{width:100%;padding:14px 4px;border:0;background:none;display:flex;justify-content:space-between;text-align:left;font-weight:700;cursor:pointer}.matrix-group-content{display:none;padding:0 16px 16px}.matrix-group.is-open .matrix-group-content{display:block}.matrix-item{padding:10px 0;border-bottom:1px solid #ddd}.matrix-item b{display:block;margin-bottom:7px}.matrix-item ul{margin:0;padding-left:18px;line-height:1.55;font-size:17px}.matrix-penalty>button{background:linear-gradient(90deg,#fff,#ffb0c9);border-radius:999px;margin:6px 0;padding:12px}
@media(max-width:1100px){.ai-project-analysis-body .project-analysis-page{height:auto;min-height:calc(100vh - 72px);margin-top:72px;padding:18px 14px;background-attachment:scroll}.project-analysis-scroll{height:auto;overflow:visible;padding-right:0}.result-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.project-header h1{font-size:24px}.project-header p br{display:none}.project-panel{padding:16px}.project-dropzone{min-height:230px;padding:20px}.matrix-table{grid-template-columns:32px 1fr 48px 50px}.result-category-list article,.metric-row{grid-template-columns:24px 1fr auto}.result-category-list i,.metric-row span{grid-column:2/4}.result-stat-grid{grid-template-columns:1fr 1fr}.project-result-actions{grid-template-columns:1fr 1fr}.project-primary{min-width:0;width:100%}.project-modal-card{padding:16px}.modal-summary{grid-template-columns:35px 1fr 55px}}
@media print{.gnb,.simulation-nav,.floating-cta,.project-result-actions{display:none!important}.ai-project-analysis-body .project-analysis-page{height:auto;margin:0;padding:0;background:#fff}.project-analysis-shell{display:block;height:auto;padding:0;border:0;background:#fff}.project-analysis-scroll{overflow:visible}.project-view{display:none!important}.project-result.is-active{display:block!important}.project-panel{break-inside:avoid;background:#fff;border:1px solid #ddd}}

/* 2026-08-13 project analysis refinement */
.project-upload-icon{width:58px;height:58px;display:grid;place-items:center;font-size:0}
.project-upload-icon img{display:block;width:58px;height:58px;object-fit:contain}

.project-matrix-modal{overscroll-behavior:contain}
.project-modal-card{border-radius:22px;scrollbar-width:thin;scrollbar-color:#183d79 transparent;overscroll-behavior:contain;background-clip:padding-box}
.project-modal-card::-webkit-scrollbar{width:7px}
.project-modal-card::-webkit-scrollbar-track{background:transparent;margin:12px 0}
.project-modal-card::-webkit-scrollbar-thumb{background:#183d79;border-radius:999px;border:1px solid transparent;background-clip:padding-box}
.matrix-group>button{align-items:center;gap:12px}
.matrix-toggle-arrow{flex:0 0 22px;width:22px;height:22px;background:url('../images/pages/ai-guide/simulation/icon-arrow.webp') center/contain no-repeat;transform:rotate(180deg);transition:transform .25s ease}
.matrix-group.is-open .matrix-toggle-arrow{transform:rotate(0deg)}

/* Loading step 3: the result is progressively revealed while analysis continues. */
.project-loading-card.is-detail-stage{min-height:0;text-align:left;padding:18px 20px}
.loading-detail{margin:0;width:100%}
.loading-progress-head{align-items:center;font-size:17px}
.loading-progress-head span{font-size:17px;color:#4c5661}
.loading-progress-line{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:12px;align-items:center;margin:10px 0 12px}
.loading-progress-line .loading-progress{margin:0;height:5px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.9)}
.loading-progress-line .loading-progress i{border-radius:inherit}
.loading-progress-line>b{text-align:right;color:#183d79;font-size:17px}
.loading-detail-body{display:grid;grid-template-columns:minmax(190px,.45fr) minmax(0,1fr);gap:24px;align-items:start}
.loading-detail-body h3{margin:0 0 8px;font-size:17px;font-weight:500}
.loading-checklist{gap:3px;font-size:17px;line-height:1.45}
.loading-checklist li{color:#6d747b}
.loading-checklist li.done,.loading-checklist li.active{color:#26394e}
.loading-checklist li:before{display:inline-block;width:14px;margin-right:2px;color:#8a929b}
.loading-checklist li.done:before{color:#183d79}
.loading-detail-ghost{min-height:210px;border-radius:14px;background:rgba(255,255,255,.18);filter:blur(.2px);display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:16px}
.loading-detail-ghost i{display:block;border-radius:12px;background:rgba(86,98,111,.10);filter:blur(7px)}

.loading-results{margin-top:14px}
.loading-preview-panel{padding:16px 18px;margin-bottom:14px;border-radius:18px;background:rgba(248,249,250,.80);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.45)}
.loading-preview-head h2,.loading-preview-skeleton h2{margin:0;font-size:18px}
.loading-preview-head p{margin:5px 0 12px;font-size:17px;color:#515b66}
.loading-preview-category{margin-top:9px;border-radius:15px;background:rgba(255,255,255,.82);overflow:hidden}
.loading-preview-toggle{width:100%;min-height:58px;padding:11px 14px;border:0;background:transparent;display:grid;grid-template-columns:28px minmax(150px,1fr) minmax(120px,.7fr) auto 22px;gap:10px;align-items:center;text-align:left;font:inherit;color:inherit;cursor:default}
.loading-preview-index{font-size:17px;font-weight:700}
.loading-preview-toggle b{font-size:17px}
.loading-preview-score{height:4px;border-radius:999px;background:#fff;overflow:hidden}
.loading-preview-score:after{content:"";display:block;width:var(--score,38%);height:100%;border-radius:inherit;background:#183d79}
.loading-preview-arrow{width:22px;height:22px;background:url('../images/pages/ai-guide/simulation/icon-arrow.webp') center/contain no-repeat;transform:rotate(180deg)}
.loading-preview-category.is-open .loading-preview-arrow{transform:rotate(0deg)}
.loading-preview-content{padding:0 14px 15px}
.loading-preview-content>p{margin:0 0 12px;font-size:17px;line-height:1.7}
.loading-preview-tone{padding:10px 13px;margin:8px 0;border-radius:12px;font-size:17px;line-height:1.6}
.loading-preview-items{display:grid;gap:8px;margin-top:12px}
.loading-preview-items article{padding:11px 13px;border-radius:13px;background:rgba(255,255,255,.88)}
.loading-preview-items header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.loading-preview-items header b{font-size:17px}
.loading-preview-items p{margin:0;font-size:17px;line-height:1.55;color:#39434e}
.badge-neutral{background:#d9d9d9;color:#626262}
.loading-preview-mini{height:3px;border-radius:999px;background:#fff;overflow:hidden;margin:6px 0}
.loading-preview-mini i{display:block;width:var(--score);height:100%;background:#183d79}
.loading-preview-skeleton{opacity:.55}
.loading-preview-skeleton>div{margin-top:12px;padding:14px;border-radius:13px;background:rgba(255,255,255,.8);display:grid;grid-template-columns:28px 1fr 70px;gap:12px;align-items:center}
.loading-preview-skeleton i{height:16px;border-radius:4px;background:#b9bdc2}
.loading-preview-skeleton i:nth-child(2){height:8px}
.loading-preview-skeleton i:nth-child(3){height:16px}

@media(max-width:900px){
  .project-matrix-modal{padding-top:calc(72px + 16px);padding-bottom:16px}
  .project-modal-card{max-height:calc(100dvh - 72px - 32px)}
  .loading-preview-toggle{grid-template-columns:26px minmax(0,1fr) auto 22px}
  .loading-preview-score{grid-column:2/5;grid-row:2}
}
@media(max-width:640px){
  .project-upload-icon,.project-upload-icon img{width:52px;height:52px}
  .project-matrix-modal{padding-left:12px;padding-right:12px}
  .project-modal-card{padding:16px;border-radius:20px}
  .loading-preview-panel{padding:13px}
  .loading-preview-toggle{padding:10px;gap:7px}
  .loading-preview-toggle b{font-size:17px}
  .loading-preview-content{padding:0 10px 12px}
  .loading-preview-items article{padding:10px}
}
.project-loading-card.is-detail-stage>[data-loading-title]{display:none}

/* 2026-08-13 v3 — loading/result fidelity pass */
/* Loading 2: fifth live category and sixth tip row continue directly under the four setup rows. */
.loading-major{width:min(420px,100%);margin-bottom:0}
.loading-live{width:min(420px,100%);margin:10px auto 0;display:grid;gap:10px}
.loading-live strong,.loading-live p{box-sizing:border-box;width:100%;min-height:42px;margin:0;padding:12px 16px;border-radius:999px}
.loading-live strong{display:flex;align-items:center;justify-content:center;background:#fff;font-weight:500}
.loading-live p{display:flex;align-items:center;justify-content:center;gap:8px;background:rgba(255,255,255,.78);font-size:17px}

/* Loading 3 is no longer a loader card. It becomes the live analysis dashboard shown in the design. */
.project-loading-card.is-detail-stage{padding:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;text-align:left}
.project-loading-card.is-detail-stage .loading-detail{box-sizing:border-box;margin:0 0 16px;padding:18px 20px;border-radius:18px;background:rgba(245,247,248,.78);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.project-loading-card.is-detail-stage .loading-results{margin:0}
.loading-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.loading-progress-head strong{font-size:17px;font-weight:600}
.loading-progress-head span{margin-top:1px;font-size:17px;color:#3e4853;white-space:nowrap}
.loading-progress-line{grid-template-columns:minmax(0,1fr) 42px;gap:14px;margin:10px 0 12px}
.loading-progress-line .loading-progress{height:4px;background:rgba(255,255,255,.95)}
.loading-progress-line .loading-progress i{width:36%;transition:width .25s linear}
.loading-progress-line>b{font-size:17px;font-weight:700;color:#183d79}
.loading-detail-body{grid-template-columns:220px minmax(0,1fr);gap:28px}
.loading-detail-body h3{font-size:17px;color:#4c5661}
.loading-checklist{gap:2px;font-size:17px}
.loading-detail-ghost{min-height:190px;border-radius:12px;background:rgba(255,255,255,.12)}
.loading-preview-panel{margin:0 0 16px;padding:17px 18px;border-radius:18px;background:rgba(245,247,248,.80)}
.loading-preview-category{border-radius:13px;background:rgba(255,255,255,.84)}
.loading-preview-toggle{min-height:62px;grid-template-columns:28px minmax(170px,1fr) minmax(160px,.72fr) auto 22px}
.loading-preview-score{height:4px}
.loading-preview-content{padding:0 14px 16px}
.loading-preview-content>p{font-size:17px;line-height:1.72}
.loading-preview-items article{border-radius:12px}
.loading-preview-items header .badge{flex:0 0 auto}
.loading-preview-skeleton{min-height:105px}
.loading-cancel{margin-top:8px}

/* Result — match the two design sheets: compact pills, inline score bars and accordion rows. */
.project-result .project-panel{padding:18px;border-radius:16px;background:rgba(245,247,248,.82)}
.project-result .project-header{margin-bottom:16px}
.project-result .project-header p{font-size:17px}
.result-hero small{display:block;margin-bottom:4px;font-size:17px;color:#45515e}
.result-hero h2{margin:0 0 5px;font-size:17px;font-weight:500}
.result-tags{gap:5px}
.result-tags span,.project-result .badge{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:max-content;min-height:20px;padding:3px 8px;border-radius:999px;font-size:17px;line-height:1;white-space:nowrap}
.result-tags .grade-tag{background:#d9d9d9;color:#454545}
.result-grade{margin:12px 0 14px}
.result-grade strong{position:relative;width:74px;height:74px;border:0;background:conic-gradient(#183d79 0 28%,rgba(255,255,255,.95) 28% 100%);font-size:33px}
.result-grade strong:before{content:"";position:absolute;inset:3px;border-radius:50%;background:rgba(241,246,250,.96)}
.result-grade strong{isolation:isolate}
.result-grade strong::after{content:"D";position:absolute;inset:0;display:grid;place-items:center;z-index:1;color:#183d79}
.result-grade span{margin-top:7px;font-size:17px}
.result-hero>p{margin:0;font-size:17px;line-height:1.65;color:#303943}
.result-section-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}
.result-section-title h2{margin:0;font-size:17px;font-weight:500}
.result-section-title p{margin:4px 0 0;font-size:17px;color:#59636e}
.result-evaluation-panel{padding:15px!important}
.result-accordion{display:grid;gap:10px}
.result-category{overflow:hidden;border-radius:12px;background:rgba(255,255,255,.88)}
.result-category-toggle{width:100%;min-height:60px;padding:10px 13px;border:0;background:transparent;display:grid;grid-template-columns:28px minmax(150px,1fr) minmax(150px,.82fr) auto 22px;gap:10px;align-items:center;text-align:left;color:inherit;font:inherit;cursor:pointer}
.result-category-toggle .num{font-size:17px;font-weight:700}
.result-category-toggle .label{font-size:17px;font-weight:600}
.result-category-toggle .scorebar{height:4px;border-radius:99px;background:#fff;overflow:hidden}
.result-category-toggle .scorebar i{display:block;width:var(--score);height:100%;border-radius:inherit;background:#183d79}
.result-category-toggle .arrow,.penalty-list .arrow,.critical-risk-list .arrow{width:19px;height:19px;background:url('../images/pages/ai-guide/simulation/icon-arrow.webp') center/contain no-repeat;transform:rotate(180deg);transition:transform .22s ease}
.result-category.is-open .result-category-toggle .arrow,.penalty-list article.is-open .arrow,.critical-risk-list article.is-open .arrow{transform:rotate(0)}
.result-category-content{display:none;padding:0 13px 14px;border-top:1px solid rgba(0,0,0,.03)}
.result-category.is-open .result-category-content{display:block}
.result-category-content>p{margin:10px 0;font-size:17px;line-height:1.65}
.result-item-list{display:grid;gap:7px;margin-top:10px}
.result-item-list article{padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.92)}
.result-item-list header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.result-item-list header b{font-size:17px}
.result-item-list p{margin:5px 0 0;font-size:17px;line-height:1.55;color:#404a54}
.mini-bar{display:block;height:3px;margin-top:7px;border-radius:99px;background:#fff;overflow:hidden}
.mini-bar i{display:block;width:var(--score);height:100%;background:#183d79}
.result-type-panel{margin-top:0}

.result-metric-card{padding:15px!important}
.result-metric-card>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.result-metric-card>header h2{margin:0;font-size:17px;font-weight:500}
.metric-line{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:12px;align-items:center;padding:5px 0}
.metric-line b{font-size:17px;font-weight:500}
.metric-track{height:3px;border-radius:99px;background:#fff;overflow:hidden}
.metric-track i{display:block;width:var(--score);height:100%;background:#183d79}

.result-detail-card{font-size:17px;line-height:1.62}
.result-detail-card h2{font-size:17px;font-weight:500}
.result-detail-card p{margin:6px 0}
.result-stat-grid{gap:8px}
.result-stat-grid article{min-height:66px;padding:10px;border-radius:10px;background:rgba(255,255,255,.9)}
.result-stat-grid article.warn{background:linear-gradient(90deg,rgba(255,255,255,.75),rgba(255,151,184,.55))}
.result-stat-grid small{font-size:17px;color:#555f69}
.result-stat-grid strong{margin:4px 0;font-size:17px;font-weight:500}
.result-stat-grid span{font-size:17px;color:#68717a}
.detail-copy{font-size:17px!important;line-height:1.55!important;color:#404a54}
.project-result .tone-blue,.project-result .tone-red{padding:10px 12px;margin-top:7px;border-radius:9px;font-size:17px;line-height:1.55}
.capital-grid{grid-template-columns:repeat(4,1fr)}

.penalty-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.penalty-panel>header h2{margin:0;font-size:17px;font-weight:500}
.penalty-panel>header p{margin:4px 0 0;font-size:17px;color:#59636e}
.penalty-panel h3{margin:14px 0 7px;font-size:17px;font-weight:500}
.penalty-list{display:grid;gap:8px}
.penalty-list article{overflow:hidden;border-radius:10px;background:rgba(255,255,255,.9)}
.penalty-list article>button{width:100%;min-height:52px;padding:10px 12px;border:0;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:10px;align-items:center;text-align:left;font:inherit;color:inherit;cursor:pointer}
.penalty-list article>button b{font-size:17px;font-weight:500}
.penalty-list article>button>span:first-child{display:grid;gap:6px}
.penalty-bar{display:block;width:100%;height:3px;border-radius:99px;background:#fff;overflow:hidden}
.penalty-bar u{display:block;width:var(--score);height:100%;background:#183d79;text-decoration:none}
.penalty-list article>div{display:none;padding:0 12px 11px;font-size:17px;line-height:1.55}
.penalty-list article.is-open>div{display:block}
.penalty-list article>div p{margin:0}

.overall-risk{padding:14px 16px;border-radius:10px;display:flex;flex-direction:column;gap:2px;font-size:17px}
.overall-risk strong{font-size:17px}
.critical-panel h2{font-size:17px;font-weight:500}
.critical-risk-list{display:grid;gap:7px}
.critical-risk-list article{overflow:hidden;border-radius:10px;background:rgba(255,255,255,.92)}
.critical-risk-list article>button{width:100%;min-height:45px;padding:9px 10px;border:0;background:transparent;display:grid;grid-template-columns:auto minmax(0,1fr) auto 18px;gap:8px;align-items:center;text-align:left;font:inherit;cursor:pointer;color:inherit}
.critical-risk-list article>button em{padding:3px 7px;border-radius:999px;background:#183d79;color:#fff;font-size:17px;font-style:normal;font-weight:700}
.critical-risk-list article>button b{font-size:17px;font-weight:500}
.critical-risk-list article>button>span{padding:3px 6px;border-radius:999px;background:#f2f2f2;font-size:17px;white-space:nowrap}
.critical-risk-list article>div{display:none;padding:0 10px 10px;font-size:17px;line-height:1.55}
.critical-risk-list article.is-open>div{display:block}
.final-opinion{background:rgba(210,231,255,.92)!important}
.final-opinion h2{font-size:17px;font-weight:500}
.final-opinion ol{padding-left:20px;font-size:17px;line-height:1.72}
.project-result-actions{gap:9px;margin:14px 0 0}
.project-result-actions button,.project-result-actions a{min-height:54px;border-radius:10px;font-size:17px}

@media(max-width:900px){
  .loading-detail-body{grid-template-columns:1fr}
  .loading-detail-ghost{display:none}
  .result-category-toggle{grid-template-columns:26px minmax(0,1fr) auto 20px}
  .result-category-toggle .scorebar{grid-column:2/5;grid-row:2}
  .metric-line{grid-template-columns:110px minmax(0,1fr) auto}
  .capital-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .project-loading-card.is-detail-stage .loading-detail{padding:15px}
  .loading-progress-head{gap:12px}
  .result-hero h2{font-size:17px}
  .result-category-toggle{padding:9px 10px;gap:7px}
  .result-category-toggle .label{font-size:17px}
  .result-metric-card{padding:13px!important}
  .metric-line{grid-template-columns:90px minmax(0,1fr) auto;gap:8px}
  .result-stat-grid,.capital-grid{grid-template-columns:1fr 1fr}
  .critical-risk-list article>button{grid-template-columns:auto minmax(0,1fr) 18px}
}
.project-loading-card.is-detail-stage .project-loader{display:none!important}

/* 2026-08-13 result-detail refinement */
.project-analysis-content,.project-analysis-content button,.project-analysis-content input,.project-analysis-content textarea,.project-analysis-content a{font-size:17px}
.project-header h1,.project-panel h2,.project-panel h3,.result-section-title h2,.result-metric-card>header h2,.result-detail-card h2,.penalty-panel>header h2,.critical-panel h2,.final-opinion h2{font-size:18px!important}
.project-header p,.result-hero>p,.result-category-content>p,.result-item-list p,.result-detail-card,.detail-copy,.penalty-panel>header p,.penalty-list article>div,.critical-risk-list article>div,.final-opinion ol{font-size:17px!important}
.result-category-toggle{background:rgba(255,255,255,.52)}
.result-category-toggle .num,.result-category-toggle .label,.result-item-list header b,.metric-line b,.result-stat-grid small,.result-stat-grid strong,.result-stat-grid span,.penalty-panel h3,.penalty-list article>button b,.critical-risk-list article>button b{font-size:17px!important}
.result-tags span,.badge,.critical-risk-list article>button em,.critical-risk-list article>button>span{font-size:17px!important}
.result-category-toggle .scorebar,.metric-track,.metric-overall,.penalty-bar{background:rgba(255,255,255,.92)}
.result-category-toggle .scorebar{height:5px}
.metric-track{height:5px}
.result-metric-card>header>div{flex:1;min-width:0;padding-right:18px}
.metric-overall{display:block;width:100%;height:5px;margin-top:10px;border-radius:99px;overflow:hidden}
.metric-overall i{display:block;width:var(--score);height:100%;background:#183d79;border-radius:inherit}
.metric-line{grid-template-columns:190px minmax(0,1fr) auto;padding:8px 0}
.investor-law-list{display:grid;gap:3px;margin:8px 0 12px}
.investor-law-list p{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;margin:0!important;padding:7px 0;border-bottom:1px solid rgba(24,61,121,.12)}
.investor-law-list p:last-child{border-bottom:0}
.investor-law-list b{font-weight:700}.investor-law-list span{min-width:0}
.penalty-list article>button>span:first-child{gap:7px}
.penalty-list article>button>span:first-child small{display:block;font-size:17px;line-height:1.55;font-weight:400;color:#4c5662}
.penalty-bar{height:5px}
.penalty-list article>div{padding:0 12px 14px}
.critical-panel-heading{margin-bottom:12px}
.critical-panel-heading h2{margin:0}.critical-panel-heading p{margin:5px 0 0;font-size:17px;color:#59636e}
.critical-risk-list article>button{min-height:56px;padding:11px 12px;grid-template-columns:auto minmax(0,1fr) auto 20px}
.critical-risk-list article>div{padding:0 12px 14px;border-top:1px solid rgba(24,61,121,.08)}
.critical-risk-list article>div strong{display:block;padding-top:12px;margin-bottom:5px;font-size:17px;color:#183d79}
.critical-risk-list article>div p{margin:0;font-size:17px;line-height:1.6}
.overall-risk{font-size:17px}.overall-risk strong{font-size:18px}
.project-result .tone-blue,.project-result .tone-red{font-size:17px;line-height:1.6}
.project-result-actions button,.project-result-actions a{font-size:17px}
@media(max-width:900px){.metric-line{grid-template-columns:150px minmax(0,1fr) auto}.investor-law-list p{grid-template-columns:125px minmax(0,1fr)}}
@media(max-width:640px){.result-category-toggle .label{font-size:17px!important}.metric-line{grid-template-columns:1fr auto;gap:8px}.metric-track{grid-column:1/3;grid-row:2}.investor-law-list p{grid-template-columns:1fr;gap:3px}.critical-risk-list article>button{grid-template-columns:auto minmax(0,1fr) 20px}.critical-risk-list article>button>span{grid-column:2/3}}


/* 2026-08-13 v5 — loading stage isolation + result subtools */
/* Hidden states must always win over component display rules. This keeps loading 1/2/3 mutually exclusive. */
.project-analysis-page [hidden]{display:none!important}
.project-loading-card>.project-loader[hidden],
.loading-major[hidden],
.loading-live[hidden],
.loading-detail[hidden],
.loading-results[hidden]{display:none!important}

/* Result bottom secondary analyses */
.project-subtool-switches{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:18px 0 14px;
}
.project-subtool-switch{
  min-height:66px;
  padding:14px 18px;
  border:0;
  border-radius:16px;
  font:inherit;
  font-size:18px;
  font-weight:600;
  color:#2c3138;
  cursor:pointer;
  transition:opacity .2s ease,transform .2s ease,box-shadow .2s ease;
}
.project-subtool-switch--risk{
  background:linear-gradient(90deg,rgba(255,255,255,.72),rgba(255,162,190,.62));
}
.project-subtool-switch--gap{
  background:linear-gradient(90deg,rgba(255,255,255,.72),rgba(185,213,255,.72));
}
.project-subtool-switch:hover:not(:disabled){transform:translateY(-1px)}
.project-subtool-switch.is-active{box-shadow:inset 0 0 0 1px rgba(24,61,121,.06)}
.project-subtool-switch:disabled{cursor:not-allowed;opacity:.55;transform:none}

.project-subtool-stage{margin:0 0 14px}
.project-subtool-loading{
  position:relative;
  min-height:430px;
  padding:70px 28px 28px;
  border-radius:18px;
  background:rgba(245,247,248,.84);
  text-align:center;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.project-subtool-loading .project-loader{
  display:flex;
  justify-content:center;
  margin:0 auto 24px;
}
.project-subtool-loading h2{
  margin:0 0 30px;
  font-size:18px!important;
  font-weight:600;
}
.project-subtool-loading-steps{
  width:min(420px,100%);
  margin:0 auto;
  display:grid;
  gap:10px;
}
.project-subtool-loading-steps span{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:#6b7076;
  font-size:17px;
  transition:background .2s ease,color .2s ease,opacity .2s ease;
}
.project-subtool-loading-steps span.is-current{
  background:#fff;
  color:#202833;
  font-weight:600;
}
.project-subtool-loading-steps span.is-done{
  background:rgba(255,255,255,.82);
  color:#3f4852;
}
.project-subtool-loading>p{
  margin:38px 0 0;
  font-size:17px;
  color:#686f77;
}
.project-subtool-cancel{
  display:block;
  margin:20px auto 0;
  min-width:165px;
}

.project-subtool-result{
  padding-top:4px;
}
.project-subtool-heading{
  margin-bottom:14px;
}
.project-subtool-heading h2{
  margin:0;
  font-size:18px!important;
  font-weight:600;
}
.project-subtool-heading p{
  margin:5px 0 0;
  font-size:17px;
  color:#3f4853;
}

.project-subtool-accordion{
  display:grid;
  gap:10px;
}
.project-subtool-accordion>article{
  overflow:hidden;
  border-radius:14px;
  background:rgba(247,248,249,.86);
}
.project-subtool-accordion>article>button{
  width:100%;
  min-height:58px;
  padding:13px 16px;
  border:0;
  background:transparent;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 22px;
  gap:12px;
  align-items:center;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
}
.project-subtool-accordion>article>button>span:first-child,
.project-subtool-accordion>article>button>b{
  min-width:0;
  font-size:17px;
  font-weight:500;
}
.project-subtool-accordion .arrow{
  width:20px;
  height:20px;
  background:url('../images/pages/ai-guide/simulation/icon-arrow.webp') center/contain no-repeat;
  transform:rotate(180deg);
  transition:transform .22s ease;
}
.project-subtool-accordion>article.is-open>button .arrow{transform:rotate(0deg)}
.project-subtool-accordion-body{
  display:none;
  padding:0 16px 16px;
  border-top:1px solid rgba(24,61,121,.06);
}
.project-subtool-accordion>article.is-open>.project-subtool-accordion-body{display:block}
.project-subtool-accordion-body>p{
  margin:12px 0;
  font-size:17px;
  line-height:1.72;
}

.scenario-badges{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.scenario-badges em,
.scenario-badges span,
.scenario-badges small{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  font-size:17px;
  font-style:normal;
  line-height:1;
}
.scenario-badges em{background:#183d79;color:#fff}
.scenario-badges span,
.scenario-badges small{background:rgba(255,178,199,.54);color:#653344}

.risk-scenario-list>article:first-child>button{
  grid-template-columns:minmax(0,1fr) 22px;
}
.risk-scenario-list>article:first-child .project-subtool-accordion-body>.scenario-badges{margin-top:12px}
.scenario-impact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:16px 0;
}
.scenario-impact-grid article{
  padding:16px;
  border-radius:14px;
  background:rgba(255,255,255,.88);
}
.scenario-impact-grid header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:8px;
}
.scenario-impact-grid b{font-size:17px}
.scenario-impact-grid em{
  padding:4px 9px;
  border-radius:999px;
  background:rgba(255,180,199,.48);
  font-size:17px;
  font-style:normal;
}
.scenario-impact-grid p{margin:0;font-size:17px;line-height:1.65}
.project-subtool-accordion-body h3{
  margin:16px 0 8px;
  font-size:17px;
}
.scenario-actions{
  margin:0;
  padding-left:18px;
  font-size:17px;
  line-height:1.72;
}
.scenario-actions li::marker{color:#183d79}
.project-subtool-summary{
  margin-top:14px;
  padding:18px;
  border-radius:14px;
  background:rgba(207,229,255,.88);
}
.project-subtool-summary h3{margin:0 0 8px;font-size:18px}
.project-subtool-summary p{margin:0;font-size:17px;line-height:1.7}

.document-completeness{
  margin-bottom:14px;
  padding:16px 18px;
  border-radius:14px;
  background:rgba(247,248,249,.86);
}
.document-completeness h3{margin:0 0 8px;font-size:17px}
.document-completeness p{margin:0;font-size:17px;line-height:1.72}
.gap-title{
  display:flex!important;
  align-items:center;
  gap:10px;
}
.gap-title em{
  flex:0 0 auto;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(255,183,200,.55);
  color:#8a364d;
  font-size:17px;
  font-style:normal;
}
.gap-title b{font-size:17px;font-weight:600}
.gap-question-list .tone-blue,
.gap-question-list .tone-red{
  margin-top:12px;
  padding:14px 16px;
  border-radius:13px;
  font-size:17px!important;
  line-height:1.65;
}
.gap-followup{
  width:100%;
  margin-top:12px;
  min-height:56px;
  padding:12px 14px;
  border:0;
  border-radius:12px;
  background:rgba(255,255,255,.82);
  display:grid;
  grid-template-columns:minmax(0,1fr) 20px;
  gap:12px;
  align-items:center;
  text-align:left;
  font:inherit;
  font-size:17px;
  color:inherit;
}
.mandatory-questions{
  margin-top:14px;
  padding:16px;
  border-radius:14px;
  background:rgba(247,248,249,.72);
}
.mandatory-questions>h3{
  margin:0 0 10px;
  font-size:17px;
}

@media(max-width:900px){
  .project-subtool-switches{gap:12px}
  .project-subtool-switch{min-height:60px;font-size:17px}
  .scenario-impact-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .project-subtool-switches{grid-template-columns:1fr;gap:10px}
  .project-subtool-switch{min-height:54px;border-radius:14px}
  .project-subtool-loading{min-height:380px;padding:52px 16px 20px}
  .project-subtool-loading>p{margin-top:28px}
  .project-subtool-accordion>article>button{grid-template-columns:minmax(0,1fr) 20px}
  .project-subtool-accordion>article>button>.scenario-badges{grid-column:1/2;grid-row:2}
  .project-subtool-accordion>article>button .arrow{grid-column:2;grid-row:1/3}
  .project-subtool-heading h2{font-size:18px!important}
}

/* v6 — document gap result: align accordion arrows to the far-right content edge */
[data-subtool-result="gap"] .project-subtool-accordion > article > button {
  grid-template-columns: minmax(0, 1fr) 20px;
  column-gap: 12px;
}
[data-subtool-result="gap"] .project-subtool-accordion > article > button .arrow {
  justify-self: end;
  margin-right: 0;
}
[data-subtool-result="gap"] .gap-followup {
  width: 100%;
}
[data-subtool-result="gap"] .gap-followup .arrow {
  margin-left: auto;
  flex: 0 0 20px;
}

/* 2026-08-14 panel surface audit — use translucent white, not solid/tinted gray */
.project-result .project-panel,
.project-subtool-loading{
  background:rgba(255,255,255,.50)!important;
  border:1px solid rgba(255,255,255,.42);
}

/* AI detail typography normalization */
.ai-project-analysis-body h1{font-size:28px!important}
.ai-project-analysis-body h2{font-size:21px!important}
.ai-project-analysis-body h3{font-size:18px!important}
.ai-project-analysis-body input::placeholder,.ai-project-analysis-body textarea::placeholder{font-size:17px!important}
.ai-project-analysis-body h2 + p,.ai-project-analysis-body h3 + p{font-size:17px!important}
.ai-project-analysis-body h1 + p{font-size:18px!important}

h4{font-size:17px}
