/* Verbatim excerpt of Encore client/shell/encore-shell.css (Encore core): the base .es-btn (lines 56-59), the .es-switch toggle (219-260) and the .es-appearance Light/Dark/System pill (362-373). Nothing else from the shell is used here. */
.es-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.es-primary { background: var(--es-accent); color: var(--es-accent-text); }
.es-btn.es-danger { background: var(--es-danger-btn, #9b2c2c); color: var(--es-danger-btn-text, #ffffff); border-color: transparent; }
.es-ghost { background: transparent; color: var(--es-text); border-color: var(--es-line); }
.es-switch {
  position: relative;
  width: 52px;
  height: var(--es-tap, 44px);
  grid-column: 4;
  grid-row: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.es-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.es-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: var(--es-radius-pill, 999px);
  background: var(--es-line);
  border: 1px solid var(--es-line);
  position: relative;
  pointer-events: none;
}
.es-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--es-elevated, #fff);
  box-shadow: var(--es-elev-1, 0 1px 2px rgba(0,0,0,.12));
}
.es-switch input:checked + .es-switch-ui {
  background: var(--es-accent);
  border-color: var(--es-accent);
}
.es-switch input:checked + .es-switch-ui::after { left: 20px; }
.es-switch input:disabled + .es-switch-ui { opacity: .45; }
.es-switch.is-pending input:checked + .es-switch-ui {
  background: color-mix(in srgb, var(--es-accent) 45%, var(--es-line));
  border-color: transparent;
}

.es-appearance {
  display: inline-flex; flex-wrap: wrap; margin-top: 12px; padding: 4px; gap: 0;
  border-radius: 999px; border: 1px solid var(--es-line);
  background: color-mix(in srgb, var(--es-elevated, var(--es-surface)) 70%, transparent);
}
.es-appearance button {
  min-height: var(--es-tap, 44px); min-width: var(--es-tap, 44px);
  padding: 7px 16px; border-radius: 999px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--es-text-2, var(--es-muted)); cursor: pointer;
}
.es-appearance button[aria-pressed="true"] { background: var(--es-text); color: var(--es-bg); }
.es-appearance button:focus-visible { outline: 2px solid var(--es-accent); outline-offset: 2px; }
