.fb-phrase-tools { display:grid; gap:3px; min-width:0; padding-block:4px; font-size:.74rem }
.fb-phrase-tools details { min-width:0; padding-block:2px; border-bottom:1px solid var(--soft-line,#373737) }
.fb-phrase-tools summary {
  display:flex; align-items:center; gap:7px; cursor:pointer; min-height:29px;
  color:#dbdbdb; font:550 .75rem/1.3 system-ui,sans-serif; list-style:none;
}
.fb-phrase-tools summary::-webkit-details-marker { display:none }
.fb-phrase-tools summary::before {
  content:''; width:5px; height:5px; margin-left:2px; border:solid var(--muted,#a2a2a2); border-width:1.3px 1.3px 0 0; transform:rotate(45deg);
}
.fb-phrase-tools details[open]>summary::before { transform:rotate(135deg) }
.fb-phrase-panel { display:grid; gap:4px; padding-bottom:5px; min-width:0 }
.fb-phrase-row { display:grid; align-items:center; gap:3px; min-width:0 }
.fb-phrase-markers { grid-template-columns:minmax(0,1fr) repeat(3,25px) }
.fb-phrase-endpoint { grid-template-columns:minmax(0,1fr) repeat(2,25px) }
.fb-phrase-two { grid-template-columns:repeat(2,minmax(0,1fr)) }
.fb-phrase-three { grid-template-columns:repeat(3,minmax(0,1fr)) }
.fb-phrase-tools input,.fb-phrase-tools select,.fb-phrase-tools button {
  min-width:0; min-height:27px; border:1px solid var(--soft-line,#3c3c3c); border-radius:4px; margin:0;
  font:500 .70rem/1.1 var(--mono,monospace); color:#e7e7e7; background:var(--field,#262626);
}
.fb-phrase-tools select { width:100%; padding:2px }
.fb-phrase-tools button { padding:2px 4px; cursor:pointer }
.fb-phrase-tools :is(button,select):disabled { opacity:.42; cursor:default }
.fb-phrase-tools label {
  display:flex; align-items:center; min-width:0; gap:3px; border:1px solid var(--soft-line,#3c3c3c); border-radius:4px;
  padding:0 4px; background:var(--field,#262626); font:550 .64rem/1.2 var(--mono,monospace); color:#bdbdbd;
}
.fb-phrase-tools label span { flex:none }
.fb-phrase-three label { flex-direction:column; align-items:stretch; padding-top:3px; gap:0 }
.fb-phrase-three label span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.fb-phrase-tools input {
  min-width:0; width:100%; min-height:24px; padding:0; border:0; outline:0; color:inherit; background:none; appearance:textfield;
}
.fb-phrase-tools input::-webkit-inner-spin-button { appearance:none }
.fb-phrase-tools label:focus-within { border-color:var(--accent,#8caee8) }
.fb-phrase-tools .fb-phrase-actions { display:flex; flex-wrap:wrap; gap:4px }
.fb-phrase-actions button { min-width:25px }
.fb-phrase-actions button:first-child { color:var(--accent,#8caee8); background:var(--active,#252d3c) }
.fb-phrase-actions output { margin-left:auto; font:500 .66rem/1.2 var(--mono,monospace); color:#b4b4b4 }
