/* Neutral frames belong only to copy controls, in both themes. */
:root {
  --control-edge-top: hsl(0 0% 48%);
  --control-edge-left: hsl(0 0% 36%);
  --control-edge-right: hsl(0 0% 20%);
  --control-edge-bottom: hsl(0 0% 12%);
  --control-focus: hsl(0 0% 76%);
  --control-frame-slice: 5;
  --control-frame-width: 3px;
  --control-button-frame-width: 3px;
  --control-frame-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' shape-rendering='crispEdges'%3E%3Crect x='5' y='0' width='5' height='5' fill='%237a7a7a'/%3E%3Crect x='0' y='5' width='5' height='5' fill='%237a7a7a'/%3E%3Crect x='10' y='5' width='5' height='5' fill='%23333333'/%3E%3Crect x='5' y='10' width='5' height='5' fill='%23333333'/%3E%3C/svg%3E");
  --control-border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' shape-rendering='crispEdges'%3E%3Crect x='4' y='0' width='8' height='4' fill='hsl(0,0%25,48%25)'/%3E%3Crect x='0' y='4' width='4' height='8' fill='hsl(0,0%25,36%25)'/%3E%3Crect x='12' y='4' width='4' height='8' fill='hsl(0,0%25,20%25)'/%3E%3Crect x='4' y='12' width='8' height='4' fill='hsl(0,0%25,12%25)'/%3E%3C/svg%3E");
}

/* Other buttons retain their own theme's accent bevel and focus colour. */
html[data-theme] body :is(.copy-mini, #copy-head-command) {
  --mc-action-light: var(--control-edge-top);
  --mc-action-left: var(--control-edge-left);
  --mc-action-dark: var(--control-edge-bottom);
  --mc-top: var(--control-edge-top) !important;
  --mc-left: var(--control-edge-left) !important;
  --mc-right: var(--control-edge-right) !important;
  --mc-bottom: var(--control-edge-bottom) !important;
  --mc-focus: var(--control-focus);
  border-color: var(--control-edge-left) !important;
}

html[data-theme] body :is(.copy-mini, #copy-head-command):focus-visible {
  outline-color: var(--control-focus);
}

/* Only these two requested controls use the grey outer-panel geometry. */
html[data-theme] body :is(#head-version-trigger, #copy-head-command) {
  border-width: var(--control-button-frame-width) !important;
  border-style: solid !important;
  border-image: var(--control-frame-image) var(--control-frame-slice) / 1 / 0 stretch;
  background-clip: padding-box;
  border-radius: 0;
  box-shadow: none !important;
}

/* The command field keeps the current green/lava outer-panel colour. */
html[data-theme] body #head-command {
  border-width: var(--control-frame-width) !important;
  border-style: solid !important;
  border-image: var(--mc-panel-border-image) var(--mc-panel-slice) / 1 / 0 stretch;
  background-clip: padding-box;
  border-radius: 0;
  box-shadow: none !important;
}
