.ap-planning-context-actions{display:flex;gap:12px;flex-wrap:wrap;padding:0 0 16px}.ap-planning-context-actions button{font-size:13px}#annual-planning-enhancement{width:min(960px,calc(100vw - 32px));max-height:90vh;border:0;border-radius:14px;padding:0;background:white;color:#203047;box-shadow:0 20px 70px #1d2d4333}#annual-planning-enhancement::backdrop{background:#1d2d4366}#annual-planning-enhancement header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #dfe6ee}#annual-planning-enhancement h2{font-size:20px;margin:0}#annual-planning-enhancement{--line:#dfe6ee;--muted:#596b80;--blue:#2456c5}#annual-planning-enhancement button,#annual-planning-enhancement input,#annual-planning-enhancement select,#annual-planning-enhancement textarea{font:inherit;border:1px solid #cbd6e2;border-radius:6px;padding:7px 10px;max-width:100%;color:inherit;background:#fff}#annual-planning-enhancement button{cursor:pointer}#annual-planning-enhancement button:disabled{opacity:.5;cursor:default}#annual-planning-enhancement fieldset{border:0;padding:0;min-width:0}#annual-planning-enhancement .quiet{font-size:12px;color:#596b80}#annual-planning-enhancement :focus-visible{outline:2px solid #2456c5;outline-offset:2px}.ape-body{padding:24px}.ape-feedback{padding:0 24px;color:#805219}.ape-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.ape-table{overflow:auto}.ape-table table{width:100%;border-collapse:collapse}.ape-table th,.ape-table td{padding:10px;text-align:left;border-bottom:1px solid #dfe6ee}.ape-table th{background:#f3f6fa}.ape-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px!important}.ape-fields label,.ape-intent{display:flex;flex-direction:column;gap:6px;font-size:13px}.ape-wide{grid-column:1/-1}.ape-intent{margin-top:20px}.ape-pending{font-size:13px;color:#596b80}#annual-planning-enhancement article{padding:12px 0;border-bottom:1px solid #dfe6ee}#annual-planning-enhancement .ape-link{border:0;color:#2456c5;padding:0}#annual-planning-enhancement .dialog-actions{text-align:right;padding-top:16px}@media(max-width:600px){.ape-fields{grid-template-columns:1fr}.ape-body{padding:16px}}
#annual-planning-enhancement.ape-assistant{width:min(900px,calc(100vw - 32px));height:min(800px,90dvh);overflow:hidden;inset:0;margin:auto}
#annual-planning-enhancement.ape-assistant[open]{display:flex;flex-direction:column}
#annual-planning-enhancement.ape-assistant>header{flex:none;padding:18px 28px}
#annual-planning-enhancement.ape-assistant .ape-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:0}
#annual-planning-enhancement.ape-assistant .ape-feedback:empty{display:none}
#annual-planning-enhancement .ape-conversation{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#bac6d6 transparent;padding:20px 28px 32px}
#annual-planning-enhancement .ape-context{background:#f3f6fa;border-radius:8px;font-size:13px;color:var(--muted)}
#annual-planning-enhancement .ape-context>summary{padding:13px 16px;cursor:pointer;color:#203047;font-weight:600}
#annual-planning-enhancement .ape-context>summary span{display:inline-block;margin-left:16px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
#annual-planning-enhancement .ape-context-content{padding:0 16px 16px}
#annual-planning-enhancement .ape-context-content h3{font-size:13px;margin:20px 0 8px}
#annual-planning-enhancement .ape-context-content p{margin:6px 0}
#annual-planning-enhancement .ape-raw{margin-top:16px}
#annual-planning-enhancement .ape-raw summary{cursor:pointer}
#annual-planning-enhancement .ape-send-preview{max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
#annual-planning-enhancement .ape-analysis{max-width:70ch;margin:28px auto 0}
#annual-planning-enhancement .ape-analysis h3{font-size:16px;line-height:1.5;margin:0 0 18px;font-weight:650}
#annual-planning-enhancement #ape-ai-result{font-size:15px;line-height:1.9;overflow-wrap:anywhere}
#annual-planning-enhancement #ape-ai-result p{margin:0 0 22px;white-space:pre-wrap}
#annual-planning-enhancement #ape-ai-result p:last-child{margin-bottom:0}
#annual-planning-enhancement #ape-ai-result p+p{padding-top:20px;border-top:1px solid #edf0f5}
#annual-planning-enhancement #ape-ai-result[data-state=empty],#annual-planning-enhancement #ape-ai-result[data-state=loading]{color:var(--muted);font-size:14px}
#annual-planning-enhancement #ape-ai-result[data-state=error]{color:#8a3e27;background:#fff5f0;padding:14px 16px;border-radius:8px}
#annual-planning-enhancement .ape-composer{flex:none;padding:18px 28px 20px;border-top:1px solid var(--line);background:#f8fafd}
#annual-planning-enhancement .ape-composer .ape-intent{margin:0;font-weight:600;gap:9px}
#annual-planning-enhancement .ape-composer textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:72px;max-height:140px;font-weight:400;line-height:1.6;padding:10px 12px;caret-color:var(--blue)}
#annual-planning-enhancement .ape-composer textarea::placeholder{color:var(--muted)}
#annual-planning-enhancement .ape-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px}
#annual-planning-enhancement .ape-consent{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.6;color:var(--muted)}
#annual-planning-enhancement .ape-consent input{margin:3px 0 0;accent-color:var(--blue);flex:none}
#annual-planning-enhancement #ape-analyze{flex:none;background:var(--blue);border-color:var(--blue);color:white;min-height:40px;padding:9px 18px;font-size:13px;font-weight:600}
#annual-planning-enhancement #ape-analyze:hover:not(:disabled){background:#1c46a4}
#annual-planning-enhancement.ape-assistant button[data-close]:hover{background:#f3f6fa}
#annual-planning-enhancement.ape-assistant ::selection{background:#dce8ff;color:#203047}
@media(max-width:600px){
 #annual-planning-enhancement.ape-assistant{width:calc(100vw - 16px);height:94dvh;max-height:94dvh}
 #annual-planning-enhancement.ape-assistant>header{padding:14px 16px}
 #annual-planning-enhancement .ape-conversation{padding:16px}
 #annual-planning-enhancement .ape-context>summary span{display:block;margin:5px 0 0 15px}
 #annual-planning-enhancement .ape-analysis{margin-top:24px}
 #annual-planning-enhancement .ape-composer{padding:14px 16px}
 #annual-planning-enhancement .ape-composer-actions{align-items:stretch;flex-direction:column;gap:12px}
 #annual-planning-enhancement #ape-ai-result{font-size:14px}
}
#view-auditplan .ap-year-toolbar{flex-wrap:wrap;gap:12px}
#view-auditplan .ap-year-context{order:0;gap:8px}
#view-auditplan .ap-year-context label{gap:8px}
#view-auditplan .ap-landing-actions{order:2;margin-left:auto}
#view-auditplan .ap-planning-context-actions{order:1;display:flex;align-items:center;gap:8px;padding:0 12px;margin:0;border-inline:1px solid #e2e8f0}
#view-auditplan .ap-context-inputs{display:flex;flex-wrap:wrap;gap:8px}
#view-auditplan .ap-planning-context-actions button{min-height:36px;padding:7px 12px;font-size:13px}
#view-auditplan .ap-context-assistant{display:inline-flex;align-items:center;gap:8px;color:#2456c5;background:#edf3ff;border-color:#c5d6f5}
#view-auditplan .ap-context-ai{font-size:11px;font-weight:700;letter-spacing:.02em}
#view-auditplan .ap-context-assistant:hover{background:#e1ebff}
#view-auditplan .ap-planning-context-actions button:focus-visible{outline:2px solid #2456c5;outline-offset:2px}
@media(max-width:760px){#view-auditplan .ap-year-toolbar{flex-wrap:nowrap}#view-auditplan .ap-planning-context-actions{width:100%;justify-content:space-between;box-sizing:border-box;border-inline:0;border-block:1px solid #e2e8f0;padding:10px 0}#view-auditplan .ap-context-inputs{flex:1}}
#view-auditplan .ap-project-status-panel{width:100%;margin:0;padding:0 4px;grid-template-columns:92px minmax(0,720px);gap:16px;box-sizing:border-box}
#view-auditplan .ap-ledger-suite .ap-landing-metric{min-height:64px;padding:9px 12px;border-radius:10px}
#view-auditplan .ap-ledger-suite .ap-landing-metric strong{font-size:20px;margin-top:2px}
#view-auditplan .ap-ledger-suite .ap-landing-metric small{margin-top:2px}
html[data-visual-style] body[data-active-view="auditplan"] #view-auditplan .ap-execution-ledger{border:1px solid #d7e1ec!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;overflow:hidden}
#view-auditplan .ap-execution-ledger .ap-ledger-head{padding:18px 20px}
#view-auditplan .ap-execution-ledger .ap-ledger-table-wrap{margin:0;border:0}
.ap-topic-summary-modal .ap-coverage-topic-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 14px;margin-bottom:18px}
.ap-topic-summary-modal .ap-coverage-topic-summary strong{font-size:16px;color:#203047}
.ap-topic-summary-modal .ap-coverage-topic-summary>span{font-size:13px;color:#596b80}
.ap-topic-summary-modal .ap-coverage-topic-entities{display:flex;flex-direction:column;border:1px solid #dfe6ee;border-radius:10px;overflow:hidden}
.ap-topic-summary-modal .ap-coverage-topic-entities>button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;padding:16px;text-align:left;border:0;border-bottom:1px solid #e7edf4;background:#fff;font:inherit;color:#203047;cursor:pointer}
.ap-topic-summary-modal .ap-coverage-topic-entities>button:last-child{border-bottom:0}
.ap-topic-summary-modal .ap-coverage-topic-entities>button:hover{background:#f3f7fc}
.ap-topic-summary-modal .ap-coverage-topic-entities>button:focus-visible{outline:2px solid #2456c5;outline-offset:-3px}
.ap-topic-summary-modal .ap-coverage-topic-entities>button>span{display:flex;flex-direction:column;gap:6px;min-width:0}
.ap-topic-summary-modal .ap-coverage-topic-entities strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.ap-topic-summary-modal .ap-coverage-topic-entities small{font-size:12px;color:#596b80}
.ap-topic-summary-modal .ap-coverage-topic-entities b{flex:none;padding:4px 9px;border-radius:6px;background:#edf2f8;color:#405772;font-size:12px;font-weight:500}
.ap-topic-summary-modal .ap-coverage-topic-entities b.is-completed{background:#e8f5ee;color:#286344}
.ap-topic-summary-modal .ap-coverage-topic-entities b.is-in-progress{background:#edf3ff;color:#2456c5}
@media(max-width:760px){#view-auditplan .ap-project-status-panel{grid-template-columns:1fr;gap:10px}#view-auditplan .ap-ledger-suite .ap-landing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
#annual-planning-enhancement #ape-ai-result section+section{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
#annual-planning-enhancement #ape-ai-result h4{margin:0 0 10px;font-size:14px;font-weight:650;color:#203047}
#annual-planning-enhancement #ape-ai-result h5{margin:0 0 6px;font-size:15px;font-weight:600}
#annual-planning-enhancement #ape-ai-result .ape-result-summary{padding:16px 18px;background:#f1f6fd;border-radius:8px}
#annual-planning-enhancement #ape-ai-result p{margin:0;line-height:1.8}
#annual-planning-enhancement #ape-ai-result ol,#annual-planning-enhancement #ape-ai-result ul{padding-left:22px;margin:0}
#annual-planning-enhancement #ape-ai-result li+li{margin-top:18px}
#annual-planning-enhancement .ape-result-basis{display:flex;gap:10px;margin-top:10px;font-size:13px;color:var(--muted);line-height:1.7}
#annual-planning-enhancement .ape-result-basis strong{flex:none;font-weight:500}
#annual-planning-enhancement .ape-result-questions{font-size:14px}
#annual-planning-enhancement.ape-project-editor,#annual-planning-enhancement.ape-workload{inset:0;margin:auto}
#annual-planning-enhancement.ape-project-editor .ape-project-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}
#annual-planning-enhancement.ape-project-editor .form-field{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;font-size:14px;font-weight:500}
#annual-planning-enhancement.ape-project-editor .ape-project-wide{grid-column:1/-1}
#annual-planning-enhancement.ape-project-editor textarea,#annual-planning-enhancement.ape-project-editor input{box-sizing:border-box;width:100%;line-height:1.6;padding:10px 12px;font-weight:400}
#annual-planning-enhancement.ape-project-editor textarea{resize:vertical;min-height:72px}
#annual-planning-enhancement.ape-project-editor .ape-project-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:16px;border-top:1px solid #dfe6ee}
#annual-planning-enhancement.ape-project-editor .ape-project-actions button{min-height:40px}
#annual-planning-enhancement.ape-project-editor #ape-project-save{background:#2456c5;border-color:#2456c5;color:#fff}
@media(max-width:600px){#annual-planning-enhancement.ape-project-editor .ape-project-fields{grid-template-columns:1fr}}
#annual-planning-enhancement.ape-workload .ape-body{display:flex;flex-direction:column;gap:20px}
#annual-planning-enhancement.ape-workload .ape-body>p{margin:0;line-height:1.6}
#annual-planning-enhancement.ape-workload .ape-body>p+p{margin-top:-12px;color:#596b80;font-size:13px}
#annual-planning-enhancement.ape-workload .form-field{display:flex;flex-direction:column;gap:8px;width:100%;margin:0}
#annual-planning-enhancement.ape-workload #ape-workload-basis{display:block;box-sizing:border-box;width:100%;min-height:120px;resize:vertical;line-height:1.7;padding:12px}
#annual-planning-enhancement.ape-workload .ape-workload-actions{display:flex;justify-content:flex-end;border-top:1px solid #dfe6ee;padding-top:16px}
#annual-planning-enhancement.ape-workload #ape-workload-save{background:#2456c5;border-color:#2456c5;color:white;min-height:40px}
#annual-planning-enhancement.ape-workload .team-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#annual-planning-enhancement.ape-workload .team-months label{display:flex;flex-direction:column;gap:6px;min-width:0}
#annual-planning-enhancement.ape-workload .team-months input{box-sizing:border-box;width:100%;min-width:0}
@media(max-width:600px){#annual-planning-enhancement.ape-workload .team-months{grid-template-columns:repeat(3,minmax(0,1fr))}}
