[data-ui-surface="shell"] .inspector-free-form-switch:has(> [aria-expanded="true"]) {
  height: auto;
  background: var(--arhix-surface-raised);
}

[data-ui-surface="shell"] .inspector-free-form-switch > [aria-expanded="true"] {
  margin-block: var(--arhix-space-bar-inset);
}

[data-ui-free-form-icon] { display: grid; place-items: center; }

[data-ui-surface="shell"] .inspector-free-form-switch [data-ui-free-form-icon="open"] svg {
  width: var(--arhix-icon-size-compact);
  height: var(--arhix-icon-size-compact);
}

[data-ui-surface="free-form-command"] {
  width: 100%;
}

[data-ui-surface="free-form-command"][hidden] { display: none; }
[data-ui-surface="free-form-command"] [data-ui-free-form-completion][hidden] { display: none; }

[data-ui-surface="free-form-command"]::before {
  content: "";
  display: block;
  width: var(--arhix-notch-bar);
  height: var(--arhix-border-hairline);
  margin-inline: auto;
  background: var(--arhix-line);
}

[data-ui-surface="free-form-command"] .presentation-command__bar {
  height: auto;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

[data-ui-surface="free-form-command"] .presentation-command__separator {
  width: var(--arhix-notch-bar);
  min-width: 0;
  height: var(--arhix-border-hairline);
  margin: var(--arhix-space-micro) 0;
}
