.panel-feedback-stack{position:fixed;z-index:1400;top:calc(94px + env(safe-area-inset-top,0px));right:max(22px,env(safe-area-inset-right,0px));width:min(450px,calc(100vw - 32px));max-height:calc(100dvh - 190px);overflow:auto;pointer-events:none;display:grid;gap:12px}
.panel-feedback-card{pointer-events:auto;display:grid;grid-template-columns:40px minmax(0,1fr) 32px;gap:12px;align-items:start;padding:20px;border:1px solid #635046;border-radius:16px;background:#18171c;color:#f7f2ed;box-shadow:0 16px 54px #0009;font-size:15px;line-height:1.55;animation:panel-feedback-in .2s ease-out}
.panel-feedback-card strong{display:block;font-size:16px;line-height:1.4}.panel-feedback-card p{margin:7px 0 0;color:#ded5df;overflow-wrap:anywhere}.panel-feedback-card button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #ffffff20;border-radius:9px;background:#ffffff08;color:#e9e1e8;cursor:pointer}.panel-feedback-card button:hover{background:#ffffff15}.panel-feedback-card button:focus-visible{outline:2px solid #ffa652;outline-offset:3px}
.panel-feedback-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#ffffff08}.panel-feedback-card.is-error{border-color:#bf647b}.panel-feedback-card.is-error .panel-feedback-icon{color:#ff9ab2;background:#d44a6b19}.panel-feedback-card.is-success{border-color:#48785f}.panel-feedback-card.is-success .panel-feedback-icon{color:#7ce4b5;background:#63e5ae14}
.profile-field{min-width:0;scroll-margin:120px}.profile-field-invalid{outline:2px solid #e06c87;outline-offset:7px;border-radius:11px;background:#dc456d09}.profile-field-invalid input[aria-invalid=true],.profile-field-invalid textarea[aria-invalid=true],.neva-upload.invalid-upload{border-color:#ec819b!important}.profile-field-error-text{display:block;margin:10px 0 0;color:#ffa9bd;font-size:14px!important;line-height:1.6;overflow-wrap:anywhere}.profile-form-invalid{outline:2px solid #e06c87;outline-offset:8px;border-radius:14px}.neva-upload-field{min-width:0}.profile-field .neva-upload{width:100%;margin-bottom:0}
.rule-fields>.profile-wide-field{grid-column:1/-1}.profile-issue-target{outline:2px solid #e06c87;outline-offset:6px;border-radius:12px;scroll-margin:120px}
.invalid-module-settings{outline:2px solid #e06c87;outline-offset:8px;border-radius:16px}.config-validation-target{scroll-margin:120px}.bot-profile-form .profile-fields{gap:24px}.bot-profile-form .profile-field+.panel-button{margin-top:20px}
@keyframes panel-feedback-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){.panel-feedback-stack{top:calc(78px + env(safe-area-inset-top,0px));right:16px}.panel-feedback-card{padding:16px;grid-template-columns:32px minmax(0,1fr) 30px;gap:10px}.panel-feedback-icon{width:32px;height:32px}.panel-feedback-card strong{font-size:15px}.panel-feedback-card p{font-size:14px}}
@media(prefers-reduced-motion:reduce){.panel-feedback-card{animation:none}}

/* Compact protection settings and precise, accessible field validation. */
.protection-fold.form-card{padding:0;overflow:visible}
.protection-fold-heading{display:flex;align-items:center;gap:16px;list-style:none;cursor:pointer;padding:24px;min-height:108px;border-radius:18px}
.protection-fold-heading::-webkit-details-marker{display:none}
.protection-fold-heading:focus-visible,.protection-explainer summary:focus-visible{outline:2px solid #ffa342;outline-offset:3px}
.protection-fold-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border:1px solid #8b633b66;border-radius:13px;background:#ffa3420b;color:#ffb363}
.protection-fold-copy{display:grid;gap:7px;flex:1;min-width:0}
.protection-fold-copy>strong{font-size:20px;line-height:1.35;color:#f5f2f7}
.protection-fold-copy>span{font-size:14px;line-height:1.6;color:#b9c2d3}
.protection-state{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #676c7b66;border-radius:999px;background:#8c95a10b;color:#ccd1dc;font-size:13px;line-height:1.4;white-space:nowrap}
.protection-state>span{width:7px;height:7px;border-radius:50%;background:currentColor}
.protection-state.on{color:#7ce4bc;border-color:#55be9444;background:#55be940b}
.protection-state.warning{color:#ffd08c;border-color:#e8a44e44;background:#e8a44e0b}
.protection-fold-chevron{flex-shrink:0;color:#afb7c7;transition:transform .2s}
.protection-fold[open]>.protection-fold-heading .protection-fold-chevron{transform:rotate(180deg)}
.protection-fold-body{padding:0 24px 24px;border-top:1px solid #80869b22}
.protection-state-note{display:flex;gap:12px;margin:20px 0;padding:16px;border-radius:12px;background:#8593a00b;border:1px solid #8593a022;color:#ccd1dc}
.protection-state-note.on{color:#9ae2c8;border-color:#55be9433}
.protection-state-note.warning{color:#ffd7a0;border-color:#e8a44e33}
.protection-state-note>svg{flex-shrink:0;margin-top:2px}
.protection-state-note strong{font-size:14px}.protection-state-note p{margin:6px 0 0;font-size:14px;line-height:1.65}
.protection-explainer{margin:18px 0;border:1px solid #7b809433;border-radius:12px;background:#090b0f44}
.protection-explainer summary{padding:15px 18px;font-size:15px;font-weight:600;cursor:pointer;color:#ffbd7d}
.protection-explainer>div{padding:0 18px 18px;font-size:14px;line-height:1.8;color:#bec7d8}
.protection-explainer ul{padding-left:20px;margin-top:0}.protection-explainer li+li{margin-top:10px}
.protection-fold .neva-toggle-row small{display:block;font-size:13px;line-height:1.65;margin-top:7px;color:#b4bfce}
.module-content .config-control-invalid{border-color:#f68ca5!important;outline:2px solid #f68ca577!important;outline-offset:2px;scroll-margin:150px}
.config-field-error{display:block;flex-basis:100%;width:100%;margin:9px 0 14px;font-size:14px;line-height:1.65;color:#ffb0bf;font-weight:500;white-space:normal}
.config-issue-hint{display:block;font-size:14px;line-height:1.6;margin-top:5px;color:#d9bdc6}
.config-validation-summary:focus{outline:2px solid #f68ca577;outline-offset:3px}
@media(max-width:760px){.protection-fold-heading{flex-wrap:wrap;gap:12px;padding:18px}.protection-fold-copy{flex-basis:calc(100% - 90px)}.protection-fold-copy>strong{font-size:18px}.protection-fold-heading>.protection-state{margin-left:58px;order:3;white-space:normal}.protection-fold-chevron{margin-left:auto}.protection-fold-body{padding:0 18px 18px}}
@media(prefers-reduced-motion:reduce){.protection-fold-chevron{transition:none}}

.protection-fold-copy>.protection-draft-hint{font-size:12px;line-height:1.4;color:#ffc986}.protection-fold-heading>.protection-fold-chevron{transform:rotate(0deg)}
