.is-trigger {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 7px;
  min-width: 0;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid var(--wb-line, #ddd);
  border-radius: 12px;
  background: var(--panel, #fff);
  color: var(--ink);
  cursor: pointer;
}
.is-trigger:hover,
.is-trigger[aria-expanded="true"] {
  background: #f6f6f6;
  border-color: #ccc;
}
.is-trigger:focus-visible,
.is-panel button:focus-visible {
  outline: 2px solid #666;
  outline-offset: 1px;
}
.is-trigger .is-sliders {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  color: #737373;
  font-size: 19px;
}
.is-trigger > span:nth-child(2) {
  min-width: 0;
  flex: auto;
}
.is-trigger small,
.is-trigger strong {
  display: block;
  font-size: 10.5px;
  line-height: 1.4;
}
.is-trigger small {
  font-weight: 550;
  color: #747474;
}
.is-trigger strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.is-trigger > i {
  font: 13px/1 sans-serif;
  transform: rotate(180deg);
  color: #777;
}
.is-trigger[aria-expanded="true"] > i {
  transform: none;
}
.is-panel {
  width: min(368px, calc(100vw - 16px));
  position: fixed;
  inset: auto;
  z-index: 250;
  margin: 0;
  box-sizing: border-box;
  background: var(--panel, #fff);
  color: var(--ink, #222);
  border: 1px solid #dedede;
  border-radius: 13px;
  padding: 10px;
  box-shadow: 0 6px 20px #14141412;
  overflow: auto;
  overscroll-behavior: contain;
}
.is-panel[hidden],
.is-panel [hidden] {
  display: none !important;
}
.is-panel fieldset {
  display: block;
  min-width: 0;
  padding: 0 0 8px;
  margin: 0 0 8px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
}
.is-panel fieldset:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.is-panel legend {
  padding: 0 0 6px;
  font-size: 10.5px;
  color: #666;
  font-weight: 500;
}
.is-choices {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
}
.is-choices button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f6f6f6;
  color: #484848;
  font-weight: 500;
  line-height: 1.3;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 2px;
}
.is-choices button:hover {
  background: #efefef;
}
.is-choices button[aria-pressed="true"] {
  background: #e6e6e6;
  color: #111;
  font-weight: 650;
}
.is-choices [data-key="ratio"] {
  min-height: 64px;
  font-size: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
}
.is-ratio-icon {
  box-sizing: border-box;
  display: block;
  max-width: 100%;
  border-radius: 5px;
  border: 1px solid #777;
  margin-block: auto;
}
.is-ratio-icon.automatic {
  border-style: dashed;
}
.is-panel .is-more {
  margin: 6px 0 0;
  padding: 4px 0 0;
  border: 0;
  border-top: 1px solid #eee;
  border-radius: 0;
  font-size: 11px;
}
.is-panel .is-more summary {
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
  padding: 2px 0;
}
.is-panel .is-more[open] > .wb-settings-body {
  display: grid;
  padding: 8px 0 4px;
}
.is-file-info {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.is-result-details {
  margin: 10px 0;
  font-size: 12px;
}
.is-result-details summary {
  cursor: pointer;
}
.is-result-details dl {
  margin: 8px 0;
  display: grid;
  gap: 4px;
}
.is-result-details dl div {
  display: grid;
  grid-template-columns: 5.4em 1fr;
  gap: 8px;
}
.is-result-details dt {
  color: var(--muted);
}
.is-result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

body.dark .is-trigger:hover,
body.dark .is-trigger[aria-expanded="true"],
body.dark .is-choices button { background: var(--soft); color: var(--ink); }
body.dark .is-choices button:hover,
body.dark .is-choices button[aria-pressed="true"],
body.dark .vs-panel .is-choices button[aria-checked="true"] {
  background: color-mix(in srgb, var(--panel) 74%, var(--ink));
  color: var(--ink);
}
body.dark .is-panel,
body.dark .is-panel fieldset,
body.dark .is-panel .is-more,
body.dark .is-trigger { border-color: var(--line); }
body.dark .is-trigger small,
body.dark .is-panel legend,
body.dark .is-panel .vs-audio-note,
body.dark .is-panel .vs-limit,
body.dark .is-panel .vs-scale button { color: var(--muted); }
body.dark .is-ratio-icon { border-color: var(--muted); }
