/* v2.37 Additive CSS. Scoped to Crestview add-on where possible. */
:root { --cv-cream:#f6edd8; --cv-dark:#102c3d; --cv-gold:#d4aa62; }
.cv-side-scroll { overflow-y:auto !important; max-height:calc(100dvh - 28px) !important; scrollbar-width:thin; overscroll-behavior:contain; }
.cv-side-heading { display:flex !important; flex-flow:row wrap !important; align-items:center !important; gap:5px !important; min-height:20px !important; }
.cv-connect-indicator { display:inline-flex; align-items:center;gap:5px;white-space:nowrap;font:600 10px/1.2 system-ui,sans-serif;color:#efe2b9; }
.cv-dot { display:inline-block;width:9px;height:9px;flex-shrink:0;border-radius:50%;box-shadow:0 0 0 2px #102c3d; }
.cv-green { background:#43bf70; } .cv-yellow { background:#f0bc48; } .cv-red { background:#da5249; }
.cv-side-library { display:block;width:calc(100% - 20px);margin:10px;border:1px solid #dfc08d;color:#fff;background:#1a3c4d;padding:10px;cursor:pointer;text-align:left; }
button, [role="button"],input[type="submit"] { transition:transform .1s ease,filter .1s ease,box-shadow .12s ease; }
button:active,[role="button"]:active,input[type="submit"]:active,.cv-pressed { transform:translateY(1px) scale(.985); filter:brightness(.9); box-shadow:inset 0 2px 4px #0002; }
button:focus-visible,[role="button"]:focus-visible,input[type="submit"]:focus-visible { outline:2px solid #c68e35;outline-offset:2px; }
#cv-addon-live { position:fixed;z-index:250000;right:18px;bottom:18px;max-width:360px;padding:12px 16px;pointer-events:none;background:#173c2c;color:#fff;font:13px/1.5 system-ui,sans-serif;border:1px solid #a7d4b9;box-shadow:0 8px 25px #0003; }
#cv-addon-live:empty { display:none; } #cv-addon-live.cv-bad {background:#5b2526;}
.cv-modal-layer { position:fixed;inset:0;z-index:200000;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:20px;background:#091c28b8; }
.cv-modal { width:min(960px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;background:#faf0dc;color:#173143;padding:20px;border:1px solid #b69255;box-shadow:0 12px 50px #0005;font:13px/1.45 system-ui,sans-serif; }
.cv-modal-head { display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #d2b98a; }
.cv-modal h2 {font:700 25px/1.1 Georgia,serif;margin:4px 0 16px;}
.cv-modal button,.cv-consent button { cursor:pointer;background:#123346;color:#fff;padding:8px 12px;border:1px solid #c5a372;font:600 12px system-ui,sans-serif; }
.cv-modal button:disabled,.cv-consent button:disabled {opacity:.6;cursor:wait;}
.cv-muted {color:#665d53;}
.cv-tools {display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0;}
.cv-field {display:grid;gap:5px;min-width:140px;flex:1;font-size:12px;}
.cv-field input,.cv-field select,.cv-field textarea {color:#152d3c;background:#fff9eb;border:1px solid #bb9e6a;padding:9px;min-width:0;max-width:100%;font:13px system-ui,sans-serif;}
.cv-library-items{border:1px solid #d7bb91;max-height:310px;overflow:auto;background:#fff9eb;}
.cv-library-row{padding:10px 12px;border-bottom:1px solid #ead6b0;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.cv-library-row small{display:block;margin-top:3px;color:#5c6059;}
.cv-create-area{border-top:1px solid #d7bb91;margin-top:16px;padding-top:12px;}
.cv-create-area summary{cursor:pointer;font-weight:700;padding:8px 0;}
.cv-upload-form{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:10px 0;border-bottom:1px dotted #d7bb91;}
.cv-consent{margin:18px 0;padding:18px;border:1px solid #c5a372;background:#fff7e7;color:#173143;max-width:850px;}
.cv-consent h3{margin:0 0 8px;font:700 20px Georgia,serif;}
.cv-consent p{font-size:13px;line-height:1.55;}
.cv-consent-check{display:flex;gap:9px;align-items:start;margin-bottom:12px;font-size:13px;}
.cv-consent-check input{width:18px;height:18px;}
@media(max-width:650px){.cv-modal-layer{padding:4px}.cv-modal{padding:12px;max-height:calc(100dvh - 8px)}.cv-library-row{align-items:start;flex-direction:column}.cv-side-scroll{max-height:100dvh!important}}

/* v2.36: compact connection lamp alongside the Admin heading */
.cv-side-heading{min-height:20px!important;flex-wrap:nowrap!important;justify-content:space-between!important;padding:0!important}
.cv-connect-indicator{margin-left:auto;flex:0 0 11px;width:11px;height:11px;justify-content:center;overflow:visible}
.cv-connect-indicator .cv-connect-short{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.cv-connect-indicator .cv-dot{width:10px;height:10px;box-shadow:0 0 0 1px rgba(255,255,255,.3)}
.cv-side-scroll{scrollbar-gutter:stable;overflow-y:scroll!important;overscroll-behavior:contain}
.cv-side-library{margin:4px 8px 5px!important;width:calc(100% - 16px);padding:8px!important;font-size:12px}
.cv-chat-link{display:inline-block;background:#103547;color:#fff!important;border:1px solid #bf9b65;text-decoration:none;padding:8px 11px;font:600 12px system-ui,sans-serif;white-space:nowrap}
.cv-chat-link:hover{background:#23536c}

/* v2.40.1: feedback consent closed initially, with accessible native disclosure. */
.cv-consent{padding:0!important;overflow:hidden;max-width:850px}
.cv-consent-summary{list-style-position:inside;cursor:pointer;font:700 18px/1.35 Georgia,serif;color:#173143;padding:13px 16px;user-select:none}
.cv-consent-summary:hover{background:#f5e8d1}
.cv-consent-summary:focus-visible{outline:2px solid #be914a;outline-offset:-3px}
.cv-consent-content{padding:0 16px 16px;border-top:1px solid #e4cfaa}
.cv-consent:not([open]){padding:0!important}
