/* Unified owner inspector for the canonical CMS chat masters. No audit/debug banners. */
.cge-editor{--cge-border:#494b46;--cge-ink:#f3f0e9;--cge-accent:#c7ac75;
 color:var(--cge-ink);font:400 13px/1.5 'Hanken Grotesk',Inter,system-ui,sans-serif;
 background:#151917;border:1px solid var(--cge-border);border-radius:8px;min-width:0;width:100%;padding:16px;box-sizing:border-box}
.cge-editor *{box-sizing:border-box}
.cge-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px}
.cge-header strong{font-size:17px;font-weight:650}
.cge-status{font-size:12px;color:#b8c5b2;max-width:45%;text-align:right}
.cge-status[data-error="1"]{color:#ffb6ae}
.cge-devices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:3px;margin:0 0 14px;background:#1a1e1b;border:1px solid #3b423c;border-radius:6px}
.cge-editor .cge-button{appearance:none;min-height:36px;border:1px solid #4b5249;border-radius:5px;padding:7px 10px;background:#222823;color:#f3f0e9;font:inherit;cursor:pointer}
.cge-editor .cge-button:hover,.cge-editor .cge-button:focus-visible{border-color:var(--cge-accent);outline:none}
.cge-editor .cge-device{font-size:12px;border:0;background:transparent;min-width:0}
.cge-editor .cge-device[aria-pressed="true"]{background:#403b31;color:#f1d59d}
.cge-editor .cge-primary{background:var(--cge-accent);color:#171717;font-weight:700;border-color:var(--cge-accent)}
.cge-editor .cge-button:disabled{opacity:.42;cursor:default}
.cge-preview{display:flex;flex-direction:column;gap:8px;min-width:0;margin-bottom:16px}
.cge-stage{height:410px;position:relative;overflow:hidden;border:1px solid #3e4a40;border-radius:7px;background:linear-gradient(150deg,#242922,#101412)}
.cge-stage[data-device="mobile"]{max-width:390px;margin-inline:auto;width:100%}
.cge-launch{position:absolute;z-index:2;display:grid;place-items:center;min-height:44px;background:#141817;border:1px solid var(--cge-accent);color:#f3f0e9;border-radius:0;padding:0;box-shadow:0 4px 16px #0005}
.cge-launch svg{width:26px;height:26px}
.cge-chat-window{position:absolute;z-index:1;bottom:110px;max-height:calc(100% - 90px);overflow:auto;border:1px solid #555b56;padding:16px;box-shadow:0 4px 16px #0008;font-size:13px}
.cge-chat-window strong{font-family:Georgia,serif;font-size:20px}
.cge-chat-window p{margin:8px 0;line-height:1.5}
.cge-chat-line{border:1px solid #5c635e;border-radius:5px;padding:7px 10px;color:#bfc3ba}
.cge-section-title{grid-column:1/-1;color:#e3c18d;font-size:11px;letter-spacing:.07em;margin:8px 0 2px;font-weight:650}
.cge-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;margin-bottom:16px}
.cge-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.cge-field span{font-size:12px;color:#d4d7cf}
.cge-field input:not([type="checkbox"]),.cge-field select{min-width:0;width:100%;height:40px;padding:6px 9px;border:1px solid #4b5249;border-radius:5px;background:#222823;color:#f3f0e9;font:inherit}
.cge-field input[type="checkbox"]{width:22px;height:22px;margin:5px 0;accent-color:#c7ac75}
.cge-field input[type="color"]{padding:3px;width:72px}
.cge-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;border-top:1px solid var(--cge-border);padding-top:14px}
@media(max-width:390px){.cge-editor{padding:12px}.cge-fields{grid-template-columns:1fr}.cge-header{align-items:flex-start}}
.cge-text-field{grid-column:1/-1}
.cge-text-field textarea,.cge-footer-editor textarea{min-width:0;width:100%;min-height:72px;resize:vertical;padding:9px 10px;border:1px solid #4b5249;border-radius:5px;background:#222823;color:#f3f0e9;font:inherit}
.cge-footer-stage{height:170px}
.cge-footer-mini{position:absolute;display:flex;flex-direction:column;gap:4px;width:min(320px,calc(100% - 24px));padding:12px 16px;border:1px solid #555b56;background:#141817;color:#d0d0cc;overflow-wrap:anywhere;line-height:1.4;border-radius:4px}
.cge-footer-mini strong{color:#c7ac75;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.cge-footer-mini span{font-size:12px}
.cle-global-chat-inspector{padding:10px;gap:0}

/* V6.2: inspect the same canonical configuration in a readable viewport. */
.cge-stage[data-device="tablet"]{max-width:768px;margin-inline:auto;width:100%}
.cge-stage[data-device="mobile"]{max-width:390px;margin-inline:auto;width:100%}
.cge-preview-mini{position:absolute;bottom:8px;left:8px;right:8px;height:40px;border-radius:6px;border:1px solid #49534b;background:#242a25;opacity:.65}
.cge-preview-mini:before{content:'';position:absolute;left:12px;top:15px;width:25%;height:7px;border-radius:5px;background:#a5a992;opacity:.55}
.cge-preview-mini:after{content:'';position:absolute;right:12px;top:15px;width:22%;height:7px;border-radius:5px;background:#a5a992;opacity:.35}
.cge-preview-badge{position:absolute;right:-6px;top:-6px;min-width:20px;height:20px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:var(--cge-accent);color:#141817;border:2px solid #111712;font-size:11px;font-weight:750;line-height:1}
.cge-preview-disabled{position:absolute;inset:30px 12px 64px;display:grid;place-items:center;color:#b5c3b4;font-size:13px}
.cge-chat-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.cge-chat-header>span{font-size:20px;line-height:1}
.cge-chat-window{min-height:110px;overflow:hidden;overflow-wrap:anywhere;box-shadow:0 12px 28px #0008}
.cge-chat-window>p{max-height:72px;overflow:hidden}
.cge-stage .cge-launch:hover{box-shadow:0 4px 16px #0005}

.cge-editor .cge-field input[type="color"]{width:72px;height:40px;cursor:pointer}
.cge-editor .cge-field input[type="checkbox"]{cursor:pointer}
.cge-editor .cge-section-title{grid-column:1/-1}
@media(max-width:540px){.cge-stage{height:365px}.cge-chat-window{padding:10px;max-width:calc(100% - 16px)}.cge-fields{grid-template-columns:1fr}}

/* V6.3: preview is a master-specific rendering of the published widget. */
.cge-stage[data-kind="launcher"]{height:310px;background:#0e0e0e;border-color:#393c37}
.cge-stage[data-kind="panel"]{height:360px;background:#0e0e0e;display:flex;align-items:center;justify-content:center}
.cge-real-widget-preview .cge-launch{position:absolute;display:grid;place-items:center;box-sizing:border-box;min-height:44px;
border:1px solid #c7ac75;border-radius:0;background:#141817;color:#f3f0e9;padding:0;box-shadow:0 4px 16px #0005;z-index:2}
.cge-real-widget-preview .cge-launch svg{width:25px;height:25px;display:block}
.cge-stage[data-kind="launcher"] .cge-preview-mini{height:52px;bottom:0;left:0;right:0;border-left:0;border-right:0;border-bottom:0;border-radius:0;
background:#111615;opacity:1}
.cge-stage[data-kind="launcher"] .cge-preview-mini:before,.cge-stage[data-kind="launcher"] .cge-preview-mini:after{display:none}
.cge-stage[data-kind="panel"] .cge-chat-window.cge-panel-only{position:relative;inset:auto;max-width:calc(100% - 24px);
min-height:150px;max-height:calc(100% - 24px);margin:auto;box-shadow:0 8px 24px #0006;overflow:auto;box-sizing:border-box}
.cge-panel-only .cge-chat-header strong{font-family:'Playfair Display',Georgia,serif;font-size:23px}
.cge-panel-only .cge-chat-line{min-height:42px}
.cge-stage[data-kind="launcher"] .cge-preview-disabled{inset:0 0 52px}
@media(max-width:540px){.cge-stage[data-kind="launcher"]{height:280px}.cge-stage[data-kind="panel"]{height:315px}}
