/* FOL-147: ocean-blue app brand (from foldoo-button-controls.stage50b.css; old brand colours mapped by scripts/brand/recolour.mjs, site-content rules unchanged). */
/* Stage 50: compact, aligned property BUTTONS. Reference-inspired dark segmented
   controls only; existing Foldoo inspector panels, colours and workflows unchanged. */
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) {
  box-sizing:border-box;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  flex-wrap:nowrap;
  min-width:0;
  max-width:100%;
  width:100%;
  padding:3px;
  gap:2px;
  border-radius:9px;
  border:1px solid #39393d;
  background:#353538;
  box-shadow:none;
}
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button {
  box-sizing:border-box;
  position:relative;
  flex:1 1 0;
  min-width:0;
  min-height:36px;
  height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:0;
  padding:7px 5px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#e8e8ea;
  font:550 11px/1.22 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none;
  transition:background-color 120ms ease,color 120ms ease;
  cursor:pointer;
}
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button + button:before {
  content:"";
  pointer-events:none;
  position:absolute;
  left:-2px;
  top:9px;
  bottom:9px;
  width:1px;
  background:rgba(255,255,255,.12);
}
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button:hover:not(:disabled) {
  color:#fff;
  background:#47474b;
}
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button[aria-pressed="true"] {
  color:#fff;
  background:#505055;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.13);
}
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button:focus-visible {
  outline:2px solid #77c9ea;
  outline-offset:-2px;
  z-index:2;
}
body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button:disabled {
  opacity:.42;
  cursor:not-allowed;
}
body[data-foldoo-view] .ui-right #insp .foldoo-seg-icons > button.foldoo-icon-choice {
  min-height:40px;
  padding:8px 3px;
  line-height:0;
}
body[data-foldoo-view] .ui-right #insp .foldoo-seg-glyph {
  display:block;
  flex:none;
  width:21px;
  height:21px;
  color:inherit;
}
/* Maintain straight visual baselines when a segmented group shares a field row. */
body[data-foldoo-view] .ui-right #insp .ui-field:has(> .foldoo-seg-icons) {
  min-width:0;
  align-items:center;
}
body[data-foldoo-view] .ui-right #insp .wf-section-body .ui-field:has(> .foldoo-seg-icons) > :is(label,.lb) {
  align-self:center;
}
/* Keep non-icon groups readable instead of changing their operations. */
body[data-foldoo-view] .ui-right #insp .ui-segf:not(.foldoo-seg-icons) > button {
  min-height:34px;
}
/* On narrow/mobile, retain an adequate touch target without wrapping icon groups. */
@media(max-width:899px),(pointer:coarse){
  body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button {
    min-height:44px;
  }
  body[data-foldoo-view] .ui-right #insp .foldoo-seg-icons > button.foldoo-icon-choice {
    min-height:44px;
  }
}
@media(prefers-reduced-motion:reduce){
  body[data-foldoo-view] .ui-right #insp :is(.ui-segf,.ui-seg) > button {transition:none;}
}
