/* FreshVibe CMS — runtime styles
   Scoped via .fvcms-* class names. No global pollution.
   Designed to work alongside the host's existing dev panel CSS. */

.fvcms-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}
.fvcms-editor-header {
  font-weight: 700;
  font-size: 12px;
  color: #c0e0c0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(120, 160, 120, 0.3);
}
.fvcms-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fvcms-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fvcms-field-label {
  font-size: 11px;
  color: #b0c0b0;
  font-weight: 600;
}
.fvcms-required {
  color: #ff8060;
}
.fvcms-field input[type=text],
.fvcms-field input[type=url],
.fvcms-field input[type=number],
.fvcms-field textarea,
.fvcms-field select {
  background: rgba(0, 0, 0, 0.3);
  color: #e8e8e0;
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 4px;
  padding: 5px 7px;
  font: 12px ui-monospace, monospace;
  width: 100%;
  box-sizing: border-box;
}
.fvcms-field input[type=color] {
  width: 36px;
  height: 28px;
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}
.fvcms-boolean-field {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: #d0d8d0;
}
.fvcms-editor-variants {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(120, 160, 120, 0.3);
}
.fvcms-editor-label {
  font-size: 11px;
  color: #b0c0b0;
  margin-bottom: 4px;
}
.fvcms-editor-variant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.fvcms-variant-btn {
  background: rgba(60, 100, 60, 0.4);
  border: 1px solid rgba(120, 160, 120, 0.4);
  color: #e8e8e0;
  padding: 3px 8px;
  border-radius: 4px;
  font: 11px ui-monospace, monospace;
  cursor: pointer;
}
.fvcms-variant-btn:hover {
  background: rgba(80, 130, 80, 0.6);
}
.fvcms-editor-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.fvcms-save-btn,
.fvcms-reset-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 5px;
  font: 12px ui-monospace, monospace;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
}
.fvcms-save-btn {
  background: rgba(76, 175, 80, 0.6);
  border-color: rgba(120, 200, 120, 0.7);
  color: #fff;
}
.fvcms-save-btn:hover {
  background: rgba(76, 175, 80, 0.85);
}
.fvcms-reset-btn {
  background: rgba(80, 80, 80, 0.4);
  border-color: rgba(160, 160, 160, 0.4);
  color: #d0d0d0;
}
.fvcms-reset-btn:hover {
  background: rgba(100, 100, 100, 0.5);
}

