/* V6.9: Admin inspector uses the SAME CMS Noir tokens, not visitor-chat colors.
   No public-site, public-chat, Live Editor or mini-footer selectors are altered. */
.cv68-editor{
  --cv68-bg:#171515;--cv68-inset:#0e0e0e;--cv68-ink:#e5e2e1;
  --cv68-muted:#bda4a0;--cv68-outline:rgba(92,64,63,.7);
  --cv68-gold:#e7c08e;--cv68-red:#bc002d;--cv68-red-ink:#ffc9c8;
  background:var(--cv68-bg)!important;color:var(--cv68-ink)!important;
  border:1px solid var(--cv68-outline)!important;border-radius:10px!important;
  padding:clamp(12px,1.3vw,20px)!important;width:100%;min-width:0;
  font:400 13px/1.5 'Hanken Grotesk',Inter,system-ui,sans-serif;
}
.cv68-editor *, .cv68-editor *::before,.cv68-editor *::after{box-sizing:border-box}
.cv68-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  border-bottom:1px solid var(--cv68-outline);padding-bottom:14px;margin-bottom:12px}
.cv68-title h3{margin:5px 0 0;color:var(--cv68-ink);font:650 18px/1.3 'Hanken Grotesk',Inter,sans-serif}
.cv68-kicker,.cv68-section-tag,.cv68-field-label,.cv68-group h4{
  font:650 10px/1.45 'Geist Mono',ui-monospace,monospace;letter-spacing:.095em;text-transform:uppercase}
