/* Keep the original brightness dock: three reachable outline targets in one row. */
body.storybook [data-ew-brightness-host]:not([hidden]) {
  display: block !important;
  min-height: 48px !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body.storybook [data-ew-brightness-host][hidden],
body.storybook [data-ew-brightness-host] > input[hidden],
body.storybook [data-ew-brightness-host] > :is(label, span, output, .range-labels) {
  display: none !important;
}
body.storybook [data-ew-brightness-controls] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.1;
}
html[data-ew-action-buttons="ready"] body.storybook [data-ew-brightness-controls] > button.ew-brightness-button[data-ew-brightness-action] {
  position: relative;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 4px 6px !important;
  margin: 0 !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-transform: uppercase;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-text-stroke: .8px currentColor;
}
body.storybook [data-ew-brightness-controls] > [data-ew-brightness-action="reset"] {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
}
body.storybook [data-ew-brightness-action="reset"] > :is(output, span) {
  display: block;
  float: none;
  width: auto;
  margin: 0;
  font: inherit;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (max-height: 500px) and (orientation: landscape) {
  /* Reclaim unused top padding for the camera instead of shrinking the new
     targets, the readable heading, or the existing safe-area footer. */
  body.storybook #magic-capture:has([data-ew-brightness-controls]) {
    padding-top: max(8px, env(safe-area-inset-top));
  }
}