/* Region navigator */
.fvcms-navigator {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fvcms-nav-region {
  border-left: 2px solid rgba(120, 160, 120, 0.4);
  padding-left: 8px;
  margin: 2px 0;
}
.fvcms-nav-region-label {
  font-size: 11px;
  color: #c0e0c0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 0;
}
.fvcms-nav-group {
  margin-left: 8px;
  font-size: 11px;
  color: #b0c0b0;
}
.fvcms-nav-module {
  display: inline-block;
  margin: 1px 3px 1px 0;
  padding: 2px 6px;
  background: rgba(60, 100, 60, 0.35);
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 3px;
  cursor: pointer;
  font: 10px ui-monospace, monospace;
}
.fvcms-nav-module:hover {
  background: rgba(80, 130, 80, 0.6);
  border-color: rgba(180, 140, 80, 0.7);
}

/* Tab bar */
.fvcms-tab-active {
  border-bottom: 2px solid rgba(180, 140, 80, 0.9) !important;
  color: #c0e0c0 !important;
}

/* Group toggle UI */
.fvcms-group-toggle {
  display: flex; flex-direction: column; gap: 12px;
  padding: 8px 0;
}
.fvcms-group-section {
  border-left: 2px solid rgba(120, 160, 120, 0.4);
  padding-left: 8px;
}
.fvcms-group-section-head {
  font-size: 11px; color: #c0e0c0; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.fvcms-group-row {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 0; font-size: 10px;
}
.fvcms-group-moduleselect {
  background: rgba(0, 0, 0, 0.3); color: #e8e8e0;
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 3px; padding: 2px 4px;
  font: 10px ui-monospace, monospace;
}

/* Skin picker */
.fvcms-skin-picker {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
}
.fvcms-skin-picker-label {
  font-size: 11px; color: #b0c0b0; font-weight: 600;
}
.fvcms-skin-select {
  flex: 1;
  background: rgba(0, 0, 0, 0.3); color: #e8e8e0;
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 4px; padding: 4px 7px;
  font: 11px ui-monospace, monospace;
}

/* Module defaults */
.fvcms-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--cta-bg, #2d4f2d);
  color: var(--cta-color, #fff);
  border-radius: var(--cta-radius, 4px);
  text-decoration: none;
  font-weight: 600;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.fvcms-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.fvcms-variant-solid {
  background: var(--cta-bg, #2d4f2d);
  color: var(--cta-color, #fff);
  border: 1.5px solid var(--cta-bg, #2d4f2d);
}
.fvcms-variant-outline {
  background: transparent;
  color: var(--cta-bg, #2d4f2d);
  border: 1.5px solid var(--cta-bg, #2d4f2d);
}
.fvcms-variant-ghost {
  background: transparent;
  color: var(--cta-bg, #2d4f2d);
  border: 1.5px solid transparent;
}
.fvcms-variant-link {
  background: transparent;
  color: var(--cta-bg, #2d4f2d);
  border: none;
  text-decoration: underline;
}
.fvcms-radius-sharp   { border-radius: 0 !important; }
.fvcms-radius-small   { border-radius: 4px !important; }
.fvcms-radius-medium  { border-radius: 8px !important; }
.fvcms-radius-large   { border-radius: 16px !important; }
.fvcms-radius-pill    { border-radius: 999px !important; }
.fvcms-size-small     { padding: 5px 12px !important; font-size: 11px !important; }
.fvcms-size-medium    { padding: 10px 22px !important; font-size: 13px !important; }
.fvcms-size-large     { padding: 14px 30px !important; font-size: 15px !important; }

/* Heading sizes via tokens */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font, inherit);
  color: var(--heading-color, inherit);
}

/* Paragraph sizes */
.fvcms-paragraph-small  { font-size: 12px !important; }
.fvcms-paragraph-medium { font-size: 14px !important; }
.fvcms-paragraph-large  { font-size: 17px !important; line-height: 1.6; }

/* Menu */
.fvcms-menu {
  list-style: none;
  margin: 0; padding: 0;
}
.fvcms-menu li { padding: 4px 0; }
.fvcms-menu li a {
  color: var(--heading-color, inherit);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.fvcms-menu li a:hover { opacity: 0.7; }
.fvcms-menu-vertical   { display: block; }
.fvcms-menu-horizontal { display: flex; gap: 16px; }

/* Social icons */
.fvcms-social-icons {
  display: flex; gap: 12px;
  align-items: center;
}
.fvcms-social-vertical { flex-direction: column; }
.fvcms-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(120, 160, 120, 0.3);
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  transition: background 0.15s ease;
}
.fvcms-social-icon:hover {
  background: rgba(120, 160, 120, 0.7);
}

/* Accordion */
.fvcms-accordion-item {
  margin: 4px 0;
  border-radius: 4px;
}
.fvcms-accordion-separated .fvcms-accordion-item {
  background: rgba(60, 100, 60, 0.15);
  border: 1px solid rgba(120, 160, 120, 0.3);
}
.fvcms-accordion-bordered .fvcms-accordion-item {
  border: 1px solid rgba(120, 160, 120, 0.4);
}
.fvcms-accordion-flush .fvcms-accordion-item {
  border-bottom: 1px solid rgba(120, 160, 120, 0.3);
}
.fvcms-accordion-item summary {
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.fvcms-accordion-content {
  padding: 0 14px 10px;
  color: rgba(232, 232, 224, 0.85);
}

/* Icon list */
.fvcms-icon-list {
  list-style: none; padding: 0; margin: 0;
}
.fvcms-icon-list li {
  padding: 4px 0;
  display: flex; align-items: center; gap: 6px;
}
.fvcms-icon-list li::before {
  content: '✓';
  color: var(--heading-color, inherit);
  opacity: 0.7;
}

/* Region navigator region-hover highlight */
.fvcms-region-hovered {
  outline: 2px solid rgba(255, 220, 100, 0.9);
  outline-offset: 2px;
}

/* On-page REGION: X tag (pinned to each region's top-left corner
   while region overlays are active). position:fixed + rAF
   reposition so it follows the region as the user scrolls. */
.fvcms-region-tag {
  position: fixed;
  z-index: 2147483645;
  background: rgba(40, 50, 25, 0.96);
  color: #ffdc64;
  border: 1px solid rgba(255, 220, 100, 0.7);
  border-radius: 4px;
  padding: 5px 10px;
  font: 600 11px ui-monospace, Menlo, monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

/* Sub-tags for individual modules within a focused region. Smaller,
   distinct colour so the operator can tell them apart from the
   region tag at a glance. Click to open that module in the
   inspector. */
.fvcms-module-subtag {
  position: fixed;
  z-index: 2147483646;
  background: rgba(20, 28, 20, 0.95);
  color: #d0e8d0;
  border: 1px solid rgba(180, 220, 140, 0.6);
  border-radius: 3px;
  padding: 2px 6px;
  font: 10px ui-monospace, Menlo, monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
  pointer-events: auto;
  max-width: 240px;
}
.fvcms-module-subtag:hover {
  background: rgba(255, 220, 100, 0.2);
  color: #ffdc64;
  border-color: rgba(255, 220, 100, 0.9);
}
.fvcms-module-subtag .ost {
  background: rgba(255, 220, 100, 0.25);
  color: #ffdc64;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.fvcms-module-subtag .osl {
  color: #d0e8d0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fvcms-region-tag::before {
  content: '◆';
  color: #ffdc64;
  font-size: 9px;
}
.fvcms-region-tag:hover {
  background: rgba(60, 80, 35, 0.98);
  border-color: rgba(255, 220, 100, 1);
}

/* Region being edited — yellow tag pinned to the top-left corner
   of the region, plus a glowing outline. The tag follows the
   region as the page scrolls because it's position:fixed and
   repositioned via rAF against the region element's rect. */
.fvcms-editing-region {
  outline: 3px solid rgba(255, 220, 100, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 24px rgba(255, 220, 100, 0.35);
}
.fvcms-editing-region-tag {
  position: fixed;
  z-index: 2147483646;
  background: rgba(40, 50, 25, 0.96);
  color: #ffdc64;
  border: 1px solid rgba(255, 220, 100, 0.7);
  border-radius: 4px;
  padding: 5px 10px;
  font: 600 11px ui-monospace, Menlo, monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;       /* don't block clicks on the page */
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fvcms-editing-region-tag::before {
  content: '◆';
  color: #ffdc64;
  font-size: 9px;
}
.fvcms-editing-region-tag .fvcms-editing-region-back {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 220, 100, 0.6);
  color: #ffdc64;
  font: 600 10px ui-monospace, Menlo, monospace;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: none;
  letter-spacing: 0;
}
.fvcms-editing-region-tag .fvcms-editing-region-back:hover {
  background: rgba(255, 220, 100, 0.18);
}

/* Info box */
.fvcms-info-box {
  display: flex; gap: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 8px;
  background: rgba(100, 140, 200, 0.12);
  border-left: 4px solid rgba(100, 140, 200, 0.6);
}
.fvcms-info-info    { background: rgba(100, 140, 200, 0.12); border-left-color: rgba(100, 140, 200, 0.6); }
.fvcms-info-success { background: rgba(80, 160, 80, 0.12); border-left-color: rgba(80, 160, 80, 0.7); }
.fvcms-info-warning { background: rgba(200, 160, 60, 0.12); border-left-color: rgba(200, 160, 60, 0.7); }
.fvcms-info-tip     { background: rgba(180, 120, 200, 0.12); border-left-color: rgba(180, 120, 200, 0.6); }
.fvcms-info-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-weight: 700;
  text-transform: uppercase;
}
.fvcms-info-body { flex: 1; }
.fvcms-info-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.fvcms-info-content { font-size: 12px; opacity: 0.85; }
.fvcms-info-link { display: inline-block; margin-top: 6px; font-size: 11px; color: rgba(180, 140, 80, 1); }

/* Forms */
.fvcms-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 0;
}
.fvcms-form-inline {
  flex-direction: row; flex-wrap: wrap; gap: 8px;
  align-items: end;
}
.fvcms-form-field {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1 1 200px;
}
.fvcms-form-field label { font-size: 11px; color: #b0c0b0; font-weight: 600; }
.fvcms-form-field input,
.fvcms-form-field textarea,
.fvcms-form-field select {
  background: rgba(0, 0, 0, 0.3); color: #e8e8e0;
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 4px; padding: 6px 8px;
  font: 12px ui-monospace, monospace;
}
.fvcms-form-field textarea { min-height: 80px; resize: vertical; }
.fvcms-form-submit {
  background: var(--cta-bg, #2d4f2d); color: var(--cta-color, #fff);
  border: none; padding: 10px 22px; border-radius: 8px;
  font: 13px ui-monospace, monospace; font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.fvcms-form-success {
  background: rgba(80, 160, 80, 0.7); color: #fff;
  padding: 8px 12px; border-radius: 4px;
  font-size: 12px;
  margin-top: 4px;
}

/* Breadcrumb */
.fvcms-breadcrumb { font-size: 12px; }
.fvcms-breadcrumb-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
.fvcms-breadcrumb-list li { display: inline-flex; align-items: center; }
.fvcms-breadcrumb-list li a {
  color: var(--heading-color, inherit);
  text-decoration: none;
  opacity: 0.7;
}
.fvcms-breadcrumb-list li a:hover { opacity: 1; }
.fvcms-breadcrumb-sep {
  padding: 0 8px;
  opacity: 0.4;
}

/* Testimonial */
.fvcms-testimonial {
  padding: 16px;
  margin: 10px 0;
}
.fvcms-testimonial-card { background: rgba(60, 100, 60, 0.15); border-radius: 8px; border: 1px solid rgba(120, 160, 120, 0.3); }
.fvcms-testimonial-bordered {
  border-left: 4px solid rgba(180, 140, 80, 0.8);
  background: rgba(180, 140, 80, 0.06);
}
.fvcms-testimonial-plain {
  font-style: italic;
}
.fvcms-testimonial-stars {
  color: rgba(220, 180, 60, 1);
  margin-bottom: 6px;
  font-size: 16px;
}
.fvcms-testimonial-quote {
  margin: 0; padding: 0;
  font-size: 14px; line-height: 1.6;
  font-style: italic;
}
.fvcms-testimonial-attribution {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
  font-size: 11px;
}
.fvcms-testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.fvcms-testimonial-name { font-weight: 700; }
.fvcms-testimonial-role { opacity: 0.7; }

/* CTA Box */
.fvcms-cta-box {
  padding: 24px 20px;
  margin: 16px 0;
  background: rgba(45, 79, 45, 0.4);
  border-radius: 10px;
}
.fvcms-cta-box-inner {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
}
.fvcms-cta-box-centered { text-align: center; align-items: center; }
.fvcms-cta-box-side-by-side {
  flex-direction: row; justify-content: space-between; align-items: center;
}
.fvcms-cta-box-title { font-size: 20px; margin: 0; }
.fvcms-cta-box-body { font-size: 13px; opacity: 0.85; margin: 0; }
/* 'All widgets' toggle — every Elementor widget on the page gets
   a tag. Bright blue so it visually distinguishes from the
   curated region tags (yellow) and module sub-tags (green). */
.fvcms-allwidget-tag {
  position: fixed;
  z-index: 2147483644;
  background: rgba(60, 90, 140, 0.95);
  color: #d0e4f5;
  border: 1px solid rgba(140, 180, 220, 0.7);
  border-radius: 3px;
  padding: 2px 6px;
  font: 10px ui-monospace, monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
  pointer-events: auto;
  max-width: 280px;
}
.fvcms-allwidget-tag:hover {
  background: rgba(140, 180, 220, 0.3);
  border-color: #c0d8e8;
}
.fvcms-allwidget-tag .oaw-type {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.fvcms-allwidget-tag .oaw-label {
  color: #d0e4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}


/* ---- Stage F: visual feedback when an element gets re-rendered ----
   Briefly highlights the updated element with a yellow glow that
   fades out. Helps the operator see exactly which DOM node changed
   in response to their Inspector edit. */
.fvcms-just-updated {
  outline: 3px solid #ffd84d !important;
  outline-offset: 2px !important;
  animation: fvcms-flash 0.8s ease-out forwards;
  position: relative;
  z-index: 1;
}
@keyframes fvcms-flash {
  0%   { background-color: rgba(255, 216, 77, 0.30); outline-color: #ffd84d; }
  50%  { background-color: rgba(255, 216, 77, 0.15); outline-color: #ffd84d; }
  100% { background-color: transparent; outline-color: rgba(255, 216, 77, 0); }
}

/* ============================================================================
   editor-outline feature — yellow tag overlays on the page
   (Per app-fragments/editor-outline/fragment.md)
   ============================================================================ */

.fvcms-region-tag {
  position: fixed;
  z-index: 2147483645;
  background: rgba(60, 40, 25, 0.96);
  color: #f0d8b8;
  border: 1px solid rgba(160, 106, 58, 0.9);
  border-radius: 4px;
  padding: 5px 10px;
  font: 600 11px ui-monospace, Menlo, monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fvcms-region-tag:hover {
  background: rgba(80, 55, 35, 0.98);
  border-color: rgba(180, 120, 70, 1);
}
.fvcms-region-tag .fvcms-tag-prefix {
  color: #c89060;
  font-size: 10px;
}
.fvcms-region-tag.is-selected {
  /* Region selected: brown highlight + glow + white inner ring */
  background: rgba(80, 50, 30, 0.98);
  border-color: rgba(200, 140, 80, 1);
  color: #ffe8c8;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) inset, 0 0 12px 1px rgba(160, 106, 58, 0.65), 0 4px 16px rgba(0, 0, 0, 0.6);
}
.fvcms-region-tag.is-selected .fvcms-tag-prefix {
  color: #f0b878;
}

/* Module tags (inside the selected region only) — smaller, purple per I-015 */
.fvcms-module-tag {
  position: fixed;
  z-index: 2147483646;
  background: rgba(45, 30, 65, 0.95);
  color: #e0d0f0;
  border: 1px solid rgba(168, 120, 232, 0.7);
  border-radius: 3px;
  padding: 2px 6px;
  font: 10px ui-monospace, Menlo, monospace;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 240px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fvcms-module-tag:hover {
  background: rgba(70, 45, 100, 0.98);
  color: #f0e0ff;
  border-color: rgba(180, 130, 240, 0.95);
}
.fvcms-module-tag .fvcms-tag-type {
  background: rgba(168, 120, 232, 0.4);
  color: #f0e0ff;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.fvcms-module-tag .fvcms-tag-label {
  color: #e0d0f0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.fvcms-module-tag.is-selected {
  background: rgba(80, 50, 120, 0.98);
  border-color: rgba(200, 150, 255, 1);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) inset, 0 0 10px 1px rgba(168, 120, 232, 0.65);
}
.fvcms-module-tag.is-selected .fvcms-tag-type {
  background: rgba(200, 150, 255, 0.5);
  color: #ffffff;
}

/* ============================================================================
   editor-navigator feature — structure tree of the page
   (Per app-fragments/editor-navigator/fragment.md)
   ============================================================================ */

.fvcms-navigator-tree {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #c8e0c8;
  padding: 6px 0;
}
.fvcms-navigator-empty {
  color: #7a8a7a;
  font-style: italic;
  padding: 8px 12px;
}
.fvcms-tree-node .row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  cursor: pointer;
  border-radius: 3px;
  user-select: none;
}
.fvcms-tree-node .row:hover {
  background: rgba(255, 220, 100, 0.10);
}
.fvcms-tree-node .row.is-current {
  background: rgba(255, 220, 100, 0.20);
}
.fvcms-tree-node .chev {
  color: #a0c0a0;
  width: 10px;
  display: inline-block;
  font-size: 10px;
}
.fvcms-tree-node .icon {
  color: #c0d8e0;
  font-size: 11px;
  width: 14px;
  text-align: center;
}
.fvcms-tree-node .pill {
  background: rgba(60, 90, 140, 0.4);
  color: #d0e4f5;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fvcms-tree-node .label {
  flex: 1;
  color: #d0e8d0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fvcms-tree-children {
  /* child container — display:none when collapsed */
}

/* ============================================================================
   editor-inspector feature — the panel that edits one module instance
   (Per app-fragments/editor-inspector/fragment.md)
   ============================================================================ */

.fvcms-editor-body {
  padding: 12px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #c8e0c8;
}
.fvcms-editor-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #b0c0b0;
}
.fvcms-editor-id {
  flex: 1;
}
.fvcms-editor-flash {
  color: #80c080;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}
.fvcms-editor-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(120, 160, 120, 0.2);
}
.fvcms-editor-tab {
  flex: 0 0 auto;
  background: transparent;
  color: #b0c0b0;
  border: none;
  padding: 6px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font: 11px ui-monospace, monospace;
}
.fvcms-editor-tab:hover {
  color: #e8e8e0;
}
.fvcms-editor-tab.fvcms-tab-active {
  color: #ffdc64;
  border-bottom-color: #ffdc64;
}
.fvcms-editor-tab-content {
  /* Active tab content area */
}
.fvcms-editor-empty {
  color: #888;
  padding: 8px;
}
.fvcms-editor-variants {
  /* Variants section */
}
.fvcms-variant-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 4px 0;
  background: rgba(60, 100, 60, 0.3);
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 6px;
}
.fvcms-variant-label {
  flex: 1;
  font-weight: 600;
}
.fvcms-variant-preview {
  font-size: 10px;
  color: #b0c0b0;
  font-family: monospace;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fvcms-variant-apply {
  background: rgba(180, 140, 80, 0.7);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font: 11px ui-monospace, monospace;
}
.fvcms-variant-apply:hover {
  background: rgba(180, 140, 80, 0.9);
}
.fvcms-editor-raw {
  /* Raw JSON section */
}
.fvcms-editor-raw-textarea {
  width: 100%;
  height: 320px;
  background: rgba(0, 0, 0, 0.4);
  color: #e8e8e0;
  border: 1px solid rgba(120, 160, 120, 0.3);
  border-radius: 4px;
  padding: 8px;
  font: 11px ui-monospace, monospace;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.fvcms-editor-raw-textarea.fvcms-editor-raw-invalid {
  border-color: rgba(255, 80, 80, 0.7);
}

/* ============================================================================
   editor-context-menu feature — right-click menu
   (Per app-fragments/editor-context-menu/fragment.md)
   ============================================================================ */

.fvcms-context-menu {
  position: fixed;
  z-index: 2147483647;
  background: rgba(20, 28, 20, 0.98);
  border: 1px solid rgba(255, 220, 100, 0.5);
  border-radius: 6px;
  padding: 4px 0;
  min-width: 180px;
  font: 11px ui-monospace, Menlo, monospace;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.fvcms-context-menu-item {
  display: block;
  width: 100%;
  background: transparent;
  color: #d0e8d0;
  border: none;
  padding: 6px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.fvcms-context-menu-item:hover {
  background: rgba(255, 220, 100, 0.15);
  color: #ffdc64;
}
.fvcms-context-menu-divider {
  height: 1px;
  background: rgba(120, 160, 120, 0.2);
  margin: 4px 0;
}
.fvcms-context-menu-danger {
  color: #ff8866;
}
.fvcms-context-menu-danger:hover {
  background: rgba(255, 80, 80, 0.15);
  color: #ff6644;
}

/* ============================================================================
   editor-breadcrumb feature — bottom-bar path
   (Per app-fragments/editor-breadcrumb/fragment.md)
   ============================================================================ */

.fvcms-breadcrumb {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2147483644;
  background: rgba(20, 28, 20, 0.95);
  border-top: 1px solid rgba(255, 220, 100, 0.3);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font: 11px ui-monospace, Menlo, monospace;
  color: #c8e0c8;
}
.fvcms-breadcrumb-segment {
  background: transparent;
  border: 1px solid transparent;
  color: #b0c0b0;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fvcms-breadcrumb-segment:hover {
  background: rgba(255, 220, 100, 0.15);
  color: #ffdc64;
  border-color: rgba(255, 220, 100, 0.4);
}
.fvcms-breadcrumb-segment.is-current {
  background: rgba(255, 220, 100, 0.25);
  color: #ffdc64;
  border-color: rgba(255, 220, 100, 0.7);
}
.fvcms-breadcrumb-separator {
  color: #6a8a6a;
  font-size: 12px;
  user-select: none;
}

/* ============================================================
   v9 GOLD CMS Visual Fidelity — 7-step amendment (2026-08-14)
   Refs:
     - B3-CONSOLIDATED-COLUMN-NODE-AMENDMENT-2026-08-14.md (4-level colour scheme)
     - 4-level node palette: Section=Red, Subsection=Orange, Column=Teal, Component=Green
   Scope: pure CSS, no JS, no schema, no loader, no /cms-local/.
   ============================================================ */

/* ---------- 0. Design tokens (v9 GOLD) ---------- */
:root {
  --fvcms-v9-gutter: 16px;
  --fvcms-v9-gutter-tight: 8px;
  --fvcms-v9-gutter-loose: 24px;
  --fvcms-v9-radius-sm: 6px;
  --fvcms-v9-radius-md: 10px;
  --fvcms-v9-radius-lg: 14px;
  --fvcms-v9-shadow-1: 0 1px 2px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.04) inset;
  --fvcms-v9-shadow-2: 0 4px 14px rgba(0,0,0,0.32), 0 1px 0 rgba(255,255,255,0.05) inset;
  --fvcms-v9-shadow-active: 0 6px 22px rgba(0,0,0,0.42), 0 0 0 1px rgba(120,200,200,0.35) inset;
  --fvcms-v9-border: 1px solid rgba(255, 250, 240, 0.08);
  --fvcms-v9-border-strong: 1px solid rgba(255, 250, 240, 0.18);
  --fvcms-v9-panel-bg: #1c1a16;
  --fvcms-v9-panel-bg-alt: #28241c;
  --fvcms-v9-text: #ece8df;
  --fvcms-v9-text-dim: #b0c0b0;
  --fvcms-v9-text-faint: #807a6e;

  /* Node palette (4-level colour scheme — B3 amendment §9) */
  --fvcms-v9-color-section:     #d65a4f;  /* Red    */
  --fvcms-v9-color-subsection:  #e89a4a;  /* Orange */
  --fvcms-v9-color-column:      #4ab8b8;  /* Teal   */
  --fvcms-v9-color-component:   #a3c9a8;  /* Green  (existing) */

  /* Predicate / context marker */
  --fvcms-v9-color-predicate:   #ffdc64;  /* gold chip for predicate badges */
}

/* ---------- 1. Column Rules ---------- */
/* Consistent column spacing, gutters, alignment across all CMS panels.
   Applies to:
     - .fvcms-col / .fvcms-column / [data-fvcms-type="column"] (column containers)
     - .fvcms-cols / .fvcms-columns (parent row)
     - flex/grid children of column rows */
.fvcms-cols,
.fvcms-columns,
[data-fvcms-type="columns"] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--fvcms-v9-gutter);
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
}
.fvcms-col,
.fvcms-column,
[data-fvcms-type="column"] {
  flex: 1 1 0;
  min-width: 0;  /* prevent flex items from overflowing their parent */
  display: flex;
  flex-direction: column;
  gap: var(--fvcms-v9-gutter-tight);
  box-sizing: border-box;
  /* Teal outline (B3 amendment §9) */
  outline: 1px dotted var(--fvcms-v9-color-column);
  outline-offset: 2px;
}
/* When a column is the active selection in the inspector */
.fvcms-col.is-focused,
.fvcms-column.is-focused,
[data-fvcms-type="column"][data-focused="1"] {
  outline: 2px dotted var(--fvcms-v9-color-column);
  outline-offset: 3px;
  background: rgba(74, 184, 184, 0.05);  /* faint teal tint */
}

/* Vertical drag handle between columns (teal, B3 §4 + §5) */
.fvcms-col-handle,
.fvcms-column-resize-handle {
  width: 4px;
  align-self: stretch;
  background: transparent;
  cursor: col-resize;
  border: 0;
  border-left: 1px dotted var(--fvcms-v9-color-column);
  border-right: 1px dotted var(--fvcms-v9-color-column);
  flex: 0 0 4px;
  transition: background 0.15s;
}
.fvcms-col-handle:hover,
.fvcms-column-resize-handle:hover {
  background: rgba(74, 184, 184, 0.20);
}

/* Horizontal split handle inside a column (teal) */
.fvcms-col-split-handle,
.fvcms-column-split-handle {
  height: 4px;
  background: transparent;
  cursor: row-resize;
  border: 0;
  border-top: 1px dotted var(--fvcms-v9-color-column);
  border-bottom: 1px dotted var(--fvcms-v9-color-column);
  flex: 0 0 4px;
  transition: background 0.15s;
}
.fvcms-col-split-handle:hover,
.fvcms-column-split-handle:hover {
  background: rgba(74, 184, 184, 0.20);
}

/* ---------- 2. Subsection Rules ---------- */
/* Unify subsection headers, spacing, indentation, divider logic.
   Subsection = orange palette (B3 §9). */
.fvcms-subsection,
[data-fvcms-type="subsection"] {
  display: flex;
  flex-direction: column;
  gap: var(--fvcms-v9-gutter-tight);
  padding: var(--fvcms-v9-gutter);
  margin-bottom: var(--fvcms-v9-gutter);
  border-top: 1px solid rgba(232, 154, 74, 0.22);  /* faint orange divider */
  /* Dotted outline (B3 §9) */
  outline: 1px dotted var(--fvcms-v9-color-subsection);
  outline-offset: 2px;
  position: relative;
}
.fvcms-subsection-header,
[data-fvcms-type="subsection"] > .fvcms-section-header {
  font: 700 12px/1.3 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-color-subsection);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--fvcms-v9-gutter-tight) 0;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(232, 154, 74, 0.3);
}
.fvcms-subsection.is-focused,
[data-fvcms-type="subsection"][data-focused="1"] {
  outline: 2px dotted var(--fvcms-v9-color-subsection);
  outline-offset: 3px;
}

/* Section rules (red palette, B3 §9) — top-level container */
.fvcms-section,
[data-fvcms-type="section"] {
  display: flex;
  flex-direction: column;
  gap: var(--fvcms-v9-gutter);
  padding: var(--fvcms-v9-gutter-loose);
  margin-bottom: var(--fvcms-v9-gutter-loose);
  outline: 1px dotted var(--fvcms-v9-color-section);
  outline-offset: 2px;
}
.fvcms-section-header {
  font: 700 14px/1.2 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-color-section);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--fvcms-v9-gutter) 0;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(214, 90, 79, 0.4);
}
.fvcms-section.is-focused,
[data-fvcms-type="section"][data-focused="1"] {
  outline: 2px dotted var(--fvcms-v9-color-section);
  outline-offset: 3px;
}

/* ---------- 3. Panel Chrome ---------- */
/* v9 GOLD panel: borders, shadows, radii, padding.
   Applies to: any .fvcms-pm-panel / .fvcms-edge / .fvcms-panel */
.fvcms-pm-panel,
.fvcms-edge,
.fvcms-panel {
  background: var(--fvcms-v9-panel-bg);
  color: var(--fvcms-v9-text);
  border: var(--fvcms-v9-border);
  border-radius: var(--fvcms-v9-radius-md);
  box-shadow: var(--fvcms-v9-shadow-2);
  padding: 0;  /* panels set inner padding per-section, not on root */
  box-sizing: border-box;
  overflow: hidden;  /* clip child radii */
}
.fvcms-pm-panel.is-focused,
.fvcms-edge.is-focused,
.fvcms-panel.is-focused {
  box-shadow: var(--fvcms-v9-shadow-active);
  border: 1px solid rgba(120, 200, 200, 0.4);
}
/* Panel header */
.fvcms-pm-panel-header,
.fvcms-edge-header,
.fvcms-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  min-height: 36px;
  background: var(--fvcms-v9-panel-bg-alt);
  border-bottom: var(--fvcms-v9-border);
  font: 700 12px/1.2 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
/* Panel body — content area */
.fvcms-pm-panel-body,
.fvcms-edge-body,
.fvcms-panel-body {
  padding: var(--fvcms-v9-gutter);
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--fvcms-v9-gutter-tight);
}
/* Panel footer */
.fvcms-pm-panel-footer,
.fvcms-edge-footer,
.fvcms-panel-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  min-height: 32px;
  background: var(--fvcms-v9-panel-bg-alt);
  border-top: var(--fvcms-v9-border);
  font: 600 11px/1.2 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-text-dim);
  flex-shrink: 0;
}

/* ---------- 4. Dock Chrome ---------- */
/* v9 dock: edges, mobile overrides, active-panel indicator */
.fvcms-dock {
  /* Inherit from existing .fvcms-dock; just add v9 polish */
  border-radius: var(--fvcms-v9-radius-md);
  background: transparent;  /* kept transparent so pills float */
}
.fvcms-dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  min-height: 32px;
  background: var(--fvcms-v9-panel-bg);
  color: var(--fvcms-v9-text);
  border: var(--fvcms-v9-border);
  border-radius: var(--fvcms-v9-radius-sm);
  box-shadow: var(--fvcms-v9-shadow-1);
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.fvcms-dock-pill:hover {
  background: var(--fvcms-v9-panel-bg-alt);
  box-shadow: var(--fvcms-v9-shadow-2);
  color: var(--fvcms-v9-color-component);  /* green hover (existing) */
}
/* Active panel indicator — pill mirrors the focused panel's border tint */
.fvcms-dock-pill.is-active,
.fvcms-dock-pill[data-active="1"] {
  color: var(--fvcms-v9-color-component);
  border-color: rgba(120, 200, 200, 0.4);
  box-shadow: var(--fvcms-v9-shadow-active);
  background: var(--fvcms-v9-panel-bg-alt);
}
/* Mobile override: pills stay visible (no hiding on small screens) */
@media (max-width: 600px) {
  .fvcms-dock {
    padding: 4px;
    gap: 4px;
  }
  .fvcms-dock-pill {
    min-height: 36px;       /* tap target ≥ 36px on mobile */
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ---------- 5. Inspector Chrome ---------- */
/* Unify inspector typography, spacing, section grouping */
.fvcms-inspector,
[data-fvcms-component="inspector"] {
  display: flex;
  flex-direction: column;
  gap: var(--fvcms-v9-gutter);
  padding: var(--fvcms-v9-gutter);
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-text);
}
.fvcms-inspector-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: var(--fvcms-v9-border);
  margin: 0 calc(-1 * var(--fvcms-v9-gutter)) 0;
  padding: 0 var(--fvcms-v9-gutter);
}
.fvcms-inspector-tab {
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fvcms-v9-text-faint);
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.fvcms-inspector-tab.is-active,
.fvcms-inspector-tab[aria-selected="true"] {
  color: var(--fvcms-v9-color-component);
  border-bottom-color: var(--fvcms-v9-color-component);
}
.fvcms-inspector-tab:hover {
  color: var(--fvcms-v9-text);
}
.fvcms-inspector-section {
  display: flex;
  flex-direction: column;
  gap: var(--fvcms-v9-gutter-tight);
  padding: var(--fvcms-v9-gutter-tight) 0;
  border-top: var(--fvcms-v9-border);
}
.fvcms-inspector-section:first-of-type {
  border-top: none;
  padding-top: 0;
}
.fvcms-inspector-section-title {
  font: 700 10px/1.2 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.fvcms-inspector-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.fvcms-inspector-label {
  font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-text-dim);
  flex: 0 0 auto;
  min-width: 80px;
}
.fvcms-inspector-value {
  font: 500 12px/1.2 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--fvcms-v9-text);
  flex: 1 1 auto;
  text-align: right;
}

/* ---------- 6. Context Chrome ---------- */
/* Visual markers, badges, predicate indicators for context rules.
   Predicates: path / role / device / data-fv-region / data-fv-mode */
.fvcms-context-rule,
.fvcms-context-marker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: rgba(255, 220, 100, 0.10);
  color: var(--fvcms-v9-color-predicate);
  border: 1px solid rgba(255, 220, 100, 0.35);
  border-radius: var(--fvcms-v9-radius-sm);
  font: 600 10.5px/1 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.fvcms-context-rule[data-predicate="path"],
.fvcms-context-marker[data-predicate="path"] {
  background: rgba(255, 220, 100, 0.10);
  color: var(--fvcms-v9-color-predicate);
  border-color: rgba(255, 220, 100, 0.35);
}
.fvcms-context-rule[data-predicate="role"],
.fvcms-context-marker[data-predicate="role"] {
  background: rgba(163, 201, 168, 0.10);
  color: var(--fvcms-v9-color-component);
  border-color: rgba(163, 201, 168, 0.35);
}
.fvcms-context-rule[data-predicate="device"],
.fvcms-context-marker[data-predicate="device"] {
  background: rgba(74, 184, 184, 0.10);
  color: var(--fvcms-v9-color-column);
  border-color: rgba(74, 184, 184, 0.35);
}
.fvcms-context-rule[data-predicate="data-fv-region"],
.fvcms-context-marker[data-predicate="data-fv-region"] {
  background: rgba(214, 90, 79, 0.10);
  color: var(--fvcms-v9-color-section);
  border-color: rgba(214, 90, 79, 0.35);
}
.fvcms-context-rule[data-predicate="data-fv-mode"],
.fvcms-context-marker[data-predicate="data-fv-mode"] {
  background: rgba(232, 154, 74, 0.10);
  color: var(--fvcms-v9-color-subsection);
  border-color: rgba(232, 154, 74, 0.35);
}
.fvcms-context-rule::before,
.fvcms-context-marker::before {
  content: "✓";
  font-size: 9px;
  opacity: 0.7;
}

/* Region chip (floating dashed badge — applies 4-level colour scheme) */
.fvcms-region-chip,
[data-fvcms-region-chip] {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font: 700 10px/1.4 -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--fvcms-v9-panel-bg);
  border: 1px dashed currentColor;
  border-radius: var(--fvcms-v9-radius-sm);
  pointer-events: auto;
  z-index: 10;
}
.fvcms-region-chip[data-fvcms-type="section"],
[data-fvcms-region-chip][data-fvcms-type="section"] {
  color: var(--fvcms-v9-color-section);
}
.fvcms-region-chip[data-fvcms-type="subsection"],
[data-fvcms-region-chip][data-fvcms-type="subsection"] {
  color: var(--fvcms-v9-color-subsection);
}
.fvcms-region-chip[data-fvcms-type="column"],
[data-fvcms-region-chip][data-fvcms-type="column"] {
  color: var(--fvcms-v9-color-column);
}
.fvcms-region-chip[data-fvcms-type="component"],
[data-fvcms-region-chip][data-fvcms-type="component"] {
  color: var(--fvcms-v9-color-component);
}

/* Tree View icons — column MUST be teal (B3 §9 operator-locked) */
.fvcms-tree-icon,
[data-fvcms-tree-icon] {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.fvcms-tree-icon[data-fvcms-type="section"],
[data-fvcms-tree-icon][data-fvcms-type="section"] {
  background: var(--fvcms-v9-color-section);
}
.fvcms-tree-icon[data-fvcms-type="subsection"],
[data-fvcms-tree-icon][data-fvcms-type="subsection"] {
  background: var(--fvcms-v9-color-subsection);
}
.fvcms-tree-icon[data-fvcms-type="column"],
[data-fvcms-tree-icon][data-fvcms-type="column"] {
  background: var(--fvcms-v9-color-column);  /* Teal — operator-locked */
}
.fvcms-tree-icon[data-fvcms-type="component"],
[data-fvcms-tree-icon][data-fvcms-type="component"] {
  background: var(--fvcms-v9-color-component);
  border-radius: 999px;  /* pill shape for components */
}

/* ---------- 7. GOLD Alignment Pass ---------- */
/* Final consistency sweep — every v9 chrome element uses the same tokens */
* {
  /* Apply GOLD border-box globally to avoid surprises in flex/grid panels */
  box-sizing: border-box;
}
/* Consistent focus ring across all chrome elements */
.fvcms-pm-panel:focus-visible,
.fvcms-edge:focus-visible,
.fvcms-panel:focus-visible,
.fvcms-dock-pill:focus-visible,
.fvcms-inspector-tab:focus-visible,
.fvcms-col:focus-visible,
.fvcms-column:focus-visible,
.fvcms-subsection:focus-visible,
.fvcms-section:focus-visible {
  outline: 2px solid rgba(120, 200, 200, 0.65);
  outline-offset: 2px;
}
/* Selection highlight — match v9 colour scheme */
::selection {
  background: rgba(74, 184, 184, 0.30);  /* teal selection */
  color: var(--fvcms-v9-text);
}
/* Scrollbar polish — match the dark warm panel palette */
.fvcms-pm-panel-body::-webkit-scrollbar,
.fvcms-edge-body::-webkit-scrollbar,
.fvcms-inspector::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.fvcms-pm-panel-body::-webkit-scrollbar-track,
.fvcms-edge-body::-webkit-scrollbar-track,
.fvcms-inspector::-webkit-scrollbar-track {
  background: transparent;
}
.fvcms-pm-panel-body::-webkit-scrollbar-thumb,
.fvcms-edge-body::-webkit-scrollbar-thumb,
.fvcms-inspector::-webkit-scrollbar-thumb {
  background: rgba(255, 250, 240, 0.12);
  border-radius: 4px;
}
.fvcms-pm-panel-body::-webkit-scrollbar-thumb:hover,
.fvcms-edge-body::-webkit-scrollbar-thumb:hover,
.fvcms-inspector::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 250, 240, 0.22);
}