.cv68-kicker,.cv68-section-tag,.cv68-group h4{color:var(--cv68-gold)}
.cv68-status{min-width:0;margin:0;color:#e7c08e;font-size:12px;text-align:right;overflow-wrap:anywhere}
.cv68-status[data-error="1"]{color:#ffb3b3}
.cv68-preview{min-width:0;margin-bottom:14px}
.cv68-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cv68-switcher{display:flex;gap:4px;padding:3px;background:#100e0e;
  border:1px solid var(--cv68-outline);border-radius:7px}
.cv68-editor .cv68-device{appearance:none;min-height:38px;min-width:64px;
  padding:7px 12px;border:1px solid transparent;border-radius:5px;
  background:transparent;color:#dbcbca;font:550 12px/1.3 'Hanken Grotesk',sans-serif;cursor:pointer}
.cv68-editor .cv68-device[aria-pressed="true"]{border-color:rgba(231,192,142,.6);background:#352925;color:var(--cv68-gold)}
.cv68-editor .cv68-device:hover,.cv68-editor .cv68-device:focus-visible{border-color:var(--cv68-gold);outline:0}
.cv68-description{color:var(--cv68-muted);font-size:12px;line-height:1.45;margin:7px 0 10px}
.cv68-stage-host{position:relative;display:flex;justify-content:center;align-items:start;min-width:0;
  padding:12px;background:#100e0e;border:1px solid var(--cv68-outline);border-radius:8px;overflow:hidden}
.cv68-stage{position:relative;flex:0 0 auto;overflow:hidden;border:1px solid rgba(231,192,142,.3);
  background:#0e0e0e;box-shadow:0 8px 24px #0008;min-height:200px}
.cv68-iframe{display:block;position:absolute;inset:0;border:0;max-width:none;min-width:0;max-height:none;
  background:#0e0e0e}
.cv68-preview-status{position:absolute;inset:12px;display:grid;place-items:center;
  padding:20px;text-align:center;background:rgba(14,14,14,.91);color:var(--cv68-muted);z-index:2;font-size:12px}
.cv68-preview-status[data-error="1"]{color:#ffb3b3}
.cv68-preview-status[hidden]{display:none!important}
.cv68-config-groups{display:grid;gap:12px}
.cv68-group{padding:14px;border:1px solid var(--cv68-outline);border-radius:8px;background:#120f0f}
.cv68-group h4{margin:0 0 6px}
.cv68-group-note{margin:0 0 12px;color:#b29c97;font-size:11px}
.cv68-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px}
.cv68-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.cv68-field-label{color:var(--cv68-muted)}
.cv68-editor .cv68-field input:not([type="checkbox"]),.cv68-editor .cv68-field textarea,.cv68-editor .cv68-field select{
  width:100%;min-width:0;min-height:41px;border:1px solid var(--cv68-outline);border-radius:5px;
  background:#0e0d0d;color:var(--cv68-ink);padding:9px 10px;font:500 13px/1.4 'Hanken Grotesk',sans-serif}
.cv68-editor .cv68-field textarea{min-height:68px;resize:vertical}
.cv68-editor .cv68-field input:focus-visible,.cv68-editor .cv68-field textarea:focus-visible,.cv68-editor .cv68-field select:focus-visible{
  outline:1px solid var(--cv68-gold);outline-offset:1px;border-color:var(--cv68-gold)}
.cv68-color-row{display:flex;align-items:center;gap:9px}
.cv68-color-row input[type="color"]{width:53px;height:40px;padding:3px;flex:none;cursor:pointer}
.cv68-color-row output{font:500 12px ui-monospace,monospace;color:#d0b4a9}
.cv68-toggle{display:flex;flex-direction:row;align-items:center;gap:11px;min-height:41px;position:relative}
.cv68-toggle>input[type="checkbox"]{position:absolute;opacity:0;width:42px;height:26px;cursor:pointer}
.cv68-switch{position:relative;width:42px;height:24px;flex:none;border:1px solid #6f5552;border-radius:14px;background:#282021;pointer-events:none}
.cv68-switch::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#c9b8b2;transition:transform .16s ease}
.cv68-toggle input:checked + .cv68-switch{border-color:#e09aab;background:#7f102e}
.cv68-toggle input:checked + .cv68-switch::after{transform:translateX(18px);background:#ffc9c8}
.cv68-toggle input:focus-visible + .cv68-switch{outline:2px solid var(--cv68-gold);outline-offset:2px}
.cv68-editor .cv68-link{appearance:none;cursor:pointer;border:0;background:transparent;
  padding:9px 0;text-align:left;color:var(--cv68-gold);font:600 11px/1.4 'Hanken Grotesk',sans-serif}
.cv68-editor .cv68-link:disabled{opacity:.42;cursor:default}
.cv68-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;
  position:relative;z-index:1;border-top:1px solid var(--cv68-outline);
  background:var(--cv68-bg)!important;margin:15px 0 0;padding:13px 0 0}
.cv68-editor .cv68-button{appearance:none;min-height:41px;padding:9px 14px;cursor:pointer;
  border:1px solid #71504f;border-radius:5px;background:#1f1819;color:#f0dcda;
  font:650 10px/1.4 'Geist Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase}
.cv68-editor .cv68-save,.cv68-editor .cv68-save:hover{background:var(--cv68-red);color:var(--cv68-red-ink);border-color:#e04b68}
.cv68-editor .cv68-button:hover{border-color:var(--cv68-gold)}
.cv68-editor .cv68-button:disabled{opacity:.44;cursor:default}
@media(max-width:620px){.cv68-grid{grid-template-columns:1fr}.cv68-device{padding-inline:7px!important;min-width:58px!important}}

/* Native Pages / Blocks ordering: controls, then one focused component preview. */
.cv69-block-preview{margin:16px 0 0;padding:14px;border:1px solid var(--cv68-outline);
  border-radius:8px;background:#120f0f}
.cv69-block-preview .cv68-preview-head{margin-bottom:10px}
.cv69-stage-host{min-height:208px;padding:12px;background:#0e0e0e;border-radius:6px}
.cv69-stage{min-height:0;border:1px solid #493836;background:#0e0e0e;
  box-shadow:none;width:100%;flex:0 0 auto}
.cv69-iframe{display:block;position:absolute;inset:0;width:100%;height:100%;
  transform:none!important;background:#0e0e0e}
.cv69-block-preview .cv68-section-tag{font-size:10px;color:var(--cv68-gold)}
@media (max-width:620px){.cv69-block-preview{padding:10px}
  .cv69-stage-host{padding:8px}
  .cv68-switcher{flex-wrap:wrap}}

/* Carrrven CMS V7.0 — fluid form controls, shared native rhythm.
   Layout is based on the actual width of the inspector, not the browser width.
   Works in a narrow Pages/Blocks pane and on compact tablets/phones. */
.cv68-editor{container-type:inline-size;overflow-wrap:anywhere;isolation:isolate}
.cv68-header,.cv68-config-groups,.cv68-group,.cv69-block-preview,.cv68-stage-host{min-width:0;max-width:100%}
.cv68-config-groups{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.cv68-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:12px}
.cv68-editor .cv68-field{min-width:0;max-width:100%;overflow-wrap:anywhere}
.cv68-editor .cv68-field textarea,.cv68-editor .cv68-field select,
.cv68-editor .cv68-field input:not([type="checkbox"]){max-width:100%;min-width:0}
.cv68-editor .cv68-switcher{flex-wrap:wrap;justify-content:flex-end;min-width:0}
.cv68-editor .cv68-preview-head{min-width:0;align-items:flex-start}
.cv68-editor .cv68-stage,.cv68-editor .cv68-iframe{max-width:100%}
.cv68-editor .cv70-faq-list{display:flex;flex-direction:column;gap:12px}
.cv70-faq-card{min-width:0;border:1px solid var(--cv68-outline);border-radius:8px;background:#0e0e0e;padding:12px;display:grid;gap:8px}
.cv70-faq-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cv70-faq-heading strong{font:650 11px/1.3 'Geist Mono',ui-monospace,monospace;color:var(--cv68-gold)}
.cv70-faq-question{font-weight:600;line-height:1.55;margin:0;color:var(--cv68-ink)}
.cv70-faq-answer{white-space:pre-wrap;line-height:1.55;margin:0;color:#c5b5b1}
.cv70-faq-next{margin:0;color:var(--cv68-gold);font-size:11px}
.cv70-faq-card textarea{min-width:0;max-width:100%;width:100%;min-height:75px;resize:vertical;
  padding:10px 12px;color:var(--cv68-ink);background:#121010;border:1px solid var(--cv68-outline);border-radius:6px;
  font:500 13px/1.5 'Hanken Grotesk',Inter,sans-serif}
.cv70-faq-card textarea:focus-visible{outline:2px solid var(--cv68-gold);outline-offset:1px}
.cv70-faq-caption{font:650 10px/1.3 'Geist Mono',ui-monospace,monospace;text-transform:uppercase;letter-spacing:.08em;color:var(--cv68-muted)}
.cv70-faq-related{min-width:0;max-height:160px;overflow:auto;display:grid;gap:6px;border:1px solid var(--cv68-outline);border-radius:5px;margin:4px 0;padding:10px}
.cv70-faq-related legend{font-weight:600;font-size:12px;color:var(--cv68-gold);padding:0 6px}
.cv70-faq-choice{display:flex;align-items:center;gap:8px;min-width:0;color:var(--cv68-ink);line-height:1.4}
.cv70-faq-choice input{width:16px;height:16px;flex:none;accent-color:var(--cv68-red)}
.cv70-faq-feedback,.cv70-faq-empty,.cv70-action-help{margin:6px 0;color:var(--cv68-muted);font-size:12px}
.cv70-faq-feedback[data-error="1"],.cv70-error{color:#ffb6b6;font-size:12px;white-space:pre-wrap}
.cv68-editor .cv70-faq-card .cv68-button{width:max-content;max-width:100%;white-space:normal;overflow-wrap:anywhere}
@container (max-width:520px){
 .cv68-grid{grid-template-columns:1fr}
 .cv68-header{flex-direction:column;gap:8px}
 .cv68-status{text-align:left}
 .cv68-preview-head{flex-direction:column;align-items:stretch}
 .cv68-switcher{justify-content:stretch;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 .cv68-editor .cv68-device{min-width:0!important;padding:7px 4px!important}
 .cv68-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .cv68-editor .cv68-actions .cv68-button{min-width:0;white-space:normal;padding-inline:5px}
 .cv69-block-preview{padding:9px}
 .cv69-stage-host{padding:6px}
}
@container (max-width:340px){
 .cv68-actions{grid-template-columns:1fr}
 .cv68-preview-head .cv68-switcher{grid-template-columns:1fr}
 .cv70-faq-heading{display:grid;grid-template-columns:1fr}
}
/* Explicitly size color controls: inherited `input {width:100%}` was
   enlarging every color-picker row beyond its responsive grid cell. */
.cv68-editor .cv68-field .cv68-color-row{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;min-width:0;max-width:100%}
.cv68-editor .cv68-field .cv68-color-row input[type="color"]{width:52px!important;min-width:0!important;max-width:52px!important;flex:0 0 52px;padding:2px!important;box-sizing:border-box}
.cv68-editor .cv68-field .cv68-color-row output{min-width:0;overflow-wrap:anywhere}
.cv68-editor .cv70-layout-grid{display:grid;grid-template-columns:1fr;gap:8px;min-width:0}
.cv70-layout-line{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;gap:6px;align-items:center;padding:8px;border:1px solid var(--cv68-outline);border-radius:6px}
.cv70-layout-toggle{display:flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}
.cv70-layout-toggle input{accent-color:var(--cv68-red);width:18px;height:18px;flex:none}
.cv68-editor .cv70-layout-line .cv68-button{width:40px;min-width:0;min-height:36px;padding:5px;font-size:17px}
.cv70-faq-active{display:inline-flex;align-items:center;gap:6px;color:var(--cv68-ink);font:500 11px/1.3 'Hanken Grotesk',sans-serif}
.cv70-faq-active input{accent-color:var(--cv68-red);width:16px;height:16px}
.cv68-editor{box-sizing:border-box!important}
