/* V0.6 functional layer - supplementary, no redesign */
.module-dialog{width:min(790px,calc(100vw - 28px));max-height:min(90vh,950px);overflow:auto;background:#0c1c31;color:#e8f5ff;border:1px solid #477397;border-radius:25px;box-shadow:0 32px 100px #000b;padding:26px;font:inherit;color-scheme:dark}
.module-dialog::backdrop{background:rgba(2,9,21,.78);backdrop-filter:blur(9px)}
.module-dialog-head{display:flex;gap:18px;align-items:flex-start;justify-content:space-between}
.module-dialog h2{font-size:clamp(23px,3vw,32px);margin:6px 0 0;color:#fff}
.module-intro,.module-hint,.module-footnote{color:#b4cae1;line-height:1.6;font-size:14px}
.module-intro{margin:16px 0 22px}.module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.module-item{border:1px solid #375772;border-radius:15px;background:#152c47;padding:17px;display:flex;flex-direction:column;gap:12px;min-width:0}
.module-item h3{font-size:17px;margin:0;color:#f5faff}.module-item p{color:#b6c9e0;font-size:13px;line-height:1.5;margin:0;flex:1}
.module-item-head{display:flex;justify-content:space-between;gap:8px;align-items:start}.module-tag{font-size:11px;color:#f2c889;border:1px solid #7d6549;padding:5px 9px;border-radius:99px;white-space:nowrap}.module-tag.ready{color:#a1e6cc;border-color:#438a7a}
.module-link{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid #6eaeef;background:#244665;color:#ecfaff;border-radius:11px;padding:11px 15px;font:inherit;min-height:44px;text-decoration:none;cursor:pointer}
.module-link:hover{background:#31618b}.module-link:focus-visible,.module-dialog button:focus-visible,.module-settings input:focus-visible{outline:3px solid #9ddaff;outline-offset:3px}
.module-link[disabled]{opacity:.62;cursor:not-allowed;border-color:#4c6378}.module-section-title{font-weight:750;color:#a8e8ff;letter-spacing:.07em;text-transform:uppercase;font-size:12px;margin:25px 0 10px}
.runtime-status{border:1px solid #35526b;border-radius:12px;padding:13px 16px;line-height:1.85;font-size:13px;color:#c3d7ea;background:#12273d}
.module-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:16px}.module-dialog .rml-pill{min-height:44px}
.module-settings{border:1px solid #496783;border-radius:15px;padding:17px;margin-top:18px;background:#10253b}.module-settings[hidden]{display:none}.module-field{display:grid;gap:6px;margin:13px 0}.module-field label{color:#e6f3ff;font-size:13px;font-weight:650}.module-field input{width:100%;min-height:44px;background:#09182a;color:#fff;border:1px solid #567b9b;border-radius:10px;padding:10px 12px;font:inherit;box-sizing:border-box}
.module-field small{color:#aac1d8}.module-footnote{font-size:12px;margin:22px 0 0}.module-settings #settingsFeedback{font-size:13px;color:#f0c18a;line-height:1.5}
body:has(#app[data-rml-theme="light"]) .module-dialog{background:#eaf4ff;color:#142942;border-color:#7c9fba;color-scheme:light}
body:has(#app[data-rml-theme="light"]) .module-dialog h2{color:#112944}
body:has(#app[data-rml-theme="light"]) .module-item,body:has(#app[data-rml-theme="light"]) .module-settings,#app[data-rml-theme="light"] .runtime-status{background:#d7e9f9;border-color:#90b2ce;color:#233f5c}
body:has(#app[data-rml-theme="light"]) .module-item h3,body:has(#app[data-rml-theme="light"]) .module-field label{color:#122944}
body:has(#app[data-rml-theme="light"]) .module-intro,body:has(#app[data-rml-theme="light"]) .module-hint,body:has(#app[data-rml-theme="light"]) .module-footnote,body:has(#app[data-rml-theme="light"]) .module-item p,body:has(#app[data-rml-theme="light"]) .module-field small{color:#294a68}
body:has(#app[data-rml-theme="light"]) .module-field input{background:white;color:#142942}
@media(max-width:620px){.module-dialog{padding:17px;border-radius:17px}.module-list{grid-template-columns:1fr}.module-dialog-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.module-dialog::backdrop{backdrop-filter:none}.module-link{transition:none}}
