
/* ReguSpace C28 — central reusable AI deepening UI. */
.reguspace-ai-action{--ai-border:#cfc5df;--ai-bg:#faf8fd;--ai-text:#4f3f70}
.reguspace-ai-action .regu-action-icon,.reguspace-ai-action svg{stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reguspace-ai-modal{position:fixed;inset:0;z-index:120000;background:rgba(18,27,38,.66);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}
.reguspace-ai-modal[hidden]{display:none!important}
.reguspace-ai-dialog{position:relative;width:min(720px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid #d9e2e8;border-radius:18px;box-shadow:0 20px 70px rgba(15,23,42,.28);padding:22px;color:#263746;font-family:Inter,system-ui,Segoe UI,Arial,sans-serif}
.reguspace-ai-close{position:absolute;right:12px;top:10px;width:38px;height:38px;border:1px solid #d8e0e6;border-radius:999px;background:#fff;color:#263746;font:700 24px/1 system-ui;cursor:pointer}
.reguspace-ai-dialog h2{margin:0 46px 12px 0;font-family:Georgia,"Times New Roman",serif;font-size:27px;line-height:1.1;color:#173b5f}
.reguspace-ai-intro{margin:0 0 12px;color:#526777;font-size:13px;line-height:1.5}
.reguspace-ai-usertext{width:100%;min-height:170px;resize:vertical;box-sizing:border-box;border:1px solid #ccd9e2;border-radius:12px;background:#fbfdff;color:#263746;padding:12px 13px;font:14px/1.52 Inter,system-ui,Segoe UI,Arial,sans-serif}
.reguspace-ai-note{margin:10px 0 12px;color:#667985;font-size:12px;line-height:1.45}
.reguspace-ai-full{margin:8px 0 12px;border:1px solid #dbe4e9;border-radius:12px;background:#f8fafb}
.reguspace-ai-full summary{cursor:pointer;padding:10px 12px;font-size:12px;font-weight:800;color:#36536d}
.reguspace-ai-full pre{margin:0;padding:0 12px 12px;white-space:pre-wrap;font:12px/1.5 Inter,system-ui,Segoe UI,Arial,sans-serif;color:#415766}
.reguspace-ai-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.reguspace-ai-copy{border:1px solid #17698d;border-radius:10px;background:#17698d;color:#fff;padding:9px 13px;font:800 13px/1.2 Inter,system-ui,Segoe UI,Arial,sans-serif;cursor:pointer}
.reguspace-ai-status{min-height:18px;color:#2d7659;font-size:12px;font-weight:750}
body.reguspace-ai-open{overflow:hidden}
.reguspace-ai-theme-ui{margin-top:8px}
.reguspace-ai-theme-ui .reguspace-ai-usertext{min-height:150px}
.reguspace-ai-theme-example{margin:12px 0 0;padding:10px 12px;border-left:3px solid #cfdde7;background:#f8fbfd;border-radius:8px;color:#435d70;font-size:12.5px;line-height:1.5}
.reguspace-ai-theme-example strong{display:block;margin-bottom:3px;color:#2f4e66}
@media(max-width:800px){
 .reguspace-ai-dialog{padding:18px 14px 15px;max-height:94vh;border-radius:15px}
 .reguspace-ai-dialog h2{font-size:23px}
 .reguspace-ai-usertext{font-size:16px;min-height:190px}
 .reguspace-ai-copy{min-height:44px}
}
@media print{.reguspace-ai-modal,.reguspace-ai-action{display:none!important}}

/* C120R8: shared AI helper microcopy is deliberately dark on the modal's white paper. */
@media screen {
 html[data-reguspace-theme="dark"] .reguspace-ai-dialog .reguspace-ai-note {
   color:#40566a!important;font-size:13px;line-height:1.5;
 }
}
