#accounting-automation-dialog{width:min(1180px,96vw);max-height:94vh;padding:24px;border:1px solid #cbded6;border-radius:16px;color:#243e34;background:#fffefb;overflow:auto}
#accounting-automation-dialog::backdrop{background:#163f3266}
#accounting-automation-dialog header,.aa-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#accounting-automation-dialog .aa-heading{position:sticky;top:-24px;background:#fffefb;z-index:2;padding:16px 0;border-bottom:1px solid #dbe5df}
#accounting-automation-dialog section,#accounting-automation-dialog details{border:1px solid #dbe5df;border-radius:10px;padding:16px;margin-top:12px}
#accounting-automation-dialog label{display:block;margin:10px 0;font-weight:600}
#accounting-automation-dialog textarea,#accounting-automation-dialog select{width:100%;padding:10px;border:1px solid #cbded6;border-radius:8px}
#accounting-automation-dialog textarea{min-height:80px}
#accounting-automation-dialog table{width:100%;border-collapse:collapse;text-align:left}
#accounting-automation-dialog td,#accounting-automation-dialog th{padding:12px 8px;border-bottom:1px solid #e0e8e3;vertical-align:top}
#accounting-automation-dialog small{display:block;color:#52685c;margin-top:4px}
#accounting-automation-dialog summary{cursor:pointer;font-weight:700}
#accounting-automation-dialog input[type=checkbox]{width:18px;height:18px;min-height:0;vertical-align:middle;margin-right:6px}
#accounting-automation-dialog .aa-blocker{color:#a22a21}
#accounting-automation-dialog .aa-warning{color:#8b5b11}
#aa-feedback{padding:12px;background:#ecf6f1;border-radius:8px;min-height:44px}
.aa-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.aa-scroll{overflow-x:auto}
#accounting-automation-dialog .aa-heading{gap:12px}
.aa-check-bar{display:flex;align-items:center;gap:16px;width:100%;padding-top:8px}
#aa-check{flex-shrink:0;min-width:132px}
#aa-check-status{display:flex;align-items:center;gap:12px;flex:1;padding:12px 14px;border-radius:10px;background:#f1f5f3;min-width:0}
#aa-check-status strong,#aa-check-status span:not(.aa-check-symbol){display:block}
#aa-check-status div>span{font-size:13px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}
#aa-check-status[data-tone=pending]{background:#eef5fb;color:#244e70}
#aa-check-status[data-tone=complete]{background:#e9f5ee;color:#175e42}
#aa-check-status[data-tone=error]{background:#fff0eb;color:#923c26}
.aa-check-symbol{flex-shrink:0;width:22px;height:22px;display:grid;place-items:center;font-size:20px;font-weight:700}
.aa-check-spinner{border:3px solid #b7cddd;border-top-color:#244e70;border-radius:50%;animation:aa-check-turn 1s linear infinite}
@keyframes aa-check-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.aa-check-spinner{animation:none}}
@media(max-width:680px){.aa-check-bar{align-items:stretch;flex-direction:column;gap:8px}#aa-check-status{padding:10px}#aa-check{align-self:flex-start}}
@media(max-width:680px){#accounting-automation-dialog{padding:14px}.aa-grid{grid-template-columns:1fr}#accounting-automation-dialog .aa-heading{top:-14px}#accounting-automation-dialog td,#accounting-automation-dialog th{padding:8px 5px}}
