/* ProfitLeak Intelligence™ Phase 4 — Action Planner and Client Reporting */
.pl4-section{margin-top:20px}.pl4-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 17px}.pl4-stat{padding:15px;border:1px solid var(--pl-line);border-radius:12px;background:var(--pl-surface);min-width:0}.pl4-stat span,.pl4-stat small{display:block;color:var(--pl-muted);font-size:11px}.pl4-stat strong{display:block;font-weight:800;font-size:clamp(20px,2.6vw,29px);margin:5px 0;color:var(--pl-teal)}.pl4-split{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:14px}.pl4-panel{border:1px solid var(--pl-line);border-radius:13px;padding:16px;background:var(--pl-surface);min-width:0}.pl4-titleline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.pl4-titleline h3{margin:0}.pl4-actions{display:grid;gap:9px}.pl4-action{border:1px solid #314e62;background:#112437;border-radius:11px;padding:13px;min-width:0}.pl4-action.is-active{border-color:#8eb4dc;box-shadow:0 0 0 1px #8eb4dc2b}.pl4-action-head{width:100%;padding:0;border:0;background:transparent;color:inherit;display:flex;justify-content:space-between;gap:10px;text-align:left;cursor:pointer;align-items:center}.pl4-action-head>span{min-width:0;display:grid;gap:5px}.pl4-action-head strong{font-size:12px;line-height:1.45}.pl4-action-head small{font-size:10px;color:var(--pl-muted);line-height:1.55}.pl4-action-head em{font-size:10px;font-style:normal;font-weight:800;border:1px solid #456279;border-radius:6px;color:#aec6e3;padding:5px 7px;white-space:nowrap}.pl4-action-head:focus-visible,.pl4-section button:focus-visible,.pl4-section input:focus-visible,.pl4-section select:focus-visible,.pl4-section textarea:focus-visible{outline:2px solid var(--pl-teal);outline-offset:3px}.pl4-action .pl4-row{margin-top:9px;display:flex;flex-wrap:wrap;gap:6px}.pl4-badge{display:inline-flex;align-items:center;border:1px solid #345378;border-radius:30px;padding:4px 8px;font-weight:700;font-size:10px;color:#b0c6e2}.pl4-badge.warn{color:#f3cd91;border-color:#816a44}.pl4-badge.good{color:#9dc3eb;border-color:#3c77b5}.pl4-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pl4-field{min-width:0}.pl4-field.full{grid-column:1/-1}.pl4-field label{display:block;font-size:11px;color:var(--pl-muted);font-weight:700;margin-bottom:6px}.pl4-field .pl4-input{width:100%;border-radius:9px;border:1px solid #3e6070;background:#0c192a;color:#eff9ff;min-height:40px;padding:9px 11px;font-family:inherit;font-size:12px;min-width:0}.pl4-field select.pl4-input{padding-right:35px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d9edf6' stroke-width='2.3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}.pl4-field textarea{resize:vertical;min-height:65px;line-height:1.6}.pl4-checkline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pl4-checkline label{margin:0;font-weight:600;color:var(--pl-muted);font-size:11px}.pl4-copy{margin-top:11px;padding:11px 12px;background:#7aa5d3;border:1px solid #34679d;border-radius:9px;color:#b6ceeb;font-size:11px;line-height:1.65}.pl4-caption{font-size:11px;line-height:1.65;color:var(--pl-muted)}.pl4-empty{padding:24px 12px;text-align:center;color:var(--pl-muted);border:1px dashed #406174;border-radius:10px;font-size:12px}.pl4-progress{height:8px;background:#23394b;border-radius:12px;overflow:hidden;margin-top:10px}.pl4-progress>span{display:block;height:100%;background:var(--pl-teal);transition:width .2s}.pl4-report-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pl4-report-actions{margin-top:13px;display:flex;flex-wrap:wrap;gap:8px}.pl4-section .pl-note{line-height:1.65}.pl4-template{margin-top:12px;background:#0e2138;border:1px solid #336498;border-radius:10px;padding:12px}.pl4-template strong{font-size:12px}.pl4-template p{color:#c0d0e3;font-size:11px;line-height:1.7;margin-top:5px}.pl4-message{font-size:11px;min-height:16px;color:#90bcea;margin-top:11px}.pl4-section .pl-btn{font-size:11px}.pl4-alert{margin:10px 0;padding:13px 14px;border:1px solid #896a42;border-radius:9px;color:#ffdaa3;background:#33281b;font-size:11px;line-height:1.6}.pl4-alert[hidden]{display:none}.light-theme .pl4-stat,.light-theme .pl4-panel,.light-theme .pl4-action{background:#f5f9fd;border-color:#cbdce7}.light-theme .pl4-field .pl4-input{background-color:#fff;color:#183447;border-color:#bad0dd}.light-theme .pl4-field select.pl4-input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23354e61' stroke-width='2.3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}.light-theme .pl4-badge{color:#326296}.light-theme .pl4-badge.warn{color:#875710}.light-theme .pl4-badge.good{color:#9abadd}.light-theme .pl4-action-head em{color:#25456c;border-color:#a9c3d2}.light-theme .pl4-copy,.light-theme .pl4-template{background:#e7eff9;color:#153e70;border-color:#b4c8e0}.light-theme .pl4-template p{color:#305e90}.light-theme .pl4-alert{background:#fff5e1;color:#745117}
@media(max-width:950px){.pl4-split{grid-template-columns:1fr}}@media(max-width:620px){.pl4-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.pl4-form,.pl4-report-top{grid-template-columns:1fr}.pl4-field.full{grid-column:auto}.pl4-panel{padding:13px}.pl4-action{padding:12px}}
@media print{.pl4-section{break-inside:auto}.pl4-report-actions,.pl4-split,.pl4-add,.pl4-alert{display:none!important}.pl4-metrics{grid-template-columns:repeat(4,1fr)}.pl4-stat{background:white!important;color:#172b35!important;border-color:#ccd8e6!important}.pl4-stat span{color:#333!important}}
