.analysis-drop{background:#F3F4F6;border:1px dashed #3E92CC;padding:27px;border-radius:10px;font-size:16px;margin-top:25px}.analysis-drop input{background:#F3F4F6;font-size:12px;margin-top:13px}.analysis-history{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #F3F4F6;padding:14px 0;font-size:13px}.analysis-history b{font-weight:500;overflow-wrap:anywhere}.analysis-history small{display:block;font-size:10px;color:#2B2D42;margin-top:5px}.analysis-working{text-align:center;padding:60px 25px}.analysis-working p{font-size:13px;color:#2B2D42}.analysis-spinner{display:block;width:37px;height:37px;border:3px solid #F3F4F6;border-top-color:#2B2D42;border-radius:50%;margin:0 auto 22px;animation:ai-spin 1s linear infinite}.analysis-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0}.analysis-amounts>div{background:#F3F4F6;padding:20px;border-radius:8px;min-width:0}.analysis-amounts small{display:block;color:#2B2D42;font-size:11px}.analysis-amounts strong{display:block;margin-top:12px;font-size:21px;overflow-wrap:anywhere}.analysis-questions{font-size:13px;line-height:1.9;padding-left:20px}.analysis-questions li{padding-bottom:12px}.knowledge-path{display:block;overflow-wrap:anywhere;padding:16px;background:#F3F4F6;font-size:11px;margin:18px 0}.record summary{cursor:pointer;font-size:13px}.record details p{font-size:12px}@keyframes ai-spin{to{transform:rotate(360deg)}}@media(max-width:760px){.analysis-drop{padding:18px;font-size:14px}.analysis-amounts{grid-template-columns:1fr;gap:10px}.analysis-amounts>div{padding:16px}.analysis-amounts strong{font-size:19px}.analysis-history{gap:10px;font-size:12px}}@media(prefers-reduced-motion:reduce){.analysis-spinner{animation:none}}
.project-ai{margin:24px 0 32px}.project-ai .actions{margin:16px 0;flex-wrap:wrap}.analysis-project-entry{margin:16px 0;padding:22px;background:#F3F4F6;border:1px solid #F3F4F6;border-radius:16px;overflow-wrap:anywhere}.analysis-project-entry>summary{cursor:pointer;line-height:1.8}.analysis-project-entry>summary .status{margin:0 12px}.analysis-project-entry>summary small{display:block;color:#2B2D42}.plan-steps{padding-left:24px}.plan-steps li{padding-left:8px}.construction-plan{margin:25px 0}.project-ai .panel{min-width:0}@media(max-width:600px){.analysis-project-entry{padding:12px}.project-ai .actions .btn{width:100%}}
.issue-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0}.issue-overview>div{padding:18px 14px;background:#F3F4F6;border-radius:10px}.issue-overview span{font-size:12px;color:#2B2D42;display:block}.issue-overview strong{display:block;font-size:28px;margin-top:10px}.issue-overview small{font-size:12px;margin-left:6px}.issue-overview .margin-status{font-size:18px}.issue-groups{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}.issue-groups h4{font-size:17px;margin:12px 0}.issue-evidence{padding:12px;background:#F3F4F6;border-left:3px solid #3E92CC}.estimate-table-scroll{overflow-x:auto}.estimate-table-scroll table{min-width:650px;width:100%;font-size:12px}.estimate-table-scroll td{white-space:normal;min-width:85px;max-width:280px;overflow-wrap:anywhere}.expert-opinion{border:2px solid #2B2D42;background:#F3F4F6}.expert-form{margin-top:25px}.expert-form fieldset{border:1px solid #F3F4F6;padding:18px;margin:22px 0}.expert-form .actions{flex-wrap:wrap}.margin-panel{border-left:4px solid #3E92CC}.issue-groups p,.margin-panel p,.expert-opinion p{overflow-wrap:anywhere}@media(max-width:760px){.issue-overview{grid-template-columns:1fr 1fr}.issue-overview>div:last-child{grid-column:1/-1}.issue-groups{grid-template-columns:1fr}.expert-form .actions{display:grid;gap:10px}.expert-form .actions .btn{width:100%}}
.analysis-received{text-align:center;padding:48px 24px}.received-mark{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin:0 auto 22px;border-radius:50%;background:#F3F4F6;color:#2B2D42;font-size:30px}.analysis-received h2{font-size:clamp(21px,3vw,30px);line-height:1.6;margin:20px 0;word-break:keep-all}.analysis-received>p{line-height:1.9;color:#2B2D42}.kakao-notice{max-width:540px;margin:25px auto;padding:20px;background:#F3F4F6;border:1px solid #F3F4F6;border-radius:12px}.kakao-notice b{font-size:15px}.kakao-notice b span{font-size:11px;background:#F3F4F6;border-radius:20px;padding:4px 9px;margin-left:8px}.kakao-notice p{font-size:12px;line-height:1.8;margin:12px 0 0;color:#2B2D42}@media(max-width:600px){.analysis-received{padding:30px 16px}.analysis-received .btn{width:100%}}
.analysis-receipt{text-align:center;padding:18px 0 5px}.analysis-receipt h2{font-size:24px;line-height:1.5;word-break:keep-all}.analysis-receipt>p{line-height:1.9;color:#2B2D42}.analysis-receipt>.btn{width:100%;margin-top:8px}.analysis-receipt .kakao-notice{margin:22px 0}.analysis-receipt .kakao-notice p:last-child{font-size:12px}

/* A4 consumer explanation, with administrator-only evidence kept separate. */
.estimate-a4-wrap{max-width:820px;margin:22px auto}.a4-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:12px;color:#2B2D42}.estimate-paper{background:#F3F4F6;border:1px solid #F3F4F6;padding:36px 42px;box-shadow:0 12px 30px #2B2D4212;color:#2B2D42;overflow-wrap:anywhere}.estimate-paper .estimate-paper-heading{position:static;background:transparent;box-shadow:none;border:0;border-bottom:2px solid #2B2D42;padding:0 0 16px;margin:0 0 24px;backdrop-filter:none}.estimate-paper-heading>span{font-size:11px;color:#2B2D42;font-weight:700;letter-spacing:.08em}.estimate-paper-heading h2{font-size:24px;margin:12px 0 9px}.estimate-paper-heading p{font-size:11px;color:#2B2D42;margin:0}.estimate-paper-body{white-space:pre-wrap;font-size:14px;line-height:1.85}.estimate-paper-expert{margin-top:24px;padding-top:18px;border-top:1px solid #F3F4F6}.estimate-paper-expert h3{font-size:14px;margin:0 0 9px}.estimate-paper-expert p{white-space:pre-wrap;font-size:14px;line-height:1.75;margin:0}.estimate-paper .estimate-paper-footer{background:none;padding:18px 0 0;margin-top:20px;border-top:1px solid #F3F4F6;font-size:10px;color:#2B2D42}.estimate-evidence{margin-top:26px}.estimate-evidence>summary{cursor:pointer;font-weight:700;padding:16px;background:#F3F4F6;border-radius:10px}.expert-form textarea[name=summary]{min-height:330px;line-height:1.7}#estimate-print-stage{display:none}
@media(max-width:600px){.estimate-paper{padding:24px 20px}.estimate-paper-heading h2{font-size:20px}.a4-toolbar{font-size:11px}.estimate-paper-body,.estimate-paper-expert p{font-size:13px;line-height:1.8}}
@media print{
 @page{size:A4;margin:12mm}
 body.printing-estimate> *{display:none!important}
 body.printing-estimate>#estimate-print-stage{display:block!important}
 body.printing-estimate{background:#F3F4F6!important;margin:0!important;padding:0!important}
 #estimate-print-stage .estimate-paper{border:0;box-shadow:none;padding:0;width:auto;max-width:none;font-size:10pt}
 #estimate-print-stage .estimate-paper-heading{padding-bottom:10px;margin-bottom:16px}
 #estimate-print-stage .estimate-paper-heading h2{font-size:18pt;margin:10px 0}
 #estimate-print-stage .estimate-paper-body,#estimate-print-stage .estimate-paper-expert p{font-size:10pt;line-height:1.5}
 #estimate-print-stage .estimate-paper-expert{margin-top:16px;padding-top:12px}
 #estimate-print-stage .estimate-paper-footer{padding-top:12px;margin-top:12px;font-size:8pt}
}
.review-inbox-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0 12px}.review-inbox-summary b{color:#2B2D42}.review-inbox-summary span{font-size:11px;color:#2B2D42}.review-inbox .is-unread{background:#F3F4F6}.review-inbox .is-unread td:first-child{font-weight:700}.review-read-status{display:inline-block;padding:4px 9px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap}.review-read-status.unread{background:#F3F4F6;color:#2B2D42}.review-read-status.read{background:#F3F4F6;color:#2B2D42}.review-inbox time{white-space:nowrap;font-size:11px}.review-inbox td small{margin-top:5px;white-space:nowrap}.review-inbox .table-scroll{max-width:100%}
.review-attachment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.review-attachment-actions a{font-size:11px;font-weight:600;color:#2B2D42;text-decoration:underline}.estimate-attachment{margin:18px 0;background:#F3F4F6;border-color:#F3F4F6}.estimate-attachment h2{font-size:18px;overflow-wrap:anywhere;margin-top:14px}.estimate-attachment p{font-size:12px;color:#2B2D42}.estimate-attachment details{margin-top:16px}.estimate-attachment summary{cursor:pointer;font-size:13px;font-weight:700}.estimate-attachment img{display:block;width:100%;max-height:650px;object-fit:contain;margin-top:14px;background:#F3F4F6}
@media print{#estimate-print-stage .estimate-paper{overflow:visible;break-inside:auto}#estimate-print-stage .estimate-paper-body{orphans:3;widows:3}#estimate-print-stage .estimate-paper-expert{break-inside:avoid}}
.quote-onepage-wrap{max-width:794px}.quote-onepage{font-size:12px;line-height:1.3;padding:28px}.quote-onepage-header{position:static;background:none;box-shadow:none;padding:0 0 12px;border-bottom:2px solid #2B2D42;margin-bottom:12px}.quote-onepage-header h2{font-size:22px;line-height:1.25;margin:0 0 8px;overflow-wrap:anywhere}.quote-onepage-header p{font-size:11px;margin:4px 0}.quote-onepage-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}.quote-onepage-process{border-bottom:1px solid #F3F4F6;padding:0 0 8px;min-width:0;break-inside:avoid}.quote-onepage-process p{font-size:12px;line-height:1.3;margin:0 0 3px;overflow-wrap:anywhere}.quote-onepage-process b{color:#2B2D42}.quote-onepage-process.has-concern b{color:#2B2D42}.quote-onepage-evidence{color:#2B2D42}.quote-onepage-question{color:#2B2D42}.quote-onepage-footer{background:none!important;padding:10px 0 0!important;margin-top:8px!important;border-top:1px solid #3E92CC}.quote-onepage-footer p{font-size:10px;line-height:1.35;margin:3px 0}.quote-full-analysis{margin:24px 0}.quote-full-analysis>summary{padding:18px;border:1px solid #F3F4F6;border-radius:10px;font-weight:700;cursor:pointer;background:#F3F4F6}@media(max-width:600px){.quote-onepage-grid{grid-template-columns:1fr}.quote-onepage{padding:20px}.quote-onepage-process p{font-size:14px}}@media print{#estimate-print-stage .quote-onepage{font-size:9pt;width:186mm;max-width:186mm;padding:0}.quote-onepage-grid{grid-template-columns:1fr 1fr;gap:7px 14px}.quote-onepage-process p{font-size:9pt;line-height:1.25;margin-bottom:2px}.quote-onepage-process{padding-bottom:5px}.quote-onepage-header h2{font-size:15pt}.quote-onepage-header p{font-size:8pt}.quote-onepage-footer p{font-size:7.5pt}.quote-onepage-header{padding-bottom:8px;margin-bottom:10px}.quote-onepage-question{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.quote-scorecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:24px 0}.quote-scorecards>div{display:flex;flex-direction:column;border:1px solid #F3F4F6;border-radius:12px;padding:16px;background:#F3F4F6}.quote-scorecards strong{font-size:30px;line-height:1.3}.quote-scorecards span{font-size:14px}.quote-scorecards .issue{background:#F3F4F6;color:#2B2D42}.quote-scorecards .check{background:#F3F4F6;color:#2B2D42}.quote-scorecards .good{background:#F3F4F6;color:#2B2D42}.quote-balance{display:grid;grid-template-columns:1fr 1fr;gap:20px}.quote-balance>section{min-width:0;border:1px solid #F3F4F6;border-radius:14px;padding:18px}.quote-problems{background:#F3F4F6}.quote-strengths{background:#F3F4F6}.quote-balance h3{font-size:23px;margin:0 0 14px}.quote-point{background:#F3F4F6;border:1px solid #F3F4F6;border-radius:9px;padding:14px;margin-top:12px;overflow-wrap:anywhere}.quote-point p{margin:7px 0}.quote-point details{font-size:14px}.quote-scope-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:24px 0}.quote-scope-summary>div{display:flex;flex-direction:column;padding:12px;border:1px solid #F3F4F6;border-radius:8px}.quote-scope-summary span{font-size:13px}.quote-learning-consent{margin-top:24px}@media(max-width:650px){.quote-balance{grid-template-columns:1fr}.quote-scorecards{grid-template-columns:1fr 1fr}}@media print{.quote-balance{display:block}.quote-point{break-inside:avoid}.quote-strengths{margin-top:18px}}
.reply-estimate{max-width:1100px}.reply-estimate .estimate-paper{font-size:16px;line-height:1.75}.reply-block{margin-top:36px;padding-top:28px;border-top:1px solid #3E92CC}.reply-block h3{font-size:23px}.reply-block li{margin:12px 0}.reply-table{width:100%;table-layout:fixed;border-collapse:collapse}.reply-table th,.reply-table td{padding:12px 8px;border:1px solid #F3F4F6;vertical-align:top;overflow-wrap:anywhere}.reply-table th{background:#F3F4F6}.reply-table th:first-child{width:50px}.reply-table th:nth-child(4){width:95px}.reply-table small{display:block}.reply-status{display:inline-block;border-radius:6px;padding:3px 7px;font-weight:700}.reply-status.ok{background:#F3F4F6;color:#2B2D42}.reply-status.check{background:#F3F4F6;color:#76500b}.reply-status.issue{background:#F3F4F6;color:#9b3224}.reply-edit-list{display:grid;gap:15px}.reply-edit-list .record{margin:0}.reply-table details p{white-space:pre-wrap}
@media(max-width:600px){.reply-table,.reply-table tbody,.reply-table tr,.reply-table td{display:block;width:100%}.reply-table thead{display:none}.reply-table tr{border:1px solid #3E92CC;margin:16px 0;border-radius:10px;overflow:hidden}.reply-table td{border:0;border-bottom:1px solid #F3F4F6;padding:10px}.reply-table td::before{content:attr(data-label);display:block;font-size:13px;color:#2B2D42;font-weight:700}.reply-estimate .estimate-paper{padding:20px 14px}}
@media print{.reply-table{font-size:9pt}.reply-table tr{break-inside:avoid}.reply-table th{background:#F3F4F6;print-color-adjust:exact}.reply-table details{display:block}.reply-block{break-inside:auto}.reply-block h3{break-after:avoid}}
.construction-phase{padding:24px 0;border-top:1px solid #F3F4F6;overflow-wrap:anywhere}.construction-phase h3{font-size:23px;margin:12px 0}.construction-phase h4{margin:24px 0 10px}.construction-shot-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.construction-shot-list .record{padding:16px;background:#F3F4F6;border-radius:12px}.construction-upload{background:#F3F4F6;padding:24px;border:1px solid #F3F4F6;border-radius:16px;margin:18px 0}.construction-upload>summary{font-weight:700;cursor:pointer;color:#2B2D42}.construction-upload form{margin-top:22px}.construction-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.construction-photo-grid figure{margin:0;min-width:0}.construction-photo-grid img{width:100%;height:240px;object-fit:contain;background:#F3F4F6;border-radius:10px}.construction-photo-grid figcaption{font-size:12px;overflow-wrap:anywhere}.construction-report .estimate-paper{overflow-wrap:anywhere}.construction-report .estimate-paper h3{margin-top:25px}.construction-report .estimate-paper p{white-space:pre-wrap}.expert-form fieldset{min-width:0;margin:20px 0;border:1px solid #F3F4F6;border-radius:12px;padding:18px}.expert-form legend{font-weight:700;padding:0 8px}.construction-upload input,.construction-upload select,.construction-upload textarea{max-width:100%;min-width:0}
@media(max-width:600px){.construction-photo-grid{grid-template-columns:1fr}.construction-upload{padding:18px}.construction-shot-list{grid-template-columns:1fr}.construction-phase h3{font-size:20px}}
@media print{#estimate-print-stage .construction-phase{break-inside:auto}#estimate-print-stage .construction-photo-grid img{height:180px}#estimate-print-stage h3,#estimate-print-stage h4{break-after:avoid}#estimate-print-stage figure{break-inside:avoid}}
.analysis-recent .analysis-history,.analysis-history-labels{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(85px,.8fr) minmax(100px,1fr);gap:12px;align-items:center}.analysis-history-labels{padding:12px 0;border-bottom:2px solid #3E92CC;font-size:13px;font-weight:700}.analysis-history-total{font-size:14px;overflow-wrap:anywhere}.analysis-recent .analysis-history .status{white-space:normal;text-align:center}.analysis-plan-start{margin-top:24px}
@media(max-width:760px){.analysis-recent .analysis-history,.analysis-history-labels{grid-template-columns:minmax(0,1.1fr) minmax(65px,.8fr) minmax(85px,1fr);gap:7px}.analysis-history-total{font-size:12px}.analysis-recent .analysis-history .status{font-size:11px}}
.estimate-problem-report{white-space:normal;font-size:14px;line-height:1.8}.estimate-problem-report p{margin:0 0 12px}.estimate-problem-report h3{font-size:18px;margin:20px 0 10px}
.quote-onepage-question{color:inherit}
.four-check-report{margin:20px 0}.four-check-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:16px;line-height:1.8}.four-check-table caption{text-align:left;color:#2B2D42;font-size:13px;margin-bottom:12px}.four-check-table th,.four-check-table td{padding:18px;border:1px solid #F3F4F6;vertical-align:top;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.four-check-table th{background:#F3F4F6}.four-check-table th:first-child{width:24%}.four-check-badge{display:inline-block;background:#F3F4F6;color:#2B2D42;border:1px solid #F3F4F6;padding:10px 16px;border-radius:8px;margin-bottom:12px}@media(max-width:600px){.four-check-table{font-size:14px}.four-check-table th,.four-check-table td{padding:10px}.four-check-table th:first-child{width:29%}}
.quote-feedback-report{overflow-wrap:anywhere}.quote-feedback-report h2{font-size:23px}.quote-feedback-counts{display:flex;flex-wrap:wrap;gap:12px;padding:15px;background:#F3F4F6;border:1px solid #F3F4F6;border-radius:9px;margin:20px 0}.quote-feedback-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:15px;line-height:1.65}.quote-feedback-table th,.quote-feedback-table td{border:1px solid #F3F4F6;padding:13px 10px;text-align:left;vertical-align:top;overflow-wrap:anywhere}.quote-feedback-table th{background:#F3F4F6;color:#2B2D42}.quote-feedback-table th:nth-child(1){width:5%}.quote-feedback-table th:nth-child(2){width:29%}.quote-feedback-table th:nth-child(3){width:8%}.quote-feedback-table th:nth-child(4),.quote-feedback-table th:nth-child(5){width:10%}.quote-feedback-table th:nth-child(6){width:38%}.quote-feedback-table small{display:block;color:#2B2D42}.quote-original-line{white-space:pre-wrap;font-size:14px;border-left:3px solid #3E92CC;padding:8px 10px;margin:10px 0;background:#F3F4F6;color:#2B2D42}.quote-feedback-table p{white-space:pre-wrap;margin:9px 0}.quote-row-comment{font-weight:600}.quote-row-calculation{background:#F3F4F6;padding:10px;border-radius:6px}.quote-additional-checks{margin-top:30px;padding-top:22px;border-top:2px solid #F3F4F6}.quote-reading-notes{margin-top:22px}.quote-reading-notes>summary{cursor:pointer;color:#2B2D42}@media(max-width:760px){.quote-feedback-table,.quote-feedback-table tbody,.quote-feedback-table tr,.quote-feedback-table td{display:block;width:100%}.quote-feedback-table thead{display:none}.quote-feedback-table tr{border:1px solid #3E92CC;border-radius:10px;margin:18px 0;overflow:hidden}.quote-feedback-table td{border:0;border-bottom:1px solid #F3F4F6;padding:12px}.quote-feedback-table td::before{content:attr(data-label);display:block;font-weight:700;font-size:13px;color:#2B2D42;margin-bottom:5px}.quote-feedback-table td:last-child{background:#F3F4F6}.quote-feedback-counts{display:block}.quote-feedback-counts span{display:block;margin-top:8px}}
.item-feedback-card{margin:16px 0;border:1px solid #3E92CC;border-radius:12px;overflow:hidden;background:#F3F4F6}
.item-feedback-card>summary{padding:18px;background:#F3F4F6;cursor:pointer;font-size:18px;overflow-wrap:anywhere}
.item-feedback-card>summary span{font-size:13px;margin-left:16px;color:#2B2D42}
.item-feedback-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:20px;padding:20px;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.item-feedback-body h3{font-size:17px;color:#2B2D42;margin-top:0}
.item-feedback-body blockquote{margin:0;padding:12px;background:#F3F4F6;white-space:pre-wrap}
.item-contractor-question{padding:14px;background:#F3F4F6;color:#2B2D42;border-radius:8px}
.item-feedback-report .expert-opinion{padding:20px;background:#F3F4F6;border:2px solid #3E92CC;border-radius:12px;margin-bottom:24px}
@media(max-width:600px){.item-feedback-body{grid-template-columns:minmax(0,1fr);padding:14px}.item-feedback-card>summary{font-size:16px;padding:14px}.item-feedback-report{padding:16px}}
.item-problem-badge{display:inline-block;margin-left:12px;background:#F3F4F6;color:#b42323;border:1px solid #d98b8b;border-radius:5px;padding:3px 8px;font-size:14px}
.expert-sent-amount{padding:16px;background:#F3F4F6;border:1px solid #3E92CC;border-radius:8px;margin-top:16px}
.admin-visit-summary{margin-bottom:20px}.admin-visit-summary h2 strong{color:#2B2D42;font-size:30px}

.expert-opinion-box{background:#F3F4F6;border:1px solid #3E92CC;border-radius:8px;padding:18px;margin:18px 0 16px;overflow-wrap:anywhere}.expert-opinion-box .post-body{margin:10px 0 0;white-space:pre-wrap;line-height:1.8}

.feedback-group{border:1px solid #3E92CC;border-radius:12px;margin-top:18px;padding:16px}.feedback-group>summary{cursor:pointer;font-size:20px;font-weight:700;padding:8px}.problem-group>summary{color:#b42323}.normal-group>summary{color:#2B2D42}

.feedback-group.problem-group{background:#F3F4F6;border:2px solid #d9a09b}.feedback-group.normal-group{background:#F3F4F6;border:2px solid #3E92CC}.feedback-group>summary{list-style-position:inside;line-height:1.6}

/* Independent AI and expert result stages. */
.analysis-history-labels>span:not(:first-child){text-align:center;word-break:keep-all}
.analysis-history .analysis-stage-status{text-align:center;justify-self:center;font-size:14px}
.analysis-history a.analysis-stage-status{color:#173b50;text-decoration:underline;text-underline-offset:4px;font-weight:700}
.analysis-history .analysis-history-file{min-width:0;overflow-wrap:anywhere}
.analysis-history .analysis-history-file small{display:block}
.estimate-stage-navigation{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px}
.estimate-stage-navigation .btn[aria-current="page"]{background:#2B2D42;color:#fff;border-color:#2B2D42}
.estimate-stage-navigation .btn[aria-disabled="true"]{color:#657069;background:#f1f4f2;border-color:#d5ded8;cursor:default}
.estimate-stage-navigation .btn{white-space:normal;text-align:center}
.estimate-stage-waiting{padding:28px}
@media(max-width:600px){.estimate-stage-navigation{gap:8px}.estimate-stage-navigation .btn{flex:1;min-width:140px;font-size:12px;padding:12px 8px}.analysis-history .analysis-stage-status{font-size:12px}}
#app .estimate-stage-navigation .btn[aria-current="page"]{background:#2B2D42!important;color:#fff!important;border-color:#2B2D42!important}
#app .estimate-stage-navigation .btn[aria-disabled="true"]{color:#657069!important;background:#f1f4f2!important;border-color:#d5ded8!important;pointer-events:none}
#app .analysis-upload-page .analysis-history,#app .analysis-upload-page .analysis-history-labels{grid-template-columns:minmax(0,1.25fr) minmax(95px,1fr) minmax(95px,1fr)}
@media(max-width:600px){#app .analysis-upload-page .analysis-history,#app .analysis-upload-page .analysis-history-labels{grid-template-columns:minmax(0,1.2fr) minmax(84px,.9fr) minmax(84px,.9fr)}#app .analysis-upload-page .analysis-history-labels{font-size:13px}}

/* Original evidence in the item heading; feedback uses the full reading width. */
#app .item-feedback-report .item-feedback-card>summary .feedback-source-text{display:block!important;margin:10px 0 0;font-size:16px;font-weight:400;line-height:1.75;color:#2B2D42!important;white-space:pre-wrap;overflow-wrap:anywhere}
#app .item-feedback-report .item-feedback-body{display:block;grid-template-columns:minmax(0,1fr);text-align:left;padding:18px 8px 28px}
#app .item-feedback-report .item-feedback-body>.item-ai-feedback{width:100%;min-width:0;margin:0;padding:0;text-align:left}
#app .item-feedback-report .item-source-metadata{margin:0 0 22px;padding-bottom:12px;border-bottom:1px solid #e7eef0}
#app .item-feedback-report .item-source-metadata p{margin:0 0 8px}
#app .item-feedback-report .item-ai-feedback>p{margin-left:0;padding-left:0;text-align:left}
@media(max-width:600px){#app .item-feedback-report .item-feedback-card>summary .feedback-source-text{font-size:15px}#app .item-feedback-report .item-feedback-body{padding:12px 6px 22px}}

/* Fixed-open problem list, with sequential and structured estimate headings. */
#app .item-feedback-report .problem-group>.feedback-group-heading{font-size:23px!important;font-weight:800;line-height:1.6;padding:9px 2px!important;margin:0;color:#ca2739!important;cursor:default}
#app .item-feedback-report .feedback-item-heading{font-weight:700;line-height:1.75;overflow-wrap:anywhere}
@media(max-width:600px){#app .item-feedback-report .problem-group>.feedback-group-heading{font-size:18px!important}}

/* More room for the estimate list, retaining its own scrolling area. */
#app .item-feedback-report .feedback-group-scroll{max-height:clamp(550px,76svh,880px);overflow-y:auto}
@media(max-width:600px){#app .item-feedback-report .feedback-group-scroll{max-height:74svh}}

/* Traffic-light category labels. */
#app .item-feedback-report .item-ai-feedback .feedback-label-problem{color:#e53935!important}
#app .item-feedback-report .item-ai-feedback .feedback-label-caution{color:#e88700!important}
#app .item-feedback-report .item-ai-feedback .feedback-label-question{color:#16a34a!important}

/* Manjae chat message on the completed AI result and evidence-based summary. */
#app .estimate-result-top{display:flex;flex-direction:column;align-items:flex-end;gap:12px;margin-bottom:24px}
#app .estimate-result-top .reference-result-actions{margin:0}
#app .estimate-manjae-message{display:flex;align-items:center;gap:15px;max-width:100%}
#app .estimate-manjae-message img{width:68px;height:82px;object-fit:contain;flex-shrink:0}
#app .estimate-manjae-bubble{position:relative;background:#fee500!important;color:#302b20!important;border-radius:15px;padding:15px 20px;margin:0;font-size:15px;line-height:1.65;box-shadow:0 2px 5px #0000000d;word-break:keep-all;overflow-wrap:anywhere}
#app .estimate-manjae-bubble:before{content:"";position:absolute;left:-9px;top:24px;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:11px solid #fee500}
#app .estimate-manjae-bubble strong{color:#302b20!important;font-weight:800}
#app .item-feedback-report .estimate-risk-summary{padding:18px 20px;margin:18px 0 22px;background:#f6f8f6;border-radius:10px;border-left:3px solid #4A4D66}
#app .item-feedback-report .estimate-risk-summary h3{font-size:18px;color:#2B2D42!important;margin:0 0 8px;font-weight:800}
#app .item-feedback-report .estimate-risk-summary p{font-size:16px;line-height:1.8;margin:0;color:#2B2D42!important;word-break:keep-all;overflow-wrap:anywhere}
@media(max-width:600px){#app .estimate-manjae-message{gap:10px}#app .estimate-manjae-message img{width:48px;height:65px}#app .estimate-manjae-bubble{font-size:13px;padding:12px 14px}#app .manjae-message-break{display:none}#app .item-feedback-report .estimate-risk-summary{padding:15px}#app .item-feedback-report .estimate-risk-summary p{font-size:14px}}

/* Supplied Manjae image, framed as a chat profile without the bottom whitespace. */
#app .estimate-manjae-message img{width:68px;height:68px;object-fit:cover;object-position:50% 20%;border-radius:50%;border:1px solid #E6E8EE}
@media(max-width:600px){#app .estimate-manjae-message img{width:50px;height:50px}}

/* Result navigation and new estimate share one row; full-body Manjae speaks from the right. */
#app .estimate-stage-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
#app .estimate-stage-header .estimate-stage-navigation{margin:0;min-width:0;flex-wrap:nowrap}
#app .estimate-stage-header .reference-result-actions{margin:0;flex-shrink:0}
#app .estimate-stage-header .reference-result-actions .btn{border:1px solid #2B2D42!important;color:#2B2D42!important;background:#fff!important;border-radius:5px!important;padding:10px 14px!important}
#app .estimate-manjae-message img{width:116px;height:142px;object-fit:cover;object-position:center top;border-radius:0;border:0;position:relative;top:12px}
#app .estimate-manjae-bubble:before{left:auto;right:-9px;top:24px;border-right:0;border-left:11px solid #fee500}
@media(max-width:600px){
 #app .estimate-stage-header{gap:8px;align-items:stretch}
 #app .estimate-stage-header .estimate-stage-navigation{flex:1;gap:6px}
 #app .estimate-stage-header .estimate-stage-navigation .btn{min-width:0;padding:10px 5px;font-size:11px;line-height:1.5}
 #app .estimate-stage-header .reference-result-actions{align-items:stretch}
 #app .estimate-stage-header .reference-result-actions .btn{padding:10px 8px!important;font-size:11px;white-space:nowrap}
 #app .estimate-manjae-message img{width:84px;height:103px}
}

/* Full-body Manjae meets the summary edge; bubble grows with the character. */
#app .estimate-report-intro.has-manjae{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:end;column-gap:24px}
#app .estimate-report-intro.has-manjae .reference-file-heading{grid-column:1;grid-row:1;padding-bottom:20px}
#app .estimate-report-intro.has-manjae .estimate-result-top{grid-column:2;grid-row:1;margin:0;min-width:0}
#app .estimate-report-intro.has-manjae .estimate-manjae-message{width:100%;justify-content:flex-end;align-items:center;gap:18px}
#app .estimate-report-intro.has-manjae .estimate-manjae-message img{width:190px;height:225px;max-width:none;flex-shrink:0;top:0;display:block;align-self:flex-end}
#app .estimate-report-intro.has-manjae .estimate-manjae-bubble{font-size:20px;line-height:1.7;padding:22px 24px;border-radius:19px;min-width:0}
#app .estimate-report-intro.has-manjae .estimate-manjae-bubble:before{top:calc(50% - 9px);border-top-width:9px;border-bottom-width:9px}
#app .estimate-report-intro.has-manjae+.estimate-risk-summary{margin-top:0}
@media(max-width:1000px){
 #app .estimate-report-intro.has-manjae{grid-template-columns:minmax(0,1fr)}
 #app .estimate-report-intro.has-manjae .reference-file-heading{grid-column:1;grid-row:1;padding-bottom:16px}
 #app .estimate-report-intro.has-manjae .estimate-result-top{grid-column:1;grid-row:2}
}
@media(max-width:600px){
 #app .estimate-report-intro.has-manjae .estimate-manjae-message{gap:12px}
 #app .estimate-report-intro.has-manjae .estimate-manjae-message img{width:116px;height:138px}
 #app .estimate-report-intro.has-manjae .estimate-manjae-bubble{font-size:15px;line-height:1.6;padding:15px 16px;border-radius:16px}
}
