/* Shared compact panel controls: expand/restore and float/dock. */
button.tf-expand-control,
button.tf-float-toggle {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--tf-control-height, 30px);
  height: var(--tf-control-height, 30px);
  min-width: var(--tf-control-height, 30px);
  min-height: var(--tf-control-height, 30px);
  padding: 0;
  line-height: 1;
}
.tf-expand-control::before,
.tf-float-toggle::before {
  content: "";
  display: block;
  justify-self: center;
  align-self: center;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3H3v6m12-6h6v6M3 15v6h6m12-6v6h-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tf-expand-control[aria-pressed="true"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h6V3m12 6h-6V3M9 21v-6H3m12 6v-6h6'/%3E%3C/svg%3E");
}
.tf-float-toggle::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E");
}
.tf-float-toggle[aria-pressed="true"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 7 7 17M7 7v10h10'/%3E%3C/svg%3E");
}
.tf-expand-control:focus-visible, .tf-float-toggle:focus-visible { outline: 2px solid var(--accent, #8dc4e7); outline-offset: 2px; }
@media (forced-colors: active) {
  .tf-expand-control::before, .tf-float-toggle::before { forced-color-adjust: none; background: ButtonText; }
}
